If you can't find what you need in a library, you could look at your own session the LISTALC command with the STATUS option will give you the DDNAMES and the allocated datasets. The ISRFIND also will do the job in a more friendly way. Alternatively you could use SDSF or an equivalent to look...
Your problem is with the lines likes this:
%IF &ST=OR OR &ST=VA %THEN %DO;
The state values OR and VA should be specified as literals making the code look like this
%IF &ST='OR' OR &ST='VA' %THEN %DO;
At present SAS is trying to resolve OR and VA as variables.
Hope this does the...
You could also try using the AMS REPRO command.
For example:
TSO REPRO IDS(mydsname1) ODS(mydsname2)
This does rather depend upon your site's system library concatenations.
Hope this helps (certainly saves programming).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.