I'm trying to rename a member - jcl below
//RENAM JOB (PS),'PS-RENAMEDEL',CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
RENAME MBOLT.MTEMPX.M7AWXX.DATA04(BATDL) -
MBOLT.MTEMPX.M7AWXX.DATA04(BATDLOLD)
//*
I get the below error in SYSPRINT:
__________
SYSTEM SUPPORT UTILITIES ---- IEHPROGM
RENAME MBOLT.MTEMPX.M7AWXX.DATA04(BATDL) -
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX
MBOLT.MTEMPX.M7AWXX.DATA04(BATDLOLD)
IEH201I INVALID REQUEST... STATEMENT IGNORED
UTILITY END
_______
When i replace the keyword RENAME with ALTER in the jcl, i get the following
___________
SYSTEM SUPPORT UTILITIES ---- IEHPROGM
ALTER MBOLT.MTEMPX.M7AWXX.DATA04(BATDL) -
IEH201I INVALID REQUEST... STATEMENT IGNORED
MBOLT.MTEMPX.M7AWXX.DATA04(BATDLOLD)
IEH201I INVALID REQUEST... STATEMENT IGNORED
UTILITY END
________
At first iam trying with one member. Eventually i need to rename couple of members in the same dataset.
(Iam trying to automate this process, as currently iam using the ispf menus to do the same, which is time consuming)
Or any other method?
Any leads?
thanks for your time.