> -----Original Message-----
> From: IBM Mainframe Discussion List On Behalf Of MURALI KANNAN
> Sent: Wednesday, December 10, 2014 4:13 AM
> 
> I would sort the VSAM files using a key and then copy the data to flat file, 
> to avoid duplication or
> merging of data.
> Correct me if I am wrong.

The OP did not specify what type of VSAM datasets are involved.  If KSDS, they 
are already sorted on a key value, and might be amenable to a MERGE operation 
(but what about duplicate keys?).  Other considerations:  1)  Are all the VSAM 
datasets the same type?  2) Do they all have the same RECFM and LRECL?  3)  are 
there any alternate indices in the set?

Based on the limited information given originally, the simplest means seems to 
be IDCAMS REPRO from each VSAM dataset in turn, to a VB "flat file" coded with 
DISP=MOD.  Whether that output VB "flat file" might be useful is a separate 
problem.

    -jc-

**********************************************************************
Information contained in this e-mail message and in any attachments thereto is 
confidential. If you are not the intended recipient, please destroy this 
message, delete any copies held on your systems, notify the sender immediately, 
and refrain from using or disclosing all or any part of its content to any 
other person.


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to