BookmarkSubscribeRSS Feed
gamotte
Rhodochrosite | Level 12

No, S1000 begins with "S1".

Maybe you want to modify your z array definition to

 

array z(*) s:;

vishalrajpoot3
Obsidian | Level 7

Ohhh yes, that was the only issue. 

 

Thanks

gamotte
Rhodochrosite | Level 12

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=;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 17 replies
  • 1572 views
  • 10 likes
  • 5 in conversation