New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
AIS1
Calcite | Level 5

Hi,

 

we have a recurring problem. Some moderatly complex code which runs succesfully when started via SAS Enterprise Guide fails to run when the same code is started as a batch script.

 

We have checked for the following things:

-There are no quotas

-We made sure that the config files for the batch user and the config files of the SAP Enterprise Guide user are functionally the same (batch user now has a config file in his home directory which gives him the same memsize, realmemsize etc. settings). We also verified that the config file added to the home directory gets processed using proc options. proc options also showed that there are no further config files which could override the settings

-We tried to reduce the log output as much as feasible by using

ODS _ALL_ CLOSE;

ODS exclude all;

Options NoNotes Nosymbolgen Nomprint;
before the critical code.

 

Unfortunately, we still run out of resources if the process is run via batch.


Any further ideas?

4 REPLIES 4
andreas_lds
Jade | Level 19

Run proc options and compare results, there must be a difference in the configuration. I could also be helpful to post the exact error message you got.

AIS1
Calcite | Level 5

Failstate:

CONFIG=( /sas/sas_prog/9_4/SASFoundation/9.4/sasv9.cfg /sas/sas_prog/9_4/SASFoundation/9.4/nls/en/sasv9.cfg

/sas/sas_prog/9_4/SASFoundation/9.4/sasv9_local.cfg /home/aschmelz/sasv9.cfg )

Specifies the configuration file that is used when initializing or overriding the values of SAS system options.

ERROR: Insufficient space in file WORK.'SASTMP-000000006'n.UTILITY.

ERROR: File WORK.'SASTMP-000000006'n.UTILITY is damaged. I/O processing did not complete.

ERROR: There is not enough WORK disk space to store the results of an internal sorting phase.

ERROR: An error has occurred.



Succesfull run:

CONFIG=( /sas/sas_prog/9_4/SASFoundation/9.4/sasv9.cfg

/sas/sas_prog/9_4/SASFoundation/9.4/nls/en/sasv9.cfg

/sas/sas_prog/9_4/SASFoundation/9.4/sasv9_local.cfg

/sas/sas_prog/conf/Lev1/SASApp/sasv9.cfg

/sas/sas_prog/conf/Lev1/SASApp/sasv9_usermods.cfg

/sas/sas_prog/conf/Lev1/SASApp/WorkspaceServer/sasv9.cfg

/sas/sas_prog/conf/Lev1/SASApp/WorkspaceServer/sasv9_usermods.cfg )

 /home/aschmelz/sasv9.cfg  which is in the last one in the failed state is

 

/sas/sas_prog/conf/Lev1/SASApp/sasv9_usermods.cfg

/sas/sas_prog/conf/Lev1/SASApp/WorkspaceServer/sasv9.cfg

/sas/sas_prog/conf/Lev1/SASApp/WorkspaceServer/sasv9_usermods.cfg

(the three configs which are in the sucessfull but not in the non sucessfull state) taken together, in that order.

 

AIS1
Calcite | Level 5

Hi,

 

our /sas/sas_prog/conf/Lev1/SASApp/ folder does not have a batchserver subfolder.

 

Cheers,

 

Andrej

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 893 views
  • 0 likes
  • 3 in conversation