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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.