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 

Generate Seqnum for records using syncsort

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
manojvoona
Beginner


Joined: 05 Jan 2006
Posts: 43
Topics: 14

PostPosted: Thu Jan 05, 2006 10:54 am    Post subject: Generate Seqnum for records using syncsort Reply with quote

Hi,


I need to generate sequence numbers for all the records present in a file.
The sequence numbers however should restart from 1 when it encounters a new account.

How can this be achieved using syncsort?
e.g
Code:

     Account        Seq. Number
     Byte (1-3)        Byte(4-7)

      233                 0001
      233                 0002
      233                 0003
      233                 0004
      234                 0001
      234                 0002
      235                 0001
      236                 0001
      236                 0002
      236                 0003

Thanks
Manoj
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


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

PostPosted: Thu Jan 05, 2006 10:59 am    Post subject: Reply with quote

manojvoona,

Please search before posting . This has been discussed earlier. check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2628&highlight=break+seqnum

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
manojvoona
Beginner


Joined: 05 Jan 2006
Posts: 43
Topics: 14

PostPosted: Fri Jan 06, 2006 4:08 am    Post subject: Reply with quote

Thanks a lot.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) 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