07-08-2016 09:29 AM
I know "ENDSAS" can stop and exit SAS immedietely. but I don't want SAS exit,I just want it stop execute the rest code.
Is there any other function code I can use during the code line to stop execute the rest lines of codes?
07-08-2016 09:57 AM - edited 07-08-2016 09:58 AM
You can turn on syntax check mode. SAS will still go over your code but not execute anything (apart from data_null_ steps). Look at the options SYNTAXCHECK and DMSSYNCHK. Consider adding NOREPLACE and OBS=0 to be safe.
07-09-2016 12:21 AM
I would add /* between two type of code . E.X. data x; .... run; proc print; /* proc print; And you will find only the code before /* be executed .