Tuesday, December 6, 2011

Explanation for JCL PARM parameter

The length of the subparameters passed must not exceed 100 characters Including any commas, which are passed to the processing program. Excluding any enclosing parentheses or apostrophes, which are not passed.

For example, PARM='P1,123,MT5' is received by the program as P1,123,MT5.

1. 100 characters obviously will require two lines in the JCL. How will the PARM look when it rolls over to the new line. Any continuation character required ?

If the PARM value span over more than a line, then the PARM value continued in the next JCL statement anywhere in columns 4 through 16.

For example,

----5---10---15---20---25---30---35---40---45---50---55---60---65---70--


//STEP010 EXEC PGM=XXXXXXXX,PARM=(AAA,BBB,CCC,DDD,EEE,FFF,GGG,123,456,7
// HHH,III,JJJ)

2. If I need to pass an appostrophe to the program, what will I do?

Its not possible to pass an apostrophe to a program.

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.