Script Function: Converts the name of a jobAn Automation Engine object type for a process that runs on a target system. or reportA report provides more detailed information about a task's execution or a component. file to a RunIDShort for "run number". It is a number that provides unique information about a task's execution. The RunID can include 7 to 10 digits. It is assigned by the Automation Engine component .
ALPHA2RUNNR(String)
Syntax |
Description/Format |
---|---|
String |
7-figure string (letters) |
Return code |
---|
Run number (RunID) |
The scriptA particular Automation Engine object type. functionPre-defined run book template in the Automation Engine. One single step only, e.g. Start Windows Service, Copy file,… converts a string consisting of 7 letters to a RunID.
When jobs and job reports are stored in the file system, their file names contain the run number (RunID) of the particular job in form of a 7-figure string (letters). Example for a job report in Windows: OGMITAEV.TXT. "O" indicates the job report, "GMITAEV" is the string of the converted RunID 2000061045. In order to process the file names in a script, the string can again be converted to the 10-figure RunID with ALPHA2RUNNR.
With the script function RUNNR2ALPHA, the 10-figure RunID is converted to a 7-figure string (letters).
In this example, the 7-figure string is determined from the file name and output in the activation log.
:SET &ALPHA# = MID("JAADMXZT.TXT",
2, 7)
:SET &RET# =
ALPHA2RUNNR(&ALPHA#)
:PRINT "RunID: &RET#"
See also:
Script element | Description |
---|---|
Converts the RunID to the corresponding file name |
About Scripts
Script Elements - Alphabetical Listing
Script Elements - Ordered by Function
Automic Documentation - Tutorials - Automic Blog - Resources - Training & Services - Automic YouTube Channel - Download Center - Support |
Copyright © 2016 Automic Software GmbH |