188 %let x=b%str(a);
189 %put The value of macro x is -->&x<-- ;
The value of macro x is -->ba<--
190
191 * goes ok;
192 data test&x ; x=1 ; run ;
NOTE: Compression was disabled for data set WORK.TESTB because compression overhead would increase the size of the data set.
NOTE: Compression was disabled for data set WORK.A because compression overhead would increase the size of the data set.
188 %let x = b%str(%a) ;
WARNING: Apparent invocation of macro A not resolved.
189 %put The value of macro x is -->&x<-- ;
WARNING: Apparent invocation of macro A not resolved.
The value of macro x is -->b%a<--
190
191 * goes ok;
192 data test&x ; x=1 ; run ;
NOTE: Line generated by the macro variable "X".
192 testb%a
_
_
_
22
22
22
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.