Help using Base SAS procedures

Use AF command in Submit block

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 8
Accepted Solution

Use AF command in Submit block

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


Accepted Solutions
Solution
‎09-25-2015 06:23 AM
Super User
Posts: 3,112

Re: Use AF command in Submit block

[ Edited ]

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.

View solution in original post


All Replies
Super User
Posts: 3,112

Re: Use AF command in 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.

Occasional Contributor
Posts: 8

Re: Use AF command in 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

Solution
‎09-25-2015 06:23 AM
Super User
Posts: 3,112

Re: Use AF command in Submit block

[ Edited ]

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.

Occasional Contributor
Posts: 8

Re: Use AF command in Submit block

Fantastic! It works! I spent quite a while and didn't figure it out. Thanks!

Super User
Super User
Posts: 6,502

Re: Use AF command in Submit block

You might also want to use the AFA command instead of the AF command if you want the new application to run independently.

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 5 replies
  • 376 views
  • 1 like
  • 3 in conversation