I want to use the PARM value passed by the JCL in my COBOL program.
So for the sake of the same i am just looking into some other module where the JCL parameter is as follows.
//STEP1 EXEC PGM=TESTAPP,TIME=5,REGION=6M,
But in my cobol program The coding has been done as below.
05 PARM-LENGTH PIC S9(04) COMP.
10 PARM-YY PIC X(02).
10 PARM-MM PIC X(02).
10 PARM-DD PIC X(02).
PROCEDURE DIVISION USING PARM-INFO.
So even though the PARM value passed to the program is only 6 charecter long , why have they used the COMP field PARM-LENGTH.