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

Getting previous record using SORT New


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

New User


Joined: 29 Jun 2010
Posts: 11
Location: chennai

PostPosted: Thu Jul 26, 2012 5:41 pm
Reply with quote

I am having a problem that is most similar to this.
input/output record lenght is 133.

Input looks like ----------------

columns - 123456789...............................
CCNA report 1 Date - rundate
xxxxx Page 1
Market id : AATS date
cuid:CCSC
record1
record2
...........
recordn
CCNA report 1 Date - rundate
xxxxx Page 2
Market id : AAQS date
cuid:CCSC
record1
record2
...........
recordn
CCNA report 1 Date - rundate
xxxxx Page - 3
Market id : AAPS date
cuid:CCUC
record1
record2
...........
recordn
there can be n no of total records.also lines in each group are not fixed

I want to split this report into two files.
based on cuid
there are only two cuid in the files -CCUC and CCSC
File1- having record for cuid CCSC
File2- having record for cuid CCUC

Output file 1
123456789...............................
CCNA report 1 Date - rundate
xxxxx Page 1
Market id : AATS date
cuid:CCSC
record1
record2
...........
recordn
CCNA report 1 Date - rundate
xxxxx Page 2
Market id : AAQS date
cuid:CCSC
record1
record2
...........
recordn


Output file 2
CCNA report 1 Date - rundate
xxxxx Page - 1
Market id : AAPS date
cuid:CCUC
record1
record2
...........
recordn
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Thu Jul 26, 2012 6:10 pm
Reply with quote

Thanks Peter.

sanupadh,

You've made a real mess of this so far. Multiple posts. Tailgating an old topic. Not using the Code tags. Soliciting responses.

Please, a new topic for a new question (you can refer to other information here with a URL link). Don't post multiple times. Use the Code tags to preserve spacing and make any data/code easier to read. Don't prompt for help if you don't get an answer within moments, unless you are intending paying someone to give you the answer.
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 SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts JCL sort card - get first day and las... JCL & VSAM 9
Search our Forums:

Back to Top