Skip to main content

Windows LSAM Environment Variables

A job may adapt to its environment, and the MSLSAM defines several environment variables for a started job. Refer to the table for a description of these variables.

Environment VariableDescription
SMA_MSLSAM_JOB_NAMEThe name of the Job defined in OpCon.
SMA_MSLSAM_JOBOUTPUT_FILENAMEThis variable contains the full path of the job output file that is created for the current job.
SMA_MSLSAM_LSAM_NAMEThis variable contains the name defined in the OpCon database for this LSAM.
SMA_MSLSAM_PRERUN_ACTIVEThis variable indicates a value of TRUE or FALSE based on whether currently running Job process is a prerun job or a main job.
SMA_MSLSAM_RESTART_STEPThe optional restart step sent to the MSLSAM for the job in the <SMA_MSLSAM_JOB_NAME> variable.
SMA_MSLSAM_ROOT_DIRECTORYThe path to the directory where the MSLSAM is installed.
SMA_MSLSAM_SAM_JOB_ID27 character unique Job ID comprising of 12 character jobname, 5 Character space, and 10 digit JobNumber.
SMA_MSLSAM_SCHEDULE_DATEThe date of the schedule containing the job in the <SMA_MSLSAM_JOB_NAME> variable.
SMA_MSLSAM_SCHEDULE_FREQThe schedule frequency of the job in the <SMA_MSLSAM_JOB_NAME> variable.
SMA_MSLSAM_SCHEDULE_NAMEThe name of the schedule containing the job in the <SMA_MSLSAM_JOB_NAME> variable.