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

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the purpose of the file status clause in the select statement?

519


how do you define an altindx ? How do you use altindxs in batch, cics programs?

598


what do you mean by idcams? Explain its purpose?

539


Would you specify freespace ce for an esds?

598


Using alternate indexes in cics program?

553






what is the meaning of dynamic processing in vsam?

582


what is a base cluster in vsam?

657


What is the purpose of having vsam data space?

526


Differentiate between control interval (ci) and control area (ca)?

527


explain the information contained in ci

600


How do you define an altindx?

561


What makes vrrds different from vsam?

701


What is the purpose of idcams?

572


What is the purpose of control intervals in vsam?

519


what do you mean by a vsam slot?

581