# Is there a Julia macro that emulates SAS data step?

**URL:** <https://discourse.julialang.org/t/is-there-a-julia-macro-that-emulates-sas-data-step/100023>\
**Category:** General Usage\
**Created:** [June 7, 2023, 10:02pm UTC](https://discourse.julialang.org/t/is-there-a-julia-macro-that-emulates-sas-data-step/100023 "2023-06-07T22:02:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwsohn](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mwsohn/32/2696_2.png) [@mwsohn](https://discourse.julialang.org/u/mwsohn)\
**Post date:** [June 7, 2023, 10:02pm UTC](https://discourse.julialang.org/t/is-there-a-julia-macro-that-emulates-sas-data-step/100023/1 "2023-06-07T22:02:45Z")

</div>

I am wondering whether there is a macro that emulates a SAS data step. Or more specifically a macro that automatically runs through all rows in a DataFrame such that a symbol indicates a column in a DataFrame (as in a @with macro in DataFramesMeta) and that takes if and for statements.

Any pointers would be greatly appreciated.
