Chris J
Chris J

Reputation: 7779

SAS Error Handling in Windows Batch

I have a scheduled SAS program in Windows, e.g.

sas.exe -nosplash -icon -sysin "myprogram.sas"

This process will hang if there's an "Out of Resources" error (e.g. no disk space), prompting for user input (Retry, Cancel, etc.). As it's a batch job, there is no user to give that input.

Is there a SAS system option which prevents the prompt for user input so it can be dealt with in the code itself?

Upvotes: 2

Views: 270

Answers (2)

Allan Bowe
Allan Bowe

Reputation: 12701

How about -noterminal?

Extract from documentation:

If NOTERMINAL is specified, dialog boxes are not displayed.

Upvotes: 2

Richard
Richard

Reputation: 27526

Trying using the option

-batch

Since you are running in batch mode, also consider using the option

-errorabend

The best option is

-get_more_resources ;)

If the program is the cause to the resource error you have another question to ask!

Upvotes: 0

Related Questions