IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Add comments within the DFSORT statements


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jr3011

New User


Joined: 17 Apr 2008
Posts: 26
Location: Oviedo, FL

PostPosted: Fri Jul 31, 2009 11:36 pm
Reply with quote

Is is possible to add comments within the DFSORT statements for documentation ?
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Sat Aug 01, 2009 2:39 am
Reply with quote

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
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Sat Aug 01, 2009 3:19 am
Reply with quote

Thank You. This will be very helpful.
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Mon Aug 03, 2009 9:57 pm
Reply with quote

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
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Aug 03, 2009 10:18 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts DFsort help with SUM() DFSORT/ICETOOL 12
No new posts DFSORT - VB file RDW getting overridden DFSORT/ICETOOL 3
Search our Forums:

Back to Top