Search code examples
mainframe

VSAM to PDS member


Can we copy VSAM file to a PDS member? eg. I have a VSAM file A.VSAM I have a PDS. B.PDS which has members A,B I want to copy my A.VSAM file to B.PDS(C) ... C is the new member in PDS. Can I do this?

Thanks and Regards, Manasi :)


Solution

  • IDCAMS REPRO can do the job.

    In your JCL:

    • set INFILE DD to point to the VSAM input file
    • set OUTFILE DD to point to the PDS member

    Complete documentation for IDCAMS can be found in: DFSMS Access Method Services for Catalogs . Look under REPRO (chapter 29)