Page 1 of 1

Modify the PARM parameters passed to Compile JCL?

Posted: Wed Dec 03, 2014 3:20 pm
by Rohit Datta
Hi,

We've the COBOL compile JCL like this:

Code: Select all

//COBL EXEC PGM=IGYCRCTL, 
// COND=(4,LT), 
// PARM=('LANG(UE),F(I,I),NODBCS,OFF,NOLIST', 
.
.
and pass PARM parameters in compilation step as above.

As PARM parameter's lenght is restricted to 100 bytes, I think I can store the PARM parameters in a PS file and use it in the same compilation step as shown below:

Code: Select all

//COBL DD DSN=TheParm.file,DISP=SHR 
But looks like it's not doable, could you let me know how can I get it working?

Re: Modify the PARM parameters passed to Compile JCL?

Posted: Wed Dec 03, 2014 4:10 pm
by enrico-sorichetti
I think I can store the PARM parameters in a PS file and use it in the same compilation step as shown below:
did You check if Your way of thinking matches the COBOL COMPILER way of thinking ? :mrgreen:

here is the staring point to decide

http://www-01.ibm.com/support/docview.w ... wg27036733

the programming guide should give You enough hints

Re: Modify the PARM parameters passed to Compile JCL?

Posted: Wed Dec 03, 2014 4:15 pm
by Anuj Dhawan
They contradict. ;)

Re: Modify the PARM parameters passed to Compile JCL?

Posted: Wed Dec 03, 2014 5:30 pm
by Robert Sample
COBOL supports a way to do what you want -- but what you did is NOT what COBOL supports. You really need to spend some time reading the manuals.