How to rename a VSAM file as well as it's index file?

Answers were Sorted based on User's Feedback



How to rename a VSAM file as well as it's index file?..

Answer / sai

I think by using IDCAMS-ALTER command we can rename VSAM
dataset

Is This Answer Correct ?    26 Yes 2 No

How to rename a VSAM file as well as it's index file?..

Answer / santy

we can rename the VSAM file as well as it's INDEX file
using the ALTER command under IDCAMS utility.

Is This Answer Correct ?    7 Yes 2 No

How to rename a VSAM file as well as it's index file?..

Answer / mlaj

use this jcl below

//M052RPAR JOB ('comment',F7),'comment ',
// MSGLEVEL=(1,1),MSGCLASS=H,CLASS=A,REGION=0M,
// PRTY=15
//*******************************************************
//STEP10 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
ALTER M054.TEXT NEWNAME(M052.TEXT)
ALTER M054.TEXT.* NEWNAME(M052.TEXT.*)
/*

Is This Answer Correct ?    0 Yes 1 No

How to rename a VSAM file as well as it's index file?..

Answer / giri

Sai, using File Master tool we can rename the VSAM file.
Option 3.2 in File Master tool.

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More JCL Interview Questions

What is the difference b/w the CLASS,TIME,PRTY in jcl job card.

4 Answers   Syntel,


Can we delete the data using IEFBR14 , IEBGENER??

5 Answers   Kanbay,


We have two PS files,want to compare those files and put the duplicate records in one file. Input file 1 contains(1,2,4,9,10) Input file 2 contains (1,4,5,11,12,14,16). Help me with jcl.

6 Answers  


i have a string of 80 chars i want to replace 4th char with "a"?

3 Answers   CSC,


One dataset is creating in the step1 with LRECL of 133 and the same dataset is used in the next step in DISP=SHR mode, but while scanning the JCL the following error is thrwon. Please verify the below JCL $/SEPP030.PROVIDER DD DSN=Z1225BT.F5750PG9.F5910PRV.QC#A6868 //ERRORRPT DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, --ERRORRPT DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=&DISNCD,UNIT=&DELQ, -- DISP= (NEW,CATLG,DELETE),UNIT=DELQ, // SPACE=(TRK, (30,15),RLSE), // DCB=&DCB2 -- DCB= (PPG.METMODEL,BLKSIZE=0,LRECL=133,RECFM=FB) $/SEPP030.ERRORRPT DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT //SEPP040 EXEC PGM=FILEAID,COND= (0002,EQ,SEPP030) //SYSPRINT DD SYSOUT=* //SYSLIST DD SYSOUT=* //DD01 DD DSN=SYSCMN.PROD.CCLIB (F5910EP1),DISP=SHR $/SEPP040.DD01 DD DSN=Z1225BT.TEST.CCLIB (F5910EP1) E1 - DSS20791E - DATA SET 'Z1225BT.F5910EPP.ERRORRPT.AOUTPUT' HAS AN LRECL OF 133 COULD NOT BE OPENED BECAUSE THE CODED LRECL WAS 80. // DD DSN=F5910&ST&IN..F5910EPP.ERRORRPT.P&CYCDATE, -- DD DSN=F5910PG.F5910EPP.ERRORRPT.P, // DISP=SHR $/ DD DSN=Z1225BT.F5910EPP.ERRORRPT.AOUTPUT please find the error code in the above mentioned lines and please suggest me about the error and the solution for that.

3 Answers   Cognizant,






Hi, can we call catalog( say myproc } proc n times in jcl if so how please explain Thanks in advance

2 Answers   Cap Gemini,


If the COND parameter is specified in both the JOB and EXEC statements, which one will take precedence? If JOB takes priority and if all the conditions evaluate to false, then will the conditions on the EXEC step be evaluated next?

4 Answers   Wipro,


how to eliminate the duplicates in sorting

4 Answers   Fidelity,


how to skip the steps in JCl

2 Answers   EDS,


What is GDG and what is the maximum limit of versions that can be created?

9 Answers   Convergys,


can u explain gdg with example wht happens if we give limit,empty,noempty,scartch and no scartch

1 Answers   IBM,


Explain the function of dd name parameter with a 2 part structure; audit.report?

0 Answers  


Categories