I'm trying to use AF command in SCL, so I wrap the AF command in a submit block:
submit continue;
af c=Sasuser.I_qual_ibd.main.scl
endsubmit;
But I got the following error, anyone can help to tell me what is wrong?
ERROR 180-322: Statement is not valid or it is used out of proper order.
NOTE: SCL source line.
5322 af c=Sasuser.I_qual_ibd.main.scl
--
180
OK, then you will need to preface the AF command with the DM statement:
DM 'AF C=.......';
The DM statement allows you to execute Display Manager commands in a SAS program aka SUBMIT block.
Use the DISPLAY function to run an SCL entry from SCL, not by trying to submit an AF command inside a SUBMIT block.
Yes appreciate your answer, but here I have to use AF command because I'm trying to invoke the scl with debug option on and pass in parameters at the same time, so I have to use the AF command, so I tried to use it inside a submit block
OK, then you will need to preface the AF command with the DM statement:
DM 'AF C=.......';
The DM statement allows you to execute Display Manager commands in a SAS program aka SUBMIT block.
Fantastic! It works! I spent quite a while and didn't figure it out. Thanks!
You might also want to use the AFA command instead of the AF command if you want the new application to run independently.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.