search cancel

Resolve Gentime variable using batch job.

book

Article ID: 242392

calendar_today

Updated On:

Products

ESP Workload Automation

Issue/Introduction

Is there a way to resolve gentime variables by batch, we have multiple gentime variables.

 

 

Environment

Release : 12.0

Component : ESP WORKLOAD AUTOMATION

Cause

Don’t want to type in hundreds of GENTIME commands and use the echo command from ESP Page mode, since it would take to much time to resolve the values.

 

Resolution

You can use batch to perform the GENTIME function. You can also code multiple GENTIME statements within a step, writing this to a file. 

EXAMPLE:

//STEP1    EXEC PGM=ESP,REGION=3000K,PARM='SUB(ESP)MASTER' 
//STEPLIB DD DISP=SHR,DSN=ESP.CD7YLOAD         
//SYSPRINT DD DSN=ESP.GENTIME1,                     
//         DISP=(NEW,CATLG,DELETE),                         
//         SPACE=(CYL,(50,25),RLSE),UNIT=SYSDA,             
//         DCB=(DSORG=PS,RECFM=FB,LRECL=132)                
//SYSPRINT DD SYSOUT=*                                      
//SYSIN    DD  *                                            
  GENTIME FW FIRST WORKDAY OF MONTH STARTING TODAY          
  ECHO '%FWMM %FWDD %FWYY'                                  
  GENTIME FT FIRST WORKDAY OF MONTH STARTING TODAY          
  ECHO '%FTMM %FTDD %FTYY'