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
 

 

page break in Sort utility

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
karnataka

New User


Joined: 15 Sep 2006
Posts: 20
Location: bangalore

PostPosted: Wed Feb 14, 2007 12:23 pm    Post subject: page break in Sort utility
Reply with quote

HI,

Can any body tell how to give page break using sort utility.currently we are using below mentioned sort card,it is working fine but not able to get page breck.

Code:
SORT FIELDS=COPY                                                   
 OUTFIL REMOVECC,                                                   
 HEADER1=(01:'DATE:',&DATE,                                         
          60:'***  AUDIT REPORT FOR MTG TORTEE-NAMES ***',/,       
          60:'     =================================   ',/),       
 HEADER2=(160:'PAGE:',PAGE=(M12,LENGTH=5),/,                       
          13:'ORGINAL NAME',60:'CONVERTED NAME',90:'SUFFIX',       
          100:' FWL/OWL/FNL  ',126:'RULE #',                       
          135:'SRULE # ',145:' C/I/B  ',                           
          159:'INST NUMBER ',172:'SEQUENCE'/,                       
          13:'------------',60:'--------------',90:'-------',       
          100:'------------',126:'------',                         
          135:'-------',145:' ------  ',                           
          159:'----------- ',172:'--------'),                       
 TRAILER2=(/),                                                     
 TRAILER1=(60:'*** END OF THE REPORT  ***')                         
 OUTREC FIELDS=(1,50,52,39,93:92,1,100:94,25,126:120,4,136:125,4,   
            147:130,2,159:133,13,174:152,6,13X)                     
/*



Thanks
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: Wed Feb 14, 2007 9:27 pm    Post subject:
Reply with quote

REMOVECC tells DFSORT to suppress the ANSI carriage control characters such as page break ('1'). If you want those characters, don't specify REMOVECC.
Back to top
View user's profile Send private message
karnataka

New User


Joined: 15 Sep 2006
Posts: 20
Location: bangalore

PostPosted: Thu Feb 15, 2007 11:04 am    Post subject:
Reply with quote

hi,

i tried by removing removecc but getting error. here i am sending my syntax by altering according your message (removed removecc).


SORT FIELDS=COPY
OUTFIL,
HEADER1=(01:'DATE:',&DATE,
60:'*** AUDIT REPORT FOR MTG TORTEE-NAMES ***',/,
60:' ================================= ',/),
HEADER2=(160:'PAGE:',PAGE=(M12,LENGTH=5),/,
13:'ORGINAL NAME',60:'CONVERTED NAME',90:'SUFFIX',
100:' FWL/OWL/FNL ',126:'RULE #',
135:'SRULE # ',145:' C/I/B ',
159:'INST NUMBER ',172:'SEQUENCE'/,
13:'------------',60:'--------------',90:'-------',
100:'------------',126:'------',
135:'-------',145:' ------ ',
159:'----------- ',172:'--------'),
TRAILER2=(/),
TRAILER1=(60:'*** END OF THE REPORT ***')
OUTREC FIELDS=(1,50,52,39,93:92,1,100:94,25,126:120,4,136:125,4,
147:130,2,159:133,13,174:152,6,13X)



Thanks,
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: Thu Feb 15, 2007 10:05 pm    Post subject:
Reply with quote

I guess I should have showed you how to change the syntax (I assumed you'd look it up and not just throw in a random comma):

Code:

   SORT FIELDS=COPY
   OUTFIL HEADER1=(01:'DATE:',&DATE,
   ...


FYI, you can access all of the DFSORT books online from:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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 How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts DB2 - TERMINATE utility vasanthz DB2 5 Mon May 15, 2017 11:49 pm
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am
This topic is locked: you cannot edit posts or make replies. SORT trick needed bshkris SYNCSORT 6 Tue May 02, 2017 4:35 am
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm


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