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

SORT - How to avoid repeating HEADER.


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

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Thu Mar 05, 2009 5:57 pm
Reply with quote

Hi All,

With the SORT JCL given below the HEADER is repeating for every 60 rows. I need this HEADR to be only at the top of the output file. Could any one please give me suggestions on how to avoid the repeating HEADER.


Code:
//SRT3    EXEC PGM=SORT                                               
//*                                                                   
//SORTWK01 DD DISP=(,CATLG,CATLG),UNIT=WORK,SPACE=(CYL,10)           
//SORTWK02 DD DISP=(,CATLG,CATLG),UNIT=WORK,SPACE=(CYL,10)           
//SORTWK03 DD DISP=(,CATLG,CATLG),UNIT=WORK,SPACE=(CYL,10)           
//SORTIN   DD DISP=SHR,DSN=DEPXX11.XXXXXX.INPDARU.DAT1               
//SYSPRINT DD  SYSOUT=*                                               
//SYSOUT   DD SYSOUT=*                                               
//SORTOUT  DD DSN=DEPXX11.XXXXXX.OUTDARU.DAT1,                     
//             DISP=(,CATLG),MGMTCLAS=KEEP,                           
//             DCB=(RECFM=FB,LRECL=115),                             
//             SPACE=(TRK,(50,50),RLSE)                               
//SYSIN    DD *                                                       
 SORT FIELDS=COPY                                                     
      OUTFIL FNAMES=SORTOUT,REMOVECC,                                 
      HEADER2=(1:'SYSTEM;WSTORGDATUM;MONTH;GUKANPP/POTTITIELL;GROUPE',
               51:'E;PORTFOGROUPPAE;CONTROLSTRUCT;ELEMENTGROUPPEE;', 
               98:'TEST;FN-TAB'),                                     
      OUTREC=(1:1,3,C';',5:C'01.',8:8,2,C'.',11:4,4,C';',             
              16:10,1,C';',18:11,1,C';',20:12,3,C';',24:20,1,C';',
              26:21,3,C';',30:24,3,C';',34:27,1,C';',36:28,5,C',',
              42:33,2,72X)                                         
/*                                                                 
//     
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2146
Location: At my coffee table

PostPosted: Thu Mar 05, 2009 6:38 pm
Reply with quote

LINES, HEADER1, TRAILER1, HEADER2, TRAILER2, SECTIONS, and NODETAIL indicate that a report is to be produced for an OUTFIL group, and specify the details of the report records to be produced for the report. Reports can contain report records for a report header (first page), report trailer (last page), page header and page trailer (at the top and bottom of each page, respectively), and section headers and trailers (before and after each section, respectively).
Try the report header (HEADER1) instead of the page header (HEADER2).
Back to top
View user's profile Send private message
jsnair

New User


Joined: 26 Sep 2006
Posts: 38
Location: India

PostPosted: Thu Mar 05, 2009 7:09 pm
Reply with quote

Hi All,

Got the solution. It is very simple we need to use HEADER1(Report Header) instead of HEADER2(Page Header)

Thanks
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 Need to set RC4 through JCL SORT DFSORT/ICETOOL 5
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts JCL sort card - get first day and las... JCL & VSAM 9
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts how to calculate SUM value for VB fil... DFSORT/ICETOOL 1
Search our Forums:

Back to Top