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)

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`
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)

pip install -e .
parse_log_pytest
requirements.txt
sphinx pytest
3.7
requirements.txt
pytest --no-header -rA --tb=line --color=no -p no:cacheprovider -W ignore::DeprecationWarning
alabaster==0.7.13
attrs==24.2.0
Babel==2.14.0
certifi @ file:///croot/certifi_1671487769961/work/certifi
charset-normalizer==3.4.1
docutils==0.19
exceptiongroup==1.2.2
idna==3.10
imagesize==1.4.1
importlib-metadata==6.7.0
iniconfig==2.0.0
Jinja2==3.1.6
MarkupSafe==2.1.5
packaging==24.0
parsy==2.1
pluggy==1.2.0
Pygments==2.17.2
pytest==7.4.4
pytz==2025.2
requests==2.31.0
-e git+https://github.com/benjamincorcoran/sasdocs.git@82a9be818d4dac358d726054e0c3a15fe64de200#egg=sasdocs
snowballstemmer==2.2.0
Sphinx==5.3.0
sphinxcontrib-applehelp==1.0.2
sphinxcontrib-devhelp==1.0.2
sphinxcontrib-htmlhelp==2.0.0
sphinxcontrib-jsmath==1.0.1
sphinxcontrib-qthelp==1.0.3
sphinxcontrib-serializinghtml==1.1.5
tomli==2.0.1
typing_extensions==4.7.1
urllib3==2.0.7
zipp==3.15.0

name: sasdocs
channels:
  - defaults
  - https://repo.anaconda.com/pkgs/main
  - https://repo.anaconda.com/pkgs/r
  - conda-forge
dependencies:
  - _libgcc_mutex=0.1=main
  - _openmp_mutex=5.1=1_gnu
  - ca-certificates=2025.2.25=h06a4308_0
  - certifi=2022.12.7=py37h06a4308_0
  - ld_impl_linux-64=2.40=h12ee557_0
  - libffi=3.4.4=h6a678d5_1
  - libgcc-ng=11.2.0=h1234567_1
  - libgomp=11.2.0=h1234567_1
  - libstdcxx-ng=11.2.0=h1234567_1
  - ncurses=6.4=h6a678d5_0
  - openssl=1.1.1w=h7f8727e_0
  - pip=22.3.1=py37h06a4308_0
  - python=3.7.16=h7a1cb2a_0
  - readline=8.2=h5eee18b_0
  - setuptools=65.6.3=py37h06a4308_0
  - sqlite=3.45.3=h5eee18b_0
  - tk=8.6.14=h39e8969_0
  - wheel=0.38.4=py37h06a4308_0
  - xz=5.6.4=h5eee18b_1
  - zlib=1.2.13=h5eee18b_1
  - pip:
      - alabaster==0.7.13
      - attrs==24.2.0
      - babel==2.14.0
      - charset-normalizer==3.4.1
      - docutils==0.19
      - exceptiongroup==1.2.2
      - idna==3.10
      - imagesize==1.4.1
      - importlib-metadata==6.7.0
      - iniconfig==2.0.0
      - jinja2==3.1.6
      - markupsafe==2.1.5
      - packaging==24.0
      - parsy==2.1
      - pluggy==1.2.0
      - pygments==2.17.2
      - pytest==7.4.4
      - pytz==2025.2
      - requests==2.31.0
      - snowballstemmer==2.2.0
      - sphinx==5.3.0
      - sphinxcontrib-applehelp==1.0.2
      - sphinxcontrib-devhelp==1.0.2
      - sphinxcontrib-htmlhelp==2.0.0
      - sphinxcontrib-jsmath==1.0.1
      - sphinxcontrib-qthelp==1.0.3
      - sphinxcontrib-serializinghtml==1.1.5
      - tomli==2.0.1
      - typing-extensions==4.7.1
      - urllib3==2.0.7
      - zipp==3.15.0
prefix: /opt/conda/envs/sasdocs

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
sasdocs/objects.py
sasdocs/objects.py