data x ; set % do i = 1 , 2 , 3 , 8 , 10 ; xyz&i %end; ; run; Hi guyz, I need to append some datasets which ends with a number like this scenario above. But , when i run this code am getting this error "%to note found, macro is not compiled" . Please help me in this situation
... View more
%macro xy; %array &trt(60) ; %do i = 1 %to 60; %symdel trt(i) ; %end; %mend xy; %xy;macro WARNING: Apparent invocation of macro ARRAY not resolved. WARNING: Apparent symbolic reference TRT not resolved i have created trt1 to trt60 macro variables , i want to delete them all at once . can anybody suggest me the way and what mistake i did in this program.?
... View more
Thanks for clarifying me....i have just one more doubt.....u said that first it reads the data till the delimiter then truncates it...will it read the data into PDV and truncate afterwards? how the processing happens?
... View more
whatever u have said holds true for character variable, but for the numeric it is not following the same pattern, could you make it clear what happens in case of numeric variables? why this program fails? data samp ; input id date $:10. age 2.; cards; 102 12/11/198312 103 12/11/198914 ; run;
... View more
data samp ; input id date :ddmmyy10. age$ 2.; cards; 102 12/11/198312 103 12/11/198914 ; run; whenever i place colon modifier before a informat, it is reading a column larger than specified width in character variables and more than that in numeric... .please clarify how sas intrepets colon modifier..
... View more