How to rename a VSAM file as well as it's index file?
Answer Posted / 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 |
Post New Answer View All Answers
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
what is the purpose of coding notify parameter in job statement?
what are JCLLIB and STEPLIB in JCL?
Explain the purpose of dd dummy statement?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
Are there any set of rules for the names of the steps used in a job?
Explain in DD statement what is the use of DCB parameter?
What happens if both JOBLIB & STEPLIB is specified ?
what are the statements that are not valid to be included in an include statement?
What are the parameter we cannot use in procedure?
What is the purpose of dd * statement in jcl?
Explain the function of dd disp parameter?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?