RUNNR2ALPHA

Script Function: Converts the RunID to the corresponding file names

Syntax

RUNNR2ALPHA (RunID)

Syntax

Description/Format

RunID

10-figure run number (RunID)
Format: script literal, number or script variable


Return code

Name of the job or report file

The script function converts a 10-figure RunID to a string consisting of 7 letters.

For the file names of jobs and job reports stored in the file system, the 10-figure RunID is converted to a 7-figure string (letters). Example for a job report in Windows: OGMITAEVN.TXT. "O" indicates the job report, "GMITAEVN" is the string of the converted RunID 2000061045. In order to process the file names in a script, this string (letters) may be determined from the 10-figure RunID.

Tips:

  • Use the GET_ATT script function with the attributes FILENAME_JOB or FILENAME_SYSOUT to supply the file names of the job and job report, for the job that contains the script. For more information, see GET_ATT.
  • The ALPHA2RUNNR script function converts the 7-character string (letters) to the 10-digit RunID.

Example

In this example, the job "MM.DAY" is activated. The returned RunID is converted to the 7-figure string and output in the activation log.

:SET &RUNNR# = ACTIVATE_UC_OBJECT("MM.DAY")
:
SET &RET#   = RUNNR2ALPHA(&RUNNR#)
:
PRINT "ALPHA: &RET#"

See also:

seealso

Script Elements for Editing Strings