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

Merging multiple records onto single record based on key


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

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Sat Jul 13, 2013 9:22 am
Reply with quote

Before jumping into conclusions, should n't we be clear on what the TS actually wants and let him respond to the queries raised and which are still unanswered.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Jul 13, 2013 10:57 pm
Reply with quote

Hi Arun,

Quote:
should n't we be clear on what the TS actually wants
Yup. . .

Until/unless TS provides better info we're just flailing away.

Maybe Vinu will be back on Monday . . .

d
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Wed Aug 07, 2013 2:39 am
Reply with quote

Sorry everybody. Actually I was out of country. Also my confidence dipped down and I am afraid to post further as I have messed up my wordings. Once again I am sorry to everybody
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Aug 07, 2013 2:41 am
Reply with quote

Hello,

Don't worry about "messed wording". It may take a few iterations, but we Can work thru it.

What is your status for this now?
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Aug 07, 2013 9:41 am
Reply with quote

Vinu,

We just want you to pay attention to the details requested for, and just provide them. None here is 'upset' with your 'wordings'.

But when someone takes the time to read through your posts and asks for details just to help you, it does n't seem right to ignore it.

Please feel free to post with confidence, Have a nice day icon_smile.gif
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Fri Aug 09, 2013 8:30 pm
Reply with quote

Hi Dick,

Thanks for the motivation.
From a record with 10 byte, whenever first 6 byte matches (can be 3 or 4 records), I would like to merge the 8th column data, 9th column data and 10th column data onto a single record.

Code:
Input is

ABCDEF X 
ABCDEF   Y
ABCDEF     Z
MNOPQR   Y
MNOPQR
UVWXYA

Output is
ABCDEF XYZ
MNOPQR  Y 
UVWXYZ


Thanks
Vinu
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 09, 2013 9:47 pm
Reply with quote

Hello,

Quote:
Thanks for the motivation.
You're most welcome icon_smile.gif

To do what you want, use your key (1-6) and in the INREC use IFTHEN, WHEN INIT, and PUSH the "x,y,z" values. Then in the OUTFIL, BUILD your re-formatted output records.

There should be examples here in the forum.
Back to top
View user's profile Send private message
vinu78

Active User


Joined: 02 Oct 2008
Posts: 179
Location: India

PostPosted: Mon Aug 12, 2013 6:05 pm
Reply with quote

Thanks Dick for the guidance. I will try that.

Thanks
Vinu
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 Goto page 1, 2  Next

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top