BookmarkSubscribeRSS Feed
gemax
Calcite | Level 5
Hello,

I try to use this code under SEG ( ex ) to create multiple output DATASET ( where &yyyy = 2009 for example ),

%macro CAL ;

data T&yyyy ;

toto = 1 ;

%mend ; %CAL ;


but it returns to me the following error :

24 data T&yyyy ; toto = 1 ; *** proc print data=T&yyyy ; *** title "Print de -----> T&yyyy" ; run ;
_
200
ERROR 200-322: The symbol is not recognized and will be ignored.

NOTE: Line generated by the macro variable "YYYY".
24 T2009
____
22

ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, /, ;, _DATA_, _LAST_, _NULL_.



This code is running without error under a TSO system batch

Why ?

Best regards...
1 REPLY 1
gemax
Calcite | Level 5
Ok, i resolved... Sorry

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 894 views
  • 0 likes
  • 1 in conversation