Tutorials:
Tools:
Utilities:
Abend Codes
Questions:
| Basic COBOL program ...
IDENTIFICATION DIVISION.
Execution JCL for a simple COBOL program
IDENTIFICATION DIVISION.
Execution JCL for a COBOL program which is having ACCEPT statements. //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Execution JCL //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION. Execution JCL //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Passing data to the COBOL program using PARM parameter in JCL: IDENTIFICATION DIVISION.
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION.
//IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION.
//IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Program to copy sequential file into other sequential file
SELECT STU-FILE ASSIGN TO DD1 Execution JCL for a program which is reading a PS file and writing into another PS file. //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Program to Create the variable length file: IDENTIFICATION DIVISION. Execution JCL for a variable length records file. //IND220EX JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
UTILITY PROGARM: IEFBR14
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
JCL to allocate the new Partitioned data set(PDS) using IEFBR14. //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
To copy PS data set to PS data set. //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
To copy PDS data set to PDS data set. //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
To selectively copy PDS members to the another PDS. //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
UTILITY PROGRAM: IEBCOMPR To compare the PS to PS and PDS to PDS data sets.. //IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Merging the files: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Define GDG and the model data set allocation. //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,
//IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
// NOTIFY=&SYSUID //*************************************************** //* TO DEFINE THE KEY SEQUENCED DATA SET (KSDS) //*************************************************** //STEPOZA EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSOUT DD SYSOUT=* //SYSIN DD * DEFINE CLUSTER(NAME(IND220.INDUS.STUDENT.CLUSTER) - RECORDSIZE(44,44) - CYLINDERS(3,2) - FREESPACE(10,20) - KEYS(4,0) - CISZ(4096) - INDEXED) - INDEX(NAME(IND220.INDUS.STUDENT.INDEX)) - DATA(NAME(IND220.INDUS.STUDENT.DATA)) /* //
//IND220ES JOB (123),'INDUS',MSGLEVEL=(1,1),REGION=6M,
Define VSAM RRDS Cluster: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION. Execution JCL for the ESDS write program //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION. SELECT STU-FILE ASSIGN TO STUDD
//IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION. Execution JCL for the RRDS write program //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Program to read from KSDS file randomly IDENTIFICATION DIVISION. Execution JCL //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDENTIFICATION DIVISION. Execution JCL for the KSDS read program //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), * INDEXED FILE READING RANDOMLY ......
Execution JCL //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDCAMS print command
IDENTIFICATION DIVISION. Execution JCL to read from the Alternate index Cluster.
IDCAMS ALTER COMMAND:
//IND220LC JOB (1234),'INDUS',MSGLEVEL=(1,1),REGION=6M
//IND220EX JOB (1234),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
IDCAMS PRINT COMMAND: //IND220PR JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220PR JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
//IND220LC JOB (1123),CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
EXPORT COMMAND
IMPORT COMMAND
MODEL COMMANDS Compile JCL’S:
//IND220CL JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), Compile procedure:
COBOL + CICS program compile JCL: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Map compile JCL:
//SYSIN DD DUMMY
COBOL + DB2 + CICS compile JCL:
//DB2COB EXEC PGM=DSNHPC,PARM='HOST(IBMCOB),NOSOURCE,APOST,APOSTSQL', //SYSUT2 DD DSN=&©LINK,DISP=(NEW,PASS),
//IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
COBOL + DB2 compile JCL: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
compile procedure:
Bind jcl: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), COBOL + DB2 execution JCL: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Instream procedures: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1), Cataloged procedures: IND220.INDUS.PROCLIB(CATPROC) //CATPROC PROC
Invoking JCL: //IND220SO JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Parameters overriding and symbolic parameters: //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
Parameters overriding, symbolic parameters and the SET statement: //IND220VI JOB (123),'INDUS',CLASS=A,MSGCLASS=A,MSGLEVEL=(1,1),
cataloged procedure: //CATOVER PROC |