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

Combining datasets into one


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasenjit_dey

New User


Joined: 30 Apr 2008
Posts: 20
Location: Noida

PostPosted: Fri Mar 13, 2009 3:24 pm
Reply with quote

Hi,

I have two datasets:

FileA:

Lauren
Susan

FileB:

James
Anderson


I want to combine the two files so that the output file FileC has records as:

LaurenJames
SusanAnderson
Back to top
View user's profile Send private message
Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Fri Mar 13, 2009 10:30 pm
Reply with quote

ojdiaz,

Do you just want to match the records just by the order they came in each file? record 1 from file 1 should be tagged with record 1 in file 2 and record 2 from file 1 should be tagged with record 2 in file 2 and so on?

What is the LRECL/RECFM of the input files and desired output file?

Answer these questions and we will show you a way to do it
Back to top
View user's profile Send private message
sivasaras

New User


Joined: 29 Sep 2007
Posts: 93
Location: chenna/i-

PostPosted: Tue Mar 17, 2009 5:33 pm
Reply with quote

HI,

You can use Merge file for combining datasets into one.

correct me if i am wrong,

Regards
siva
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Tue Mar 17, 2009 9:26 pm
Reply with quote

Quote:
correct me if i am wrong


You're wrong. Consider yourself corrected.

MERGE can combine individual sorted input data sets into one sorted output data set. The question in this thread had nothing to do with that. It's about "joining" fields from two files. When the OP answers Kolusu's questions, we'll show how to do this.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts PL/I, VB Datasets and the RDW PL/I & Assembler 4
No new posts how to get list of all VSAM/non-VSAM ... JCL & VSAM 13
No new posts define 1 DCB parms for multiple outpu... JCL & VSAM 9
No new posts FTP datasets to server CLIST & REXX 13
Search our Forums:

Back to Top