View previous topic :: View next topic
|
Author |
Message |
jr3011
New User
Joined: 17 Apr 2008 Posts: 26 Location: Oviedo, FL
|
|
|
|
Is is possible to add comments within the DFSORT statements for documentation ? |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Yes. Just use an * in position 1. You can also use blank statements.
For example:
Code: |
//SYSIN DD *
* A SORT statement follows this comment.
SORT FIELDS=(5,4,CH,A)
* An OUTREC statement statement follows this comment which
* is written using two lines.
OUTREC FIELDS=(1,50,
*A comment in between operands is ok too.
101,3)
|
|
|
Back to top |
|
|
Douglas Wilder
Active User
Joined: 28 Nov 2006 Posts: 305 Location: Deerfield IL
|
|
|
|
Thank You. This will be very helpful. |
|
Back to top |
|
|
Skolusu
Senior Member
Joined: 07 Dec 2007 Posts: 2205 Location: San Jose
|
|
|
|
Alternatively you can add comments seperating the control cards with a space like this
Code: |
//SYSIN DD *
SORT FIELDS=(01,10,CH,A, $ EMP-NUMBER ASCENDING
50,08,PD,D) $ SALARY DESCENDING
OUTREC BUILD=(20,30, $ EMP-NAME
X, $ SPACE
01,10, $ EMP-NUMBER
X, $ SPACE
50,08) $ SALARY
/* |
|
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Note that those are referred to as "remark fields" in the DFSORT books, whereas statements starting with an * in position 1 are referred to as "comment statements". |
|
Back to top |
|
|
|