I have a simple COBOL program that prints Hello World:
IDENTIFICATION DIVISION.
PROGRAM-ID. HELLO.
ENVIRONMENT DIVISION.
DATA DIVISION.
PROCEDURE DIVISION.
DISPLAY "Hello World!"
STOP RUN.
This is in the following dataset: INSTPS1.COBOL(HELLO).
But I can’t seem to figure out the JCL to run it. This is the script:
//INSTPS1X JOB 30000000,'MVS1 JOB CAR ',MSGLEVEL=(1,1),CLASS=A,MSGCLASS=Q,NOTIFY=&SYSUID,TIME=1440,REGION=0M
//COMPILE EXEC IGYWCL,
PARM=(OFFSET,NOLIST,ADV),
PGMLIB='INSTPS1.COBOL.LOADLIB',GOPGM=HELLO
COBOL.SYSIN DD DSN=INSTPS1.COBOL(HELLO),DISP=SHR
COBOL.SYSLIB DD DSN=INSTPS1.COBOL.LOADLIB,DISP=SHR
I get the following error:
“ENDED AT ESSMVSI MAXCC=0008 CN(INTERNAL)”
What am I doing wrong?
Your JCL has a number of syntax errors. Each statement must begin with two slashes, cannot extend beyond column 71, a continued statement ends with a comma, the continued part of the statement also begins with two slashes and at least one space.