How to rename one vsam file as well as it's index?

Answers were Sorted based on User's Feedback



How to rename one vsam file as well as it's index?..

Answer / john

USING IDCAMS UTILITY
//SYSIN DD *
ALTER ABC.FILE -
NEWNAME(ABC.FILE.NEWNAME)

ALTER ABC.FILE.DATA -
NEWNAME(ABC.FILE.NEWNAME.DATA)

ALTER ABC.FILE.INDEX -
NEWNAME(ABC.FILE.NEWNAME.INDEX)
/*

Is This Answer Correct ?    18 Yes 0 No

How to rename one vsam file as well as it's index?..

Answer / deepthi

USING IDCAMS UTILITY,
SYSIN DD *
ALTER(OLDNAME)
NEWNAME(NEWNAME)
/*

Is This Answer Correct ?    20 Yes 9 No

How to rename one vsam file as well as it's index?..

Answer / prachi

//STEP010 PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER -
ABC.FILE -
NEWNAME(XYZ.FILE)-
/*
//

Is This Answer Correct ?    1 Yes 4 No

How to rename one vsam file as well as it's index?..

Answer / bannuru

USING IDCAMS UTILITY
//SYSIN DD *
ALTER OLDNAME-
NEWNAME(NEWNAME)
/*
//

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More VSAM Interview Questions

can any one tell "in esds in what structure records will stored?"

1 Answers  


What is a lds (linear data set) and what is it used for?

0 Answers  


Why is it required to have a keyed directed retrieval?

0 Answers  


What is the purpose of control intervals in vsam?

0 Answers  


can you specify some the distinctive features of a ksds, key sequenced dataset?

0 Answers   IBM,






What is RECOVERY and SPEED parameters in DEFINE CLUSTER command?

1 Answers  


By looking into the Jcl can we identify the dataset is VSAM?

5 Answers   Cognizant, Keane India Ltd,


what is the concept of AIX in vsam ????

1 Answers   HCL,


Explain the process in which flat files are converted into vsam files?

0 Answers  


What is a path?

1 Answers  


By looking into JCL can we identify the dataset is VSAM (VSAM dataset supposed to be a input dataset).In this scenerio how will we identify the dataset is VSAM ?

5 Answers   Cognizant, EDS, Shridhar,


Describe the uses of ams?

0 Answers  


Categories