You can use (JCL) statements to call
access method services. PGM=IDCAMS identifies the access method services
program.
For example:
//YOURJOB JOB YOUR INSTALLATION'S JOB=ACCOUNTING DATA
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=A
//SYSIN DD *
access method services commands and their parameters
/*
- //YOURJOB, the JOB statement, is required to
describe your job to the system. You might be required to supply user
identification, accounting, and authorization information with the
JOB statement's parameters.
- //STEP1, the EXEC statement, is required. With
PGM=IDCAMS, this statement calls access method services to decode
and process the access method services commands and parameters contained
in the SYSIN data set. You can use the PARM operand of the EXEC statement
to pass parameters to the access method services program. Modal Commands, describes the PARM command and explains
the options you can use.
- //SYSPRINT, the SYSPRINT DD statement, is required. It identifies the output device to which
access method services sends messages and output information.
- //SYSIN, the SYSIN DD statement, is required to identify the source of the input statements.
An input statement is a functional or modal command and its parameters.
When you code SYSIN DD *, you identify the following statements as
input.
The last input statement can be followed by a delimiter statement
that has an * in the first two columns.