I just did an experiment in DFSORT with JCL-style line comments after INCLUDE, 
SORT, and OUTREC, and they work!

The DFSORT doc says that comments are only supported when entered with * on 
column 1. 

When was this implemented, and why isn’t this documented? Do you think it is 
safe to rely on?

I sent this question to dfs...@us.ibm.com but it bounced right back, perhaps 
there are DFSORT developers here.

Regards,
Bob Stark

//STEP1    EXEC PGM=SORT                                               
//SYSIN     DD  *                                                      
  INCLUDE COND=(9,1,CH,EQ,C'3',|,         PART NUMBERS ENDING IN 3     
                9,1,CH,EQ,C'5',|,         PART NUMBERS ENDING IN 5     
                9,1,CH,EQ,C'7')           PART NUMBERS ENDING IN 7     
  SORT FIELDS=(10,30,CH,A)                SORT ASCENDING BY DESCRIPTION
  OUTREC BUILD=(2X,10,30,3X,1,9,3X,68,10) DESCRIPTION, PARTNO, CATEGORY
//SYSOUT    DD  SYSOUT=*                                               
//SORTOUT   DD  SYSOUT=*                                               
//SORTIN    DD  DISP=SHR,DSN=&HL..TR.INPUTA                             

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to