Hi,
I was trying to copy VSAM to another VSAM like in SORTIN and SORTOUT just 'same VSAMs' but different names. However the output came as flat file rather than as VSAM. Can this not be done?
VSAM to VSAM copy.
- Robert Sample
- Global Moderator
- Posts: 1903
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: VSAM to VSAM copy.
Yes, it is possible to use DFSORT to copy a VSAM data set to a VSAM data set, but you need to be aware of the requirements. Check the DFSORT manual for details. A quick search of the Internet indicates that using VSAM-to-VSAM copy has a requirement of using RECORD TYPE=V in your DFSORT control statements; the default is RECORD TYPE=F and that defaults to a sequential output data set. You also need to ensure that the output VSAM data set exists before running your DFSORT since IDCAMS is used to define VSAM data sets, not JCL statements.
Create an account or sign in to join the discussion
You need to be a member in order to post a reply
Create an account
Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute