This is part of the Heirloom Computing Elastic Batch Platform forum on paas.heirloomcomputing.com.
The syntax of the standard JCL utilities offered within EBP are described below. Both a syntax or railroad diagram and a BNF (text) definition are shown. See the Standard Utility Programmers Manual for detailed usage.
Rules
- ALTERNATEINDEX
- CATALOG
- CLUSTER
- COPY
- COPYGRP
- DATA
- DEFINE
- DELETE
- DO
- DSN
- ELSE
- EMPTY
- END
- FILE
- FORCE
- GENERATIONDATAGROUP
- IF
- INDATASET
- INDEXED
- INDEX
- INFILE
- KEYS
- LIB
- LIMIT
- LINEAR
- MODEL
- NAME
- NOEMPTY
- NOFORCE
- NOLIMIT
- NONINDEXED
- NONUNIQUEKEY
- NONVSAM
- NOPURGE
- NOREPLACE
- NOREUSE
- NOSCRATCH
- NUMBERED
- OUTDATASET
- OUTFILE
- PAGESPACE
- PARMS
- PATH
- PLAN
- PROG
- PROGRAM
- PROTOCOL
- PURGE
- RECORDSIZE
- RELATE
- REPRO
- REPLACE
- REUSE
- RUN
- SCRATCH
- SELECT
- SET
- SORT
- SPACE
- THEN
- UNIQUEKEY
- USERCATALOG
- iefbr14
- iebgener
- tmsclean
- bpxbatch
- iebcopy
- iebcopycmd
- iebcopyselect
- iebcopyoperands
- indd
- outdd
- iebcopymemberlist
- membergroup
- iebcopylabel
- idcams
- newidcamscmd
- anyidcamscmd
- idcamscmd
- definecmd
- definegdgcmd
- dsname
- dsn
- dsnpart
- gdgparm
- defineclustercmd
- defineaixcmd
- clusterparm
- keylengthoffset
- parmlist
- protocols
- avgmaxrecsize
- aixparm
- defextra
- datapart
- indexpart
- catalogpart
- dataparm
- indexparm
- catalogparm
- reprocmd
- reproopts
- reprofrom
- reproto
- reproreuse
- reproreplace
- deletecmd
- deleteparm
- datasetnames
- ifthenelsecmd
- ifclause
- thenclause
- elseclause
- idcamscmds
- newthenelsecmd
- operator
- setcmd
- ikjeft01
- tsocmd
- tsoidcamscmd
- newtsoidcams
- dsncmd
- runcmd
- runcmdkeyword
- runoption
- shellcmd
- shellpgm
- shellargs
- endcmd
- sort
- sortcmd
- sortkeyword
- sortformat
- sortfields
- sortfield
- syncsort
- dsnitab
- dsnutilb
- anything
- ident
- ID
- variable
- reserved
- INT
- WS
- SPECIAL
- INTL
- A
- B
- C
- D
- E
- F
- G
- H
- I
- J
- K
- L
- M
- N
- O
- P
- Q
- R
- S
- T
- U
- V
- W
- X
- Y
- Z
-
ALTERNATEINDEX Top
tokens & aliases
Visual notation:
-
CATALOG Top
Visual notation:
-
CLUSTER Top
Visual notation:
-
COPY Top
Visual notation:
-
COPYGRP Top
Visual notation:
-
DATA Top
Visual notation:
-
DEFINE Top
Visual notation:
-
DELETE Top
Visual notation:
-
DO Top
Visual notation:
-
DSN Top
Visual notation:
-
ELSE Top
Visual notation:
-
EMPTY Top
Visual notation:
-
END Top
Visual notation:
-
FILE Top
Visual notation:
-
FORCE Top
Visual notation:
-
GENERATIONDATAGROUP Top
Visual notation:
-
IF Top
Visual notation:
-
INDATASET Top
Visual notation:
-
INDEXED Top
Visual notation:
-
INDEX Top
Visual notation:
-
INFILE Top
Visual notation:
-
KEYS Top
Visual notation:
-
LIB Top
Visual notation:
-
LIMIT Top
Visual notation:
-
LINEAR Top
Visual notation:
-
MODEL Top
Visual notation:
-
NAME Top
Visual notation:
-
NOEMPTY Top
Visual notation:
-
NOFORCE Top
Visual notation:
-
NOLIMIT Top
Visual notation:
-
NONINDEXED Top
Visual notation:
-
NONUNIQUEKEY Top
Visual notation:
-
NONVSAM Top
Visual notation:
-
NOPURGE Top
Visual notation:
-
NOREPLACE Top
Visual notation:
-
NOREUSE Top
Visual notation:
-
NOSCRATCH Top
Visual notation:
-
NUMBERED Top
Visual notation:
-
OUTDATASET Top
Visual notation:
-
OUTFILE Top
Visual notation:
-
PAGESPACE Top
Visual notation:
-
PARMS Top
Visual notation:
-
PATH Top
Visual notation:
-
PLAN Top
Visual notation:
-
PROG Top
Visual notation:
-
PROGRAM Top
Visual notation:
-
PROTOCOL Top
Visual notation:
-
PURGE Top
Visual notation:
-
RECORDSIZE Top
Visual notation:
-
RELATE Top
Visual notation:
-
REPRO Top
Visual notation:
-
REPLACE Top
Visual notation:
-
REUSE Top
Visual notation:
-
RUN Top
Visual notation:
-
SCRATCH Top
Visual notation:
-
SELECT Top
Visual notation:
-
SET Top
Visual notation:
-
SORT Top
Visual notation:
-
SPACE Top
Visual notation:
-
THEN Top
Visual notation:
-
UNIQUEKEY Top
Visual notation:
-
USERCATALOG Top
Visual notation:
-
iefbr14 Top
IEFBR14 does not accept any input commands, but the Heirloom Computing EBP version does allow PARMs consisting of RC=x (will return a condition code of x), SYSOUT=word (will print word on SYSOUT DD) and SLEEP=s (will delay s seconds)
Text notation:
iefbr14 : ;Visual notation:
-
iebgener Top
IEBGENER ignores any input commands and will always copy data from the DD SYSUT1 to the DD SYSUT2 while printing its report to SYSPRINT
Text notation:
iebgener : ;Visual notation:
-
tmsclean Top
TMSCLEAN ignores any input commands and scratches all expired DSNs in DataLib
Text notation:
tmsclean : ;Visual notation:
-
bpxbatch Top
BPXBATCH is the IBM JES/JCL compatible way to invoke the shell, in EBP it is roughly the same as "PGM=sh"
Text notation:
bpxbatch : ;Visual notation:
-
iebcopy Top
IEBCOPY the partitioned dataset utility accepts standard COPY and COPYGRP commands. PDSs are created with DSORG=PO on the JCL DD line and are represented as a directory on disk. PDS members are files within that directory.
Text notation:
Visual notation:
-
iebcopycmd Top
Text notation:
iebcopycmd : COPY WS ( iebcopyoperands ',' WS* )* iebcopyoperands | COPYGRP WS ( iebcopyoperands ',' WS* )* iebcopyoperands ;Visual notation:
-
iebcopyselect Top
SELECT specific MEMBERs to be copied from the specified INDD to the specified OUTDD datasets
Text notation:
Visual notation:
-
iebcopyoperands Top
Text notation:
Visual notation:
-
indd Top
Code (MEMBER,R) on the INDD keyword to indicate that all member copies should be treated as replacements
Visual notation:
-
outdd Top
Text notation:
outdd : ID ;Visual notation:
-
iebcopymemberlist Top
Text notation:
Visual notation:
-
membergroup Top
Individual members (files within the PDS Dataset directory) are copied from any given INDD dataset to the OUTDD dataset. Specifying a second name will rename the member during copy. Specifying R as the 3rd entry indicates the member copied should replace any similar named members that may exist in the output dataset.
Text notation:
Visual notation:
-
iebcopylabel Top
Text notation:
Visual notation:
-
idcams Top
IDCAMS Access Method Services. Used to define GDGs, delete datasets and reproduce (copy) them.
Text notation:
Visual notation:
-
newidcamscmd Top
Text notation:
newidcamscmd : ;Visual notation:
-
anyidcamscmd Top
Text notation:
Visual notation:
-
idcamscmd Top
Visual notation:
-
definecmd Top
Text notation:
Visual notation:
-
definegdgcmd Top
Text notation:
Visual notation:
-
dsname Top
Visual notation:
-
dsn Top
Visual notation:
-
dsnpart Top
Visual notation:
-
gdgparm Top
Text notation:
Visual notation:
-
defineclustercmd Top
Text notation:
Visual notation:
-
defineaixcmd Top
Text notation:
Visual notation:
-
clusterparm Top
Supported ISAM definition options
Text notation:
Visual notation:
-
keylengthoffset Top
Visual notation:
-
parmlist Top
Text notation:
Visual notation:
-
protocols Top
PROTOCOL - Elastic COBOL Extension for internal file layout (multiple may apply) REMOTE - remote connection to file server; ENV - cluster name is a ddname, same as OFILE(name) VSAM - High level indication this is an indexed-sequential format of some kind; EC, E-ISAM, E_ISAM, EISAM - Elastic COBOL ISAM file format; MF, MFU, MFW - Micro Focus IDX 3 file format; AS400 - AS/400 file format; ISAM, CISAM, C-ISAM, C_ISAM - C ISAM file format; DISAM, D-ISAM, D_ISAM - D ISAM file format; ACON, ACU, ACUCOBOL - Acu COBOL file format; VIS4, VISION4, VIS, VISION - Vision File Format; VSQL - VSAM Transparency Mode -- elements as columns VDB - VSAM Transparency Mode -- records as blobs none-of-the-above - Elastic COBOL
Visual notation:
-
avgmaxrecsize Top
Visual notation:
-
aixparm Top
Text notation:
Visual notation:
-
defextra Top
Text notation:
Visual notation:
-
datapart Top
Visual notation:
-
indexpart Top
Visual notation:
-
catalogpart Top
Visual notation:
-
dataparm Top
DEFINE CLUSTER() DATA() portions are ignored
Visual notation:
-
indexparm Top
DEFINE CLUSTER() DATA() portions are ignored
Visual notation:
-
catalogparm Top
DEFINE CLUSTER() CATALOG() portions are ignored
Visual notation:
-
reprocmd Top
Visual notation:
-
reproopts Top
Text notation:
Visual notation:
-
reprofrom Top
Text notation:
Visual notation:
-
reproto Top
Text notation:
Visual notation:
-
reproreuse Top
Visual notation:
-
reproreplace Top
Visual notation:
-
deletecmd Top
Text notation:
Visual notation:
-
deleteparm Top
Text notation:
deleteparm : GENERATIONDATAGROUP | ALTERNATEINDEX | CLUSTER | NONVSAM | PAGESPACE | PATH SPACE | USERCATALOG | FILE WS? '(' WS? infile=ident WS? ')' | CATALOG WS? '(' WS? infile=ident ( '/' pw=ident )? WS? ')' | FORCE | NOFORCE | PURGE | NOPURGE | SCRATCH | NOSCRATCH | PROTOCOL '(' WS? protocols WS? ')' ;Visual notation:
-
datasetnames Top
Visual notation:
-
ifthenelsecmd Top
Text notation:
Visual notation:
-
ifclause Top
Visual notation:
-
thenclause Top
Text notation:
Visual notation:
-
elseclause Top
Text notation:
Visual notation:
-
idcamscmds Top
Text notation:
Visual notation:
-
newthenelsecmd Top
Text notation:
newthenelsecmd : { currentAMSOperation = new AMSOperation(); } ;Visual notation:
-
operator Top
Text notation:
operator : '=' | 'EQ' | '!=' | '~=' | 'NE' | '>' | 'GT' | '<' | 'LT' | '>=' | 'GE' | '<=' | 'LE' ;Visual notation:
-
setcmd Top
Visual notation:
-
ikjeft01 Top
IKJEFT implements TSO commands DSN, RUN, END -- connect to a database and run a program. DSN: symbolic db name specified in SYSTEM() keyword must be defined in an IKJEFT.properties file available on the datalib.1..9 or in the home (EBP WebApps folder). It should contain "url", "user", "password" where url is of the form "jdbc:driver://location/dbname". Note that the driver implementing "driver" must be present in the classlib.1..9 configuration (which contains $CLASSPATH by default). RUN: run the PROGRAM class or PROGRAM.LIB package (e.g., "PROGRAM(DSNTIAD) LIB(com.heirloomcomputing.pgm)") that is found on the classlib.1..9 configuration (which contains $CLASSPATH by default). It does not look in systemlib.1..9 which is used only for finding "EXEC PROG=" programs. The static main() entry point is invoked within the loaded class and if that class has a "conn" public static Connection field it is assigned the JDBC Connection object opened during the DSN SYSTEM() command, if specified. Heirloom Computing Extension: multiple DSN commands supported, with names other than SYSTEM which is referenced in the COBOL "SET CONNECTION name"; SYSTEM is a synonym for DEFAULT which is the initial DB connection name if no "SET CONNECTION" is issued by the program.
Visual notation:
-
tsocmd Top
Text notation:
Visual notation:
-
tsoidcamscmd Top
Some IDCAMS commands like REPRO can be in TSO sessions
Text notation:
Visual notation:
-
newtsoidcams Top
Text notation:
newtsoidcams : ;Visual notation:
-
dsncmd Top
DSN SYSTEM must specify a prefix of properties in IKJEFT.properties file containing at least prefix.url - the URL of the JDBC connection, prefix.user - connection user id, prefix.passowrd - connection password
Visual notation:
-
runcmd Top
RUN command requires PROG, PLAN is ignored, optional LIB where PROG is found
Text notation:
Visual notation:
-
runcmdkeyword Top
Text notation:
runcmdkeyword : RUN ;Visual notation:
-
runoption Top
RUN option PROGRAM can specify a COBOL program class or package.class and must be found on classlib.1..9 LIB is ignored, PLAN is ignored
Text notation:
Visual notation:
-
shellcmd Top
shell command can be used to invoke REXX, python or shell scripts on DD SYSEXEC
Visual notation:
-
shellpgm Top
Text notation:
shellpgm : ident ;Visual notation:
-
shellargs Top
Visual notation:
-
endcmd Top
END terminates command processing
Text notation:
endcmd : END ;Visual notation:
-
sort Top
SORT is a limited form of DFSORT which translates the SORT command into UNIX/Linux sort(1) command operations. Merging of input or spitting of output is not accepted at this time.
Visual notation:
-
sortcmd Top
only the SORT command is accepted from the SORT utility
Text notation:
Visual notation:
-
sortkeyword Top
Text notation:
sortkeyword : SORT ;Visual notation:
-
sortformat Top
FORMAT specifies global format
Text notation:
Visual notation:
-
sortfields Top
FIELDS consist of 'start,length,format,ascending' if sortformat has not been specified or 'start,length,ascending' if it has
Visual notation:
-
sortfield Top
Visual notation:
-
syncsort Top
SYNCSORT invokes the Linux DMXPRESS from SyncSort, inc.
Text notation:
syncsort : ;Visual notation:
-
dsnitab Top
DSNTIAD - the DB2 Command Line Interpreter modified to work with any JDBC database. Database commands are read in on SYSIN and are delimited by ';' each is examined for DB2 syntax which is modified to be SQL92 compliant or ignored then prepared and executed. A CONNNECT statement similar to that accepted by COBOL (url, driver, user, password keywords) will connect to the database. however, the static Connection field "conn" is available to be modified by IKJEFT01 which may connect via the DSN SYSTEM command before RUNning PROGRAM DSNITIAD
Text notation:
dsnitab : ;Visual notation:
-
dsnutilb Top
DSNUTILB normally processes TABLESPACE configurations statements of the system DSN specified as a PARM. This ignores these configurations as they are not necessary when dealing with JDBC databases
Text notation:
dsnutilb : ;Visual notation:
-
anything Top
Text notation:
anything : ~( '\r' | '\n' | '\'' )* ;Visual notation:
-
ident Top
Visual notation:
-
ID Top
Text notation:
ID : ('a'..'z'|'A'..'Z'|'$'|'#'|'@') ('a'..'z'|'A'..'Z'|'0'..'9'|'$'|'#'|'@')* ;Visual notation:
-
variable Top
Visual notation:
-
reserved Top
Text notation:
reserved : COPY | COPYGRP | SELECT | DEFINE | GENERATIONDATAGROUP | CLUSTER | ALTERNATEINDEX | KEYS | INDEXED | LINEAR | NONINDEXED | NUMBERED | DATA | INDEX | CATALOG | NAME | MODEL | RELATE | DELETE | FORCE | NOFORCE | PURGE | NOPURGE | USERCATALOG | NONVSAM | PATH | SPACE | PAGESPACE | SET | REPRO | INFILE | INDATASET | OUTFILE | OUTDATASET | FILE | LIMIT | NOLIMIT | PROTOCOL | SCRATCH | NOSCRATCH | EMPTY | NOEMPTY | DSN | END | RUN | PROG | PROGRAM | UNIQUEKEY | NONUNIQUEKEY | PARMS | PLAN | LIB | SORT | NOREPLACE | NOREUSE | REPLACE | REUSE ;Visual notation:
-
INT Top
Text notation:
INT : ('0'..'9')+ ;Visual notation:
-
WS Top
Text notation:
WS : (' '|'\t'|'\r'|'\n'|('--' (.)*? '\n')|('/*' (.)*? '*/')|'-')+ ;Visual notation:
-
SPECIAL Top
Text notation:
SPECIAL : ( '!' | '@' | '#' | '$' | '%' | '^' | '&' | '*' | '(' | ')' | '\\' | '-' | '+' | '=' | '{' | '}' | '[' | ']' | '|' | ':' | ';' | '\'' | '"' | '<' | '>' | ',' | '.' | '?' | '/' | '~' | '`' | '_' | INTL ) ;Visual notation:
-
INTL Top
Text notation:
INTL : . ;Visual notation:
-
A Top
Text notation:
A : ('a'|'A') ;Visual notation:
-
B Top
Text notation:
B : ('b'|'B') ;Visual notation:
-
C Top
Text notation:
C : ('c'|'C') ;Visual notation:
-
D Top
Text notation:
D : ('d'|'D') ;Visual notation:
-
E Top
Text notation:
E : ('e'|'E') ;Visual notation:
-
F Top
Text notation:
F : ('f'|'F') ;Visual notation:
-
G Top
Text notation:
G : ('g'|'G') ;Visual notation:
-
H Top
Text notation:
H : ('h'|'H') ;Visual notation:
-
I Top
Text notation:
I : ('i'|'I') ;Visual notation:
-
J Top
Text notation:
J : ('j'|'J') ;Visual notation:
-
K Top
Text notation:
K : ('k'|'K') ;Visual notation:
-
L Top
Text notation:
L : ('l'|'L') ;Visual notation:
-
M Top
Text notation:
M : ('m'|'M') ;Visual notation:
-
N Top
Text notation:
N : ('n'|'N') ;Visual notation:
-
O Top
Text notation:
O : ('o'|'O') ;Visual notation:
-
P Top
Text notation:
P : ('p'|'P') ;Visual notation:
-
Q Top
Text notation:
Q : ('q'|'Q') ;Visual notation:
-
R Top
Text notation:
R : ('r'|'R') ;Visual notation:
-
S Top
Text notation:
S : ('s'|'S') ;Visual notation:
-
T Top
Text notation:
T : ('t'|'T') ;Visual notation:
-
U Top
Text notation:
U : ('u'|'U') ;Visual notation:
-
V Top
Text notation:
V : ('v'|'V') ;Visual notation:
-
W Top
Text notation:
W : ('w'|'W') ;Visual notation:
-
X Top
Text notation:
X : ('x'|'X') ;Visual notation:
-
Y Top
Text notation:
Y : ('y'|'Y') ;Visual notation:
-
Z Top
Text notation:
Z : ('z'|'Z') ;Visual notation:
Generated by: ANTLR 4 IDE. Copyright (c) 2013 Edgar Espina
0 Comments