I've the post code in DIS Job which calls the .sas file via %INCLUDE Statement. It (post code) is working fine when DIS Job ends with success or warning. However it is not working when the DIS Job Fails and I could see the WARNING as follows. I'm not certain why I'm getting the WARNING only when DIS Job fails.
.sas file which was being called in INCLUDE Statement is not taking any value from the final table which was being created from the DIS Job. May I know how to resolve this issue when the DIS Job failes?
817 /*---- Start of Post-Process Code ----*/
818
819 %INCLUDE "/var/sasdata/ifr/SASCode/distudio/metadata_info.sas";
0
WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure.
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.02 seconds
cpu time 0.00 seconds
Hi @Babloo
This is not tested, but I guess it could be solved by adding
option NOSYNTAXCHECK ;
as the first line in your includecode.
The default behaviour is that no statements are executed in a SAS session when an error occurs.
Do you really need to execute your %include program when a job fails?
Please describe your requirement so we may can come up with an alternative approach.
Hi @Babloo
This is not tested, but I guess it could be solved by adding
option NOSYNTAXCHECK ;
as the first line in your includecode.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.