Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Merging two records using JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
rahul sijoriya

New User


Joined: 08 Jan 2007
Posts: 11
Location: hyderabad

PostPosted: Wed Dec 18, 2013 7:26 am    Post subject: Merging two records using JCL
Reply with quote

Hello ,

I want to merge records from two different files into one file as mentioned below:

File 1:
123456789
111111111
232547854

File2:
Test

O/p should be like below:
12345679Test
11111111Test
232547854Test

Please suggest
Back to top
View user's profile Send private message

Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1537
Location: Andromeda Galaxy

PostPosted: Wed Dec 18, 2013 9:23 am    Post subject:
Reply with quote

Is this something similar to your other post?

Anyway, What you could do is over a value in both the files

Join based on that value as key
Back to top
View user's profile Send private message
rahul sijoriya

New User


Joined: 08 Jan 2007
Posts: 11
Location: hyderabad

PostPosted: Wed Dec 18, 2013 9:54 am    Post subject:
Reply with quote

Basically both are more and less same....I thought if we can generate similar key in both the files like I did in other post "status" then it is easy to join two files using ICETOOL based upon the key..


in bottom of the requirement , I want second file data (Test) to be attached in file1 for all the records..

There is no key. But we can generate temporary key in middle of the processing which I did in other post and get rid off from temp key when final output will come. So final output should be,

File1 record1+file2 record
File 1 record2+ file 2 record
So on

Same file2 record will be appended in all file1 records..
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1537
Location: Andromeda Galaxy

PostPosted: Wed Dec 18, 2013 11:03 am    Post subject:
Reply with quote

Ok so what have you tried so far?
Back to top
View user's profile Send private message
Pandora-Box

Moderator


Joined: 07 Sep 2006
Posts: 1537
Location: Andromeda Galaxy

PostPosted: Wed Dec 18, 2013 11:13 am    Post subject:
Reply with quote

Also refer to the post by gicchet here

http://ibmmainframes.com/viewtopic.php?t=62143
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 -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Join giving more records than expected Danielle.Filteau SYNCSORT 2 Thu Mar 09, 2017 3:28 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Extract set of records matching on ac... bhaskar_kanteti DFSORT/ICETOOL 3 Mon Mar 06, 2017 7:19 am
No new posts Inserting records based on conditions vickey_dw DFSORT/ICETOOL 9 Wed Feb 22, 2017 1:33 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us