DATA Step, Macro, Functions and more

Batch process

Accepted Solution Solved
Reply
Super Contributor
Posts: 265
Accepted Solution

Batch process

Dear All,

I am running a macro program script in batch process,

Where i am using proc x11, as per nature of proc x11, if get missing or 0 its shows error for particular segment.

Which is acceptable for my condition.

But it doesn't move for further in batch process while its running fine in interactive window mode.

scenario, there is 100 sheets in one excel , i am running do loop and getting each sheets as dataset and using proc x11 for each sheet to get the adjusted values.

Please suggest.


Accepted Solutions
Solution
‎05-23-2014 02:39 AM
Valued Guide
Posts: 3,208

Re: Batch process

You are experiencing the difference in batch and interactive processing by its logical nature.
In interactive mode the program  interacts with you and trusts you on you decision it can proceed seeing an error.
In batch mode you are not there, so the only thing that can be done is stopping processing and going into syntaxcheckmode.   
SAS(R) 9.3 System Options: Reference, Second Edition (syntaxcheck option). You could also need to control the syscc sysrc automatic macro vars.

---->-- ja karman --<-----

View solution in original post


All Replies
Solution
‎05-23-2014 02:39 AM
Valued Guide
Posts: 3,208

Re: Batch process

You are experiencing the difference in batch and interactive processing by its logical nature.
In interactive mode the program  interacts with you and trusts you on you decision it can proceed seeing an error.
In batch mode you are not there, so the only thing that can be done is stopping processing and going into syntaxcheckmode.   
SAS(R) 9.3 System Options: Reference, Second Edition (syntaxcheck option). You could also need to control the syscc sysrc automatic macro vars.

---->-- ja karman --<-----
Super Contributor
Posts: 265

Re: Batch process

Thanks for your guidance.

Is there any solution or do i need to always run it on interactive mode?

Valued Guide
Posts: 3,208

Re: Batch process

The mentioned options may be set in you batch-script (sas config). In that way the error-handling can be done like the interactive session.
The mentioned risk is that when something goes wrong you have not foreseen in your code, you could get more trouble.
It is your choice / risk evaluation on that process.

---->-- ja karman --<-----
Super Contributor
Posts: 265

Re: Batch process

By running on interactive mode i m getting my desired result.

Just to save time i m looking for batch run.

Do i need to option nosyntaxcheck; ?

Super Contributor
Posts: 265

Re: Batch process

i trying to use options nosyntaxcheck nodmssynchk;

thanks

Valued Guide
Posts: 3,208

Re: Batch process

That is the one that will allow processing of next steps even when there was an error.
I did not have seen your log but if this message (going into check mode) is in it this one will change that.
There are many more ones influencing the flow, sometimes a little bit puzzling which of them is for what.  

---->-- ja karman --<-----
☑ This topic is SOLVED.

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

Discussion stats
  • 6 replies
  • 238 views
  • 0 likes
  • 2 in conversation