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_.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.