RUNNR2ALPHA
Use the RUNNR2ALPHA script function to convert the 10-digit RunID of a job or report file to a 7-character alphabetic string. This is useful for processing the file name in a script. For example, the RunID 2000061045 of a job report is converted to OGMITAEV.TXT on Windows, where O indicates that the file is a job report and GMITAEV is the 7-character representation of the RunID.
Tips: Use the GET_ATT script function with the FILENAME_JOB or FILENAME_SYSOUT attributes to retrieve 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-character string back to the 10-digit RunID. For more information, see ALPHA2RUNNR.
Syntax
RUNNR2ALPHA (RunID)
Parameters
| Parameter | Description | Format |
|---|---|---|
| RunID | 10-digit RunID of the job or report file to convert | Script literal, number, or script variable |
Return Codes
| Return Value | Condition |
|---|---|
| String | The name of the job or report file corresponding to the RunID |
Examples
The following example activates the job MM.DAY, converts the returned RunID to a 7-character string, and prints the result to the activation report.
: SET &RUNNR# = ACTIVATE_UC_OBJECT ("MM.DAY")
: SET &RET# = RUNNR2ALPHA (&RUNNR#)
: PRINT "ALPHA: &RET#"
See also: