Programming the statistical procedures from SAS

SYSINFO not working

Reply
Occasional Contributor
Posts: 6

SYSINFO not working

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

SAS Super FREQ
Posts: 8,677

Re: SYSINFO not working

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

Ask a Question
Discussion stats
  • 1 reply
  • 128 views
  • 0 likes
  • 2 in conversation