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
 

 

How to increase seqnum in the sort

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

New User


Joined: 14 Aug 2006
Posts: 8

PostPosted: Wed Feb 06, 2008 3:46 pm    Post subject: How to increase seqnum in the sort
Reply with quote

I want to break the records

CAS093000100 03$001043
CAS093000200 03$999000
CAS093000300 03$001043
CAS093000400 03$360999

in the following format

CAS093197101 03$001
CAS093197102 03$043

when 999 is found in the data after $ I want the field from 7 byte to 10 byte to increment by one ie 1972. This 1972 should be applicable from next record output,the data after $ part should come in outrec with three byte in each output record.

Ie the output of next record should be

CAS093197201 03$001
CAS093197202 03$043
CAS093197202 03$360
Back to top
View user's profile Send private message

murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1439
Location: Bangalore,India

PostPosted: Wed Feb 06, 2008 8:37 pm    Post subject:
Reply with quote

himant,

Either your explanation is not enough or your requirement is confusing.

Put more examples with lots and lots of explanation (like from where did you get 1971 and 1972? etc....)
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 Limit duplicate records in the SORT pshongal SYNCSORT 6 Mon Nov 21, 2016 12:54 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm
No new posts abend sort based on count records in ... anatol DFSORT/ICETOOL 5 Mon Oct 17, 2016 10:10 pm


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