I'm trying to convert a sample dataset and its been giving me this error. Not quite sure what I typed wrong:
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
WARNING: Apparent invocation of macro DATA2DATASTEP not resolved.
61
62 %data2datastep(samplemonthanalysis,mydata,,100);
_
180
ERROR 180-322: Statement is not valid or it is used out of proper order.
63
64 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
77
Do you know where the file data2datastep.sas is stored?
Here are a couple of additional possibilities for what went wrong.
Should your program contain an OPTIONS SASAUTOS= statement that was inadvertently omitted?
Did your EG session try to work with other macros that were not found, before encountering this error? (This situation can be overcome by just starting a new EG session.)
That error is telling you that the macro is never defined. You either need to have it in code before the call (i.e. a %macro ... %mend; before the code) or %include "..."; another file which does contain that macro definition - again, before you try to use it.
Do you know where the file data2datastep.sas is stored?
Here are a couple of additional possibilities for what went wrong.
Should your program contain an OPTIONS SASAUTOS= statement that was inadvertently omitted?
Did your EG session try to work with other macros that were not found, before encountering this error? (This situation can be overcome by just starting a new EG session.)
It seems that a simple reloading of a new session helped with it. Thanks!
Just repeat the steps you succesfully used when we solved https://communities.sas.com/t5/Base-SAS-Programming/Filtering-out-entries-that-do-not-have-a-certain...
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.