Copy Data from PDs to VSAM

Explain VSAM. Write a program to copy data from PDs to VSAM data set.

Showing Answers 1 - 6 of 6 Answers

P MANIKRISHNA REDDY

  • Jan 6th, 2016
 

using REPRO function to copy the data from pds to vsam
syntax:
//jobcard
//setp1 exec pgm=idcams
//dd1 dd dsn=fss244.mani.pds(m1),disp=shr
//dd2 dd dsn=fss244.mani.ksds,disp=old
//sysprint dd sysout=*
//sysout dd sysout=*
//sysin dd *
repro -
infile(dd1) -
outfile(dd2)
/*
//

  Was this answer useful?  Yes

Nagaraju

  • May 23rd, 2017
 

Vsam stands for Virtual storage access method.
It is an interface between application program and direct access storage device.
Program:
//jobcard
//step1 exec pgm=idcams
//sysprint dd sysout=*
//sysout dd sysout=*
//sysin dd *
repro -
indataset(pds dataset name) -
outdataset(vsam dataset name)
/*
//

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions