Thursday, December 8, 2011

COBOL: Continuing JCL PARM



If you have a very lenghthy PARM parameter, code the data till 71st column and code the remaining data in the following line starting exactly from 16th column.

In the below example, the program will receive PARM data of "SKIP=102-120,241-259,279-297,308-326,353-371,442-470,590-608,635-653"

//DROPFLC EXEC PGM=TEST,
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
// PARM='SKIP=102-120,241-259,279-297,308-326,353-371,442-470,590-608,6
//             35-653'
//SYSPRINT DD SYSOUT=*
//*

In the below example, the program will receive PARM data of "SKIP=102-120,241-259,279-297,308-326,353-371,442-470,590-608,6  35-653" as 16t and 17th positions are blank in the continuation line.

//DROPFLC EXEC PGM=TEST,
----+----1----+----2----+----3----+----4----+----5----+----6----+----7--
// PARM='SKIP=102-120,241-259,279-297,308-326,353-371,442-470,590-608,6
//               35-653'
//SYSPRINT DD SYSOUT=*
//*

No comments:

Post a Comment

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