Sorting multiple VSAM files
Posted: Wed Nov 06, 2013 10:09 pm
Hi All,
I have four VSAM files which are identical in terms of allocation and attributes. I want to sort all these VSAM files into a single flat file, basically just concatenating all the VSAM files.
I did look at several sites before posting it and tried out several things , nothing did work.
I did try using for multiple input VSAM files and got error message stating SORTIN statement missing.
Request someone to kindly help me out.
Thanks,
I have four VSAM files which are identical in terms of allocation and attributes. I want to sort all these VSAM files into a single flat file, basically just concatenating all the VSAM files.
I did look at several sites before posting it and tried out several things , nothing did work.
SORTIN DD DSN=VSAM1.FILE, DISP=SHR
DD DSN=VSAM2.FILE,DISP=SHR
DD DSN=VSAM3.FILE,DISP=SHR
DD DSN=VSAM4.FILE,DISP=SHR
SORTOUT DD DSN=FLAT.FILE,DISP=SHR
DD DSN=VSAM2.FILE,DISP=SHR
DD DSN=VSAM3.FILE,DISP=SHR
DD DSN=VSAM4.FILE,DISP=SHR
SORTOUT DD DSN=FLAT.FILE,DISP=SHR
I did try using
SORTIN01,SORTIN02,SORTIN03..
Request someone to kindly help me out.
Thanks,