diff --git a/sasdocs/objects.py b/sasdocs/objects.py
index 122120d..8b954ba 100644
--- a/sasdocs/objects.py
+++ b/sasdocs/objects.py
@@ -718,8 +718,8 @@ dataLine = dataObj.sep_by(spc)
 
 datastep = ps.seq(
     outputs = (ps.regex(r'data', flags=re.IGNORECASE) + spc) >> dataLine << col,
-    header = ps.regex(r'.*?(?=set|merge)', flags=reFlags),
-    inputs = (opspc + ps.regex(r'set|merge',flags=re.IGNORECASE) + opspc) >> dataLine << col,
+    header = (ps.regex(r'.*?(?=set|merge)', flags=reFlags)).optional(),
+    inputs = ((opspc + ps.regex(r'set|merge',flags=re.IGNORECASE) + opspc) >> dataLine << col).optional(),
     body = ps.regex(r'.*?(?=run)', flags=reFlags),
     _run = run + opspc + col
 ).combine_dict(dataStep)

diff --git a/tests/test_objects.py b/tests/test_objects.py
index ece6658..8e46ebf 100644
--- a/tests/test_objects.py
+++ b/tests/test_objects.py
@@ -51,7 +51,8 @@ def test_dataLine_parse(case, expected):
     assert dataLine.parse(case) == expected
 
 testcases = [
-    ("data test.test lib2.test(where=(ax=b) rename=(a=b)); format a; set test; a = 1; b = 2; output; run;", dataStep(outputs=[dataObject(library=['test'], dataset=['test'], options=None), dataObject(library=['lib2'], dataset=['test'], options=[dataArg(option=['where'], setting='(ax=b)'), dataArg(option=['rename'], setting='(a=b)')])], header=' format a; ', inputs=[dataObject(library=None, dataset=['test'], options=None)], body=' a = 1; b = 2; output; '))
+    ("data test.test lib2.test(where=(ax=b) rename=(a=b)); format a; set test; a = 1; b = 2; output; run;", dataStep(outputs=[dataObject(library=['test'], dataset=['test'], options=None), dataObject(library=['lib2'], dataset=['test'], options=[dataArg(option=['where'], setting='(ax=b)'), dataArg(option=['rename'], setting='(a=b)')])], header=' format a; ', inputs=[dataObject(library=None, dataset=['test'], options=None)], body=' a = 1; b = 2; output; ')),
+    ("data out; input a; datalines; 1; run;", dataStep(outputs=[dataObject(library=None,dataset=['out'],options=None)],inputs=None,header=None,body=' input a; datalines; 1; '))
 ]
 
 @pytest.mark.parametrize("case,expected", testcases)

datasteps without a set or merge statement
# Issue

Currently only datasteps with a `set` or `merge` statement are parsed. However this does not account for `datalines` and `cards` statements, as well as `infile` statements

```sas
data a;
    input a;
    datalines;
1
;
run;
```
Should produce `dataStep` object with single output of `dataObject: a`
tests/test_objects.py::test_dataStep_parse[data
tests/test_objects.py::test_sasname_parse[test-expected0] tests/test_objects.py::test_sasname_parse[&test-expected1] tests/test_objects.py::test_sasname_parse[&test.-expected2] tests/test_objects.py::test_sasname_parse[&&test&test.-expected3] tests/test_objects.py::test_sasname_parse[ab&test-expected4] tests/test_objects.py::test_sasname_parse[ab&test.-expected5] tests/test_objects.py::test_sasname_parse[ab&test.ab-expected6] tests/test_objects.py::test_sasname_parse[ab&test.ab&test-expected7] tests/test_objects.py::test_sasname_parse[ab&test.ab&test.-expected8] tests/test_objects.py::test_sasname_parse[ab&test.abab&test.ab-expected9] tests/test_objects.py::test_dataObject_parse[lib.test-expected0] tests/test_objects.py::test_dataObject_parse[&test.test-expected1] tests/test_objects.py::test_dataObject_parse[lib.&test.-expected2] tests/test_objects.py::test_dataObject_parse[lib.ab&test.-expected3] tests/test_objects.py::test_dataObject_parse[lib.ab&test-expected4] tests/test_objects.py::test_dataObject_parse[lib.ab&test.ab-expected5] tests/test_objects.py::test_dataObject_parse[lib.ab&test.ab&test-expected6] tests/test_objects.py::test_dataObject_parse[li&lib.b.ab&test.ab&test.-expected7] tests/test_objects.py::test_dataObject_parse[ab&lib.&lib.aa.ab&test.abab&test.ab-expected8] tests/test_objects.py::test_dataLineOption_parse[(where=(1=1))-expected0] tests/test_objects.py::test_dataLine_parse[test tests/test_objects.py::test_procedure_parse[proc tests/test_objects.py::test_libname_parse[libname tests/test_objects.py::test_include_parse[*Comment;-expected0] tests/test_objects.py::test_include_parse[/*Comment*/-expected1] tests/test_objects.py::test_create_table_parse[create tests/test_objects.py::test_sql_parse[proc tests/test_objects.py::test_macroVariableDefinition_parse[%let tests/test_objects.py::test_macroargument_parse[a-expected0] tests/test_objects.py::test_macroargument_parse[a=1-expected1] tests/test_objects.py::test_macroargument_parse[a tests/test_objects.py::test_macroargument_parse[a/*Docs*/-expected5] tests/test_objects.py::test_macroargument_parse[a=1/*Docs*/-expected6] tests/test_objects.py::test_macroargumentLine_parse[(a, tests/test_objects.py::test_macroargumentLine_parse[(a=1, tests/test_objects.py::test_macroargumentLine_parse[(a=1/*Doc tests/test_objects.py::test_macro_parse[%macro tests/test_objects.py::test_macro_about_parse[%macro tests/test_objects.py::test_macro_children_parse[%macro tests/test_objects.py::test_force_partial_parse[\nlibname tests/test_objects.py::test_force_partial_marco_parse[\nlibname