Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Add comments within the DFSORT statements

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Add comments within the DFSORT statements
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 Moderator


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

PostPosted: Sat Aug 01, 2009 2:39 am    Post subject:
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    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Mon Aug 03, 2009 10:18 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DFSORT MUL FIELDS tspr52 DFSORT/ICETOOL 16 Fri Mar 03, 2017 11:53 pm
No new posts How to get the remainder and quotient... vnktrrd DFSORT/ICETOOL 2 Mon Oct 31, 2016 10:59 am
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts DFSORT sorting only specific records akodakka DFSORT/ICETOOL 4 Thu Aug 04, 2016 11:24 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us