Beruflich Dokumente
Kultur Dokumente
Certain information in this presentation may outline CA’s general product direction. All
information in this presentation is for your informational purposes only and may not be
incorporated into any contract. CA assumes no responsibility for the accuracy or completeness
of the information. To the extent permitted by applicable law, CA provides this document “as
is” without warranty of any kind, including without limitation, any implied warranties or
merchantability, fitness for a particular purpose, or non-infringement. In no event will CA be
liable for any loss or damage, direct or indirect, from the use of this document, including,
without limitation, lost profits, lost investment, business interruption, goodwill, or lost data,
even if CA is expressly advised of the possibility of such damages.
> You can also create your own User-Defined variables and
assign specific values to them
User-defined variable
NAME
Built-in variables
ESPSDAY and ESPADAY
Associated Job Definition
APPL PAYROLL
JCLLIB ‘PROD.JCLLIB’
JOB A CYCLE=‘22’
RUN DAILY PRFX=‘PROD’
RELEASE B BACKUP=‘NORMAL’
JOB B
RUN DAILY DATE1=‘%ESPSDD/%ESPSMM’
RELEASE C GENTIME XX TODAY LESS 3 DAYS
JOB C
RUN DAILY
ENDJOB
APPL PAYROLL
INVOKE ‘PROD.SYMLIB(SYMBOLS)’
JCLLIB ‘PROD.JCLLIB’
JOB A
RUN DAILY CYCLE=‘22’
RELEASE B PRFX=‘PROD’
JOB B BACKUP=‘NORMAL’
RUN DAILY DATE1=‘%ESPSDD/%ESPSMM’
RELEASE C GENTIME XX TODAY LESS 3 DAYS
JOB C
RUN DAILY
ENDJOB
APPL PAYROLL
JCLLIB ‘PROD.JCLLIB’
JOB A CYCLE=‘22’
RUN DAILY
PRFX=‘PROD’
RELEASE B
JOB B BACKUP=‘NORMAL’
RUN DAILY DATE1=‘%ESPSDD/%ESPSMM’
RELEASE C GENTIME XX TODAY LESS 3 DAYS
JOB C
RUN DAILY
ENDJOB
%INCLUDE IF (TODAY(‘FRI’)
IF TODAY(‘FRI’) THEN DO CYCLE = ‘99’
CYCLE = ‘99’ BACKUP = ‘ALLDATA’
BACKUP = ‘ALLDATA’ %ENDINCL
ELSE BACKKUP = ‘NORMAL’ EXCLUDE DAY(FRI)
BACKUP=‘NORMAL’
ENDDO %ENDEXCL
PASSWORD = ‘MYPASSWORD’
SECURE PASSWORD //MYJOB JOB …,%PASSWORD,…
%ESPADATE
Symbol Introducer
Descriptive Name
Prefix
NT_JOB ACCTG002
AGENT PROD_NTAGENT
RUN LAST DAY OF QTR
CMDNAME C:\PROD\BCKUP.EXE
ARGS 75 %PREDD%PREMM%PREYEAR
ENDJOB
If today is:
Monday March 16th, 2009
Value is: 11032009
> Structure:
Variable Table Name (Payroll, Accounting)
– Variable Name (Checknum, AcctingDate)
Variable Value (1234556, 02/31/02)
VTLIST -
Global Variable Table GLOBAL1
Created at 11.11.12 on FRIDAY SEPTEMBER 25TH, 2009 by GLOBAL1
Last update at 11.11.12 on FRIDAY SEPTEMBER 25TH, 2009
Currently 2 variables, 0 triggers
Table size 440
FIRST='1113'
SECOND=THERE IS NOTHING YOU CANNOT DO WITH ESP'
APPL PAYROLL
VGET PAYDATE TABLE(PAYROLL)
VGET PAYSTART TABLE(PAYROLL)
JOB UPDATE1
RUN %PAYDATE
EARLYSUB %PAYSTART
RELEASE CHKJOB
ENDJOB
JOB CHKJOB
RUN %PAYDATE
ENDJOB
APPL STORE2
JOB PROCESS.DATA
RUN DAILY
VGET STRCNT TABLE(STORE)
ENDJOB
JOB PROCESS.DATA
INTEGER STRCNT
VGET STRCNT TABLE(STORE)
IF STRCNT > 250 THEN RUN TODAY
ENDJOB
> You can also make the trigger conditional on the value of
the variable