I don't get it. I have jobs running in batch in development and test which do what I expect. On rare occasions, the job will detect an error and throw the information about the problem to the same name as the job's log file, with the suffix changed from .log to .lst. For example DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.log will be paired with DM_Daily_Batch7_table_name_P2H1_2020.01.20_03.05.50.lst. It's not flash, but it works well and everyone is happy with it.
But when we run it in production, the log name, from the option log , is consistently the above truncated immediately before the timestamp: DM_Daily_Batch7_table_name_P2H1_. It doesn't matter how long the name of the log file is - it's always at this point.
What sort of weird environmental setting would cause this? and how do we go about changing it?
Is there a shell script that executes your sas code in the batch mode ?
Typically the sas programs as called in this fashion within the Shell Scripts.
sas ${SOURCE_DIR}/${SASPGM}.sas -log ${LOG_DIR}/${LOG_FILE} -print ${LOG_DIR}/${LST_FILE}
The parameters in this script are : ${SASPGM} ${LOG_DIR} ${LOG_FILE} ${LST_FILE}
Perhaps there is a timestamp parameter which is not resolving as expected in your environment,
Is there a shell script that executes your sas code in the batch mode ?
Typically the sas programs as called in this fashion within the Shell Scripts.
sas ${SOURCE_DIR}/${SASPGM}.sas -log ${LOG_DIR}/${LOG_FILE} -print ${LOG_DIR}/${LST_FILE}
The parameters in this script are : ${SASPGM} ${LOG_DIR} ${LOG_FILE} ${LST_FILE}
Perhaps there is a timestamp parameter which is not resolving as expected in your environment,
Ah - that's not the actual answer, but it's the hint I needed. The job being deployed in production (this is from DI) would appear to be using a different set of parameters to generate the sasbatch.sh call.
Thank you,
Laurie
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.