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 

Dropping summary records
Goto page Previous  1, 2
 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
wiprov
Beginner


Joined: 18 May 2010
Posts: 7
Topics: 1

PostPosted: Tue Oct 07, 2014 11:08 am    Post subject: Reply with quote

Thanks a ton, for the logic.
I have used your idea and made the below logic which perfectly worked. Thanks again!

1) INREC - building the key at 11th position followed by sequence number (Col-21:26) and ID values (Col 27:32)
2) Sequence number (Col 21:26) gets incremented when it encounters header record
3) OUTREC - building the sequence number (Col 31:36) which gets restarted only when there is change in key value (11th position)
4) Checking the sequence number (col 31:36) with seq number (Col 21:26) and omitting the records if they are not equal
5) In the second SORT step, retaining the original order of records by sorting the ID values.

You people are great and many thanks for the timely help. Nice time
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
Goto page Previous  1, 2
Page 2 of 2

 
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