Automation Engine Script Guide > Ordered by Function > Strings > RUNNR2ALPHA

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

Comments

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.

For its own job, the script function GET_ATT with the attributes FILENAME_JOB or FILENAME_SYSOUT supplies the file names of the job and the job report.

With the script function ALPHA2RUNNR, the 7-figure string (letters) is converted to the 10-figure 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:

Script element Description

ALPHA2RUNNR

Converts the name of a job or report file to a RunID

Script Elements - Strings

About Scripts
Script Elements - Alphabetical Listing

Script Elements - Ordered by Function