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

To combine two records and remove duplicates


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jramuk

New User


Joined: 14 Nov 2007
Posts: 18
Location: US

PostPosted: Sun May 08, 2011 2:26 pm
Reply with quote

Hi,

I would require the output for the following input. Could you help me out.

Input.
AAAA;B001;B002;B0003
BBBB;B004;B005;B006
AAAA;B003;B004;B007
CCCC;B006;B007;B009

Output.
AAAA;B001;B002;B003;B004;B007
BBBB;B004;B005;B006
CCCC;B006;B007;B009

The record AAAA should be written only once and the repeating error number (B003) should be written only once.

Thanks
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun May 08, 2011 3:49 pm
Reply with quote

how many unique error numbers possible?
Back to top
View user's profile Send private message
jramuk

New User


Joined: 14 Nov 2007
Posts: 18
Location: US

PostPosted: Sun May 08, 2011 4:05 pm
Reply with quote

The unique error numbers would be 30
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun May 08, 2011 4:55 pm
Reply with quote

what is the input lrecl. assume the output lrecl is 155 max.
do you want VB files or a 155 FB output?
Back to top
View user's profile Send private message
jramuk

New User


Joined: 14 Nov 2007
Posts: 18
Location: US

PostPosted: Sun May 08, 2011 5:05 pm
Reply with quote

It is FB file with 155 lrecl
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun May 08, 2011 6:53 pm
Reply with quote

Though it is a DFSORT solution to a request in the JCL forum (which is normally syncsort),
the following link may give you an idea on how to solve your problem:
ibmmainframes.com/viewtopic.php?t=54373
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Remove leading zeroes SYNCSORT 4
No new posts Join multiple records using splice DFSORT/ICETOOL 5
Search our Forums:

Back to Top