Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VSAM File to Flat file Conversion.

Status
Not open for further replies.

Nits1212

Programmer
Aug 16, 2007
34
IN
Does anybody has JCL to convert VSAM file into Flat file. Please suggest.
 
this should be close

//s01 exec pgm=IDCAMS
//SYSPRINT DD SYSOUT=*
//DD1 DSN=TEST.VSAM.DS,DISP=SHR
//DD2 DSN=TEST.VSAM.SEQ,DISP=(,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(CYL,(1,1)),
// DCB=RECFM=FB,LRECL=120,BLKSIZE=2400
//SYSIN DD *
REPRO IFILE(DD1) OFILE(DD2)
//
 
You can also use DFSORT or (I think) SYNCSORT. Just use their copy function with SORTIN/OUT DD cards defining your datasets.

Regards, Jack.

"A problem well stated is a problem half solved" -- Charles F. Kettering
 
You can also use FileAID for this process and it will generate JCL you can save to repeat the process.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top