MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Page Break using sort

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sub1
Beginner


Joined: 09 Dec 2005
Posts: 5
Topics: 2

PostPosted: Fri Dec 09, 2005 12:05 pm    Post subject: Page Break using sort Reply with quote

Hi,
I am using SYNCSORT. I want to know how to insert a page break in a file after a specific word.

Everypage in my file has "Page n of N" starting from 60th column. I want to insert a page break once i reach the line. The number of lines per page varies. So I cannot go by the LINES=XX

Could you please help
Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Dec 09, 2005 12:28 pm    Post subject: Reply with quote

sub1,

You can use SKIP=P on the Sections Parm to write on a new page. Show us an example and I will show you the control cards.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sub1
Beginner


Joined: 09 Dec 2005
Posts: 5
Topics: 2

PostPosted: Fri Dec 09, 2005 12:41 pm    Post subject: Reply with quote

Kolusu,
I have a report in a file. The report looks like
Code:

                                                         Shop Name

                                                        Report Name

------------------------------------------------------------------
Company Ledger Account         Price Quantity   Date
------------------------------------------------------------------
CC1         LLL1    ACC1            1.1    20           12/09/2005     
CC2         LLL2    ACC2            2.1    21           12/08/2005     
                                                                       
                                                         Page 1 of 100 
                                                          Shop Name

                                                        Report Name

------------------------------------------------------------------
Company Ledger Account         Price Quantity   Date
-------------------------------------------------------------------
CC3         LLL5    ACC3            1.1    20           12/09/2005     
CC2         LLL2    ACC2            2.1    211         12/08/2005
CC1         LLL2    ACC2            2.1    211         12/08/2005
CC4         LLL2    ACC4            5.5    111         12/08/2005

                                                         Page 2 of 100 


I want a page break after every "Page n of N". This value start in 60th column.

Thanks for your help
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Fri Dec 09, 2005 1:42 pm    Post subject: Reply with quote

sub1,

Assuming that you input file is 133 bytes and has a FBA recfm , the following JCL will give you the desired results.



Code:

//STEP0100 EXEC PGM=SORT                                         
//SYSOUT   DD SYSOUT=*                                           
//SORTIN   DD DSN=YOUR INPUT REPORT,
//            DISP=SHR                       
//SORTOUT  DD DSN=YOUR OUTPUT PAGEBRK REPORT,
//            DISP=(NEW,CATLG,DELETE),
//            UNIT=SYSDA,
//            SPACE=(CYL,(X,Y),RLSE)
//SYSIN    DD *                                                 
  SORT FIELDS=COPY                                               
  OUTREC FIELDS=(1:60,4,CHANGE=(1,C'PAGE',C'1'),                 
                               NOMATCH=(C' '),
                 2,132)             
/*


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sub1
Beginner


Joined: 09 Dec 2005
Posts: 5
Topics: 2

PostPosted: Fri Dec 09, 2005 2:47 pm    Post subject: Reply with quote

Thanks alot kolusu. Your solution worked.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group