RENAME member



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

RENAME member

Postby manesg » Tue Sep 15, 2009 1:23 pm

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.
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: RENAME member using JCL

Postby MrSpock » Tue Sep 15, 2009 2:46 pm

The two best ways I know of are:

1. The TSO/E RENAME command.

2. The IDCAMS ALTER command.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: RENAME member

Postby manesg » Wed Sep 16, 2009 11:16 am

Thanks Mr Spock.
I used IDCAMS ALTER and successfully renamed the member.
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time

Re: RENAME member

Postby Bill Dennis » Wed Sep 16, 2009 6:54 pm

IEHPROGM will also work if you use the correct syntax. There is a separate parameter for MEMBER= .

Check in the Utilities manual.
Regards,

Bill Dennis

Disclaimer: My comments on this forum are my own and do not represent the opinions or suggestions of any other person or business entity.
Bill Dennis
 
Posts: 278
Joined: Thu May 15, 2008 9:45 pm
Has thanked: 0 time
Been thanked: 0 time

Re: RENAME member

Postby manesg » Sun Sep 20, 2009 6:18 pm

Thanks Bill.
I shall check the same.
manesg
 
Posts: 22
Joined: Thu Jul 17, 2008 11:16 am
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post