RUNNR2ALPHA
Use the RUNNR2ALPHA script function to convert the 10-digit RunID of a job or report file to a 7-digit string (letters). Doing so is useful to process the file name in a script. For example, the 2000061045 of a job report is converted to OGMITAEV.TXT in Windows. The letter O indicates that the file is a job report, and GMITAEV is the 7-digit string of the converted10-digit RunID.
Tips:
- Use the GET_ATT script function with the FILENAME_JOB or FILENAME_SYSOUT attributes to supply the file names of the job and job report, for the job that contains the script. For more information, see GET_ATT.
- Use the ALPHA2RUNNR script function to convert the 7-digit string (letters) to the 10-digit RunID. For more information, see ALPHA2RUNNR.
Syntax
RUNNR2ALPHA (RunID)
Parameters
-
RUNNR2ALPHA
Converts the RunID of a job or report file to the corresponding file name -
RunID
10-digit run number (RunID)
Format: script literal, number or script variable
Return code
The script function returns the name of the job or report file.
Example
The following example activates the job MM.DAY. The returned RunID is converted to a 7-digit string, and prints the result in the activation report.
:SET &RUNNR# = ACTIVATE_UC_OBJECT("MM.DAY")
:SET &RET# =
RUNNR2ALPHA(&RUNNR#)
:PRINT "ALPHA: &RET#"
See also: