VSAM to VSAM copy.

IBM's Sort Product, ICETOOL, ICEMAN and ICEGENER.
Post Reply
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

VSAM to VSAM copy.

Post by Prakash Jha »

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?
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: VSAM to VSAM copy.

Post by Robert Sample »

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.
Post Reply

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

Register

Sign in

Return to “IBM DFSort, ICETOOL, ICEMAN, ICEGENER.”