Hi
I am unable to hold the sysinfo value after executing compare proc....
282 %PUT SYSINFO=&SYSINFO;
SYSINFO=4096
283 IF SYSINFO> 0
9 THE SAS SYSTEM
__
__
__
180
180
180
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.
ERROR 180-322: STATEMENT IS NOT VALID OR IT IS USED OUT OF PROPER ORDER.
I am new to SAS programming and need help in this regard.
I need to pass value depending on the compare result... also I am not sure how come sysinfo is giving 4096 RC which is not equal... but the values i compared are equal... also it is using exact compare... any info on which compare to use to check on the values.
Thnks,
Sreekanth
Hi:
You might look at this example:
45011 - Using return codes from automatic macro variable &SYSINFO with PROC COMPARE
In particular, the "Full Code" tab that shows how to do "bit testing" with the value of &SYSINFO. I believe that in order to get valid values from &SYSINFO, you must use the "bit testing" method described in the Tech Support note.
cynthia
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.