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: 6968
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: 6968
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: 6968
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 Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am

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