Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
To combine two records and remove duplicates

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: To combine two records and remove duplicates
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: 6970
Location: porcelain throne

PostPosted: Sun May 08, 2011 3:49 pm    Post subject:
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    Post subject: Reply to: To combine two records and remove duplicates
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: 6970
Location: porcelain throne

PostPosted: Sun May 08, 2011 4:55 pm    Post subject:
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    Post subject:
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: 6970
Location: porcelain throne

PostPosted: Sun May 08, 2011 6:53 pm    Post subject:
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:
http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Inefficient BUILD - VB records paddin... Daniel Prosser SYNCSORT 6 Thu Dec 14, 2017 3:52 pm
No new posts ISSUE IN copying Sequential file reco... thesumitk JCL & VSAM 2 Wed Dec 13, 2017 3:07 pm
No new posts Merging 2 records at multiple rows wi... Bijesh DFSORT/ICETOOL 2 Wed Dec 06, 2017 1:50 am
No new posts Can we combine the rows with same key... V S Amarendra Reddy DB2 12 Fri Dec 01, 2017 10:29 pm
No new posts Increment number for every group of r... srajendran2 DFSORT/ICETOOL 7 Thu Nov 09, 2017 10:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us