No, S1000 begins with "S1".
Maybe you want to modify your z array definition to
array z(*) s:;
Ohhh yes, that was the only issue.
Thanks
Not on my computer :
143 proc sql;
144 SELECT count(*) INTO :nvar
145 FROM dictionary.columns
146 WHERE LIBNAME="SASHELP" AND MEMNAME="YR1001"
147 AND NAME LIKE "S0%";
148 quit;
NOTE: PROCEDURE SQL used (Total process time):
real time 0.05 seconds
cpu time 0.00 seconds
149
150 %put &=nvar.;
NVAR= 503
Try to print the dimensions of each of your arrays to see if they match :
dimz=dim(z);
put dimz=;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
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.
Ready to level-up your skills? Choose your own adventure.