Page 1 of 1

Comments within a Control Card

PostPosted: Tue Nov 16, 2010 8:23 pm
by mberger
Is there a method of putting comments into control cards? I would like to place comments in cards used for sort statements, VSAM repro statements, etc., as well as SQL statements used for unloading and loading DB2 tables.

Re: Comments within a Control Card

PostPosted: Tue Nov 16, 2010 8:30 pm
by Akatsukami
Depends on the program using the control card, of course.

Re: Comments within a Control Card

PostPosted: Tue Nov 16, 2010 8:33 pm
by enrico-sorichetti
Yes...
the manuals will tell all You might want to know

start here for the MVS utilities
http://publibz.boulder.ibm.com/cgi-bin/ ... s/DGT2BK81

here is the link to the IDCAMS manual
http://publibz.boulder.ibm.com/cgi-bin/ ... 0602132758

and here for DB2
http://publibz.boulder.ibm.com/cgi-bin/ ... s/DSNSHKA3

Re: Comments within a Control Card

PostPosted: Wed Nov 17, 2010 1:35 am
by Frank Yaeger
For DFSORT, just put an * in column 1 for a comment, e.g.

* This is a comment.
   SORT FIELDS=(5,4,CH,A)
* This is another comment.
* So is this.
  OUTFIL INCLUDE=(1,2,CH,EQ,C'AB')

Re: Comments within a Control Card

PostPosted: Wed Nov 17, 2010 1:39 am
by Phrzby Phil
But so easy to test - why ask?

Re: Comments within a Control Card

PostPosted: Wed Nov 17, 2010 2:07 am
by dick scherrer
Hi Phil,

Tough to test when one is first learning and is not yet familiar with the "product(s)" . . .

I still find it frustrating that so many products/authors do the "same thing" so many different ways. . . :)

And i also realize that it ain't gonna change. . . 8-)

d