Exercices 1-12 POE cobol
This repository is here to help you understand the basics of cobol with some exercices.
Those exercices are made by Global Knowledge, here stand modests corrections.
- Z/OS
- A program section
- A Loadlib
- A Compiler
Your program section should be a standard PDS.
Your Loadlib section shoul be a specific PDS.
//* You can create the loadlib, with this kind of JCL script.
//SYSUT2 DD DSN=IBMUSER.PROG.LOAD,DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(60,20),RLSE),
// DCB=(RECFM=U,LRECL=0,BLKSIZE=32760,DSORG=PO),
// DSNTYPE=LIBRARY
For cobol program, be sure to give the file name into PROGRAM-ID.
My setup is the following:
- IBMUSER.PROG.CBL : My cobol folder, including compiler and executer.
- IBMUSER.PROG.LOAD : My cobol loadlib, see above for specifications.
- IBMUSER.FILES : My folder dedicated for files read in executions.
You can transfer, copy/paste the files but it's recommanded to just check them.
- @emericdefay - Corrections propositions
- Alteca
- Global Knowledge
- Pole Emploie