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

In vsam at the cluster creation for KSDS FREESPACE parameter is required but for ESDS FREESPACE parameter is not required ?

4 Answers   IBM,


How are records stored in an ESDS, entry sequenced dataset?

1 Answers   IBM,


On which dataset you can have alt index?

0 Answers  


what's the device independent method to indicate where a Record is Stored?

1 Answers  


what is the use of aix in vsam why do we go for aix and wht is build index in vsam?

5 Answers   HCL, IBM,






what is the difference b/w sequential and ESDS

6 Answers   EDS, IBM, Maples,


what is the purpose of the verify function of idcams?

0 Answers   IBM,


What is the index set?

1 Answers  


How many Alternate Indexes you can have on a dataset?

2 Answers   AB Inc,


What is the function of linear dataset in vsam?

0 Answers  


is delete operation supported in an esds? Is rewrite operation possible in esds?

0 Answers   IBM,


What is the purpose of the FILE STATUS clause in the SELECT statement?

1 Answers  


Categories