Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Renaming a member in PDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Sat Sep 04, 2010 10:39 am    Post subject: Renaming a member in PDS
Reply with quote

Hi
I have too rename a member of a PDS. I am doing it by using EXEC TSO as below
//COPY EXEC TSO
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
RENAME 'PWSX.R9SSHC6.MYALLOC(CASE12)' 'PWSX.R9SSHC6.MYALLOC(CASE11)'
/*
//
but it is giving error saying in spool -:
2 IEFC612I PROCEDURE TSO WAS NOT FOUND
Can anyone provide solution on that.....
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Sat Sep 04, 2010 11:36 am    Post subject:
Reply with quote

IEFC612I PROCEDURE TSO WAS NOT FOUND
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Sep 04, 2010 12:25 pm    Post subject: Reply to: Renaming a member in a pds
Reply with quote

are You in the same class as grace who posted the same question in the beginners forum?

your dataset names
RENAME 'PWSX.R9SSHC6.MYALLOC(CASE12)' 'PWSX.R9SSHC6.MYALLOC(CASE11)'

her dataset names
REN 'PWSX.R9SSert.MYALLOC8(CASE)' 'PWSX.R9SSert.MYALLOC8(CASE11)'

the pattern ist too similar to be casual

again, i mildly suggest, given the level of Your questions that You migrate to the beginners forum


anyway
what is that is not clear in the massage You received ? ...
the procedure You are trying to execute does not exist

alternatives
- speak to Your support
- talk to Your instructor and try to understand better the assignment ( preferred )
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Sat Sep 04, 2010 12:38 pm    Post subject:
Reply with quote

today(saturday) is a holiday in our office and most of my colleagues have not come today.I have a task to complete thats is why i posted here....

I tried to rename the pds member by IEHPROGM utility also

following is the code ,please tell if my syntex is wrong...

//STEP1 EXEC PGM=IEHPROGM
//*
//SYSTERM DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSUDUMP DD DUMMY
//SVHCON DD DUMMY
//*
//SYSIN DD *
RENAME DSN=PWSX.R9SSHC6.MYALLOC8,MEMBER=CASE11,NEWNAME=CASE
/*
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Sat Sep 04, 2010 12:41 pm    Post subject:
Reply with quote

Following is the error that I am getting

SYSTEM SUPPORT UTILITIES ---- IEHPROGM

RENAME DSN=PWSX.R9SSHC6.MYALLOC8,MEMBER=CASE11,NEWNAME=CASE
IEH202I INVALID KEYWORD OR CONTROL STATEMENT SYNTAX

UTILITY END
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Sat Sep 04, 2010 1:22 pm    Post subject:
Reply with quote

Hello,

You cannot make up your own syntax - you have to use what the utility accepts. Read here:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/DGT2U140/14.5.7

This is available from the "IBM Manuals" link at the top of the page (IBM JCL Utilities Guide for DFSMS).

Which still does not explain why you and "grace" have the same question. Is grace by chance your name on that forum? You should relocate yourself to that forum as others have suggested.

If there is only 1 member to rename and you need it quickly, a very easy way is to do this in your tso session - i use 3.4 to get to the dataset. . .
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Sat Sep 04, 2010 1:58 pm    Post subject: Reply to: Renaming a member in a pds
Reply with quote

google is also a good friend...
when googling for jcl rename examples
the fifth link
has 3 examples which fit perfectly

1- IEHPROGM rename
2- IDCAMS rename
3- IKJEFT01 rename
all with the right syntax and spacing and continuation

learn to do some homework before posting,
in order not to waste people time with silly/stupid/simple issues that any IT practitioner with below average skill should be able to solve by him/herself

meditate on
http://catb.org/~esr/faqs/
with particular regard to
How To Ask Smart Questions
How to ask questions of hackers in a way that makes it most likely that you'll get a useful answer.
http://catb.org/~esr/faqs/smart-questions.html
Back to top
View user's profile Send private message
ankoo

New User


Joined: 12 Jun 2010
Posts: 31
Location: India

PostPosted: Mon Sep 06, 2010 10:38 am    Post subject:
Reply with quote

Hi, I opened the 5th link and saw that it has only IUTPROGM utility example and when I ran that example i got an error stating that PROGRAM "IUTPROGM" NOT FOUND I searched in google by the name "IUTPROGM " it says "IUTPROGM is a locally written program that is no longer supported"
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Sep 06, 2010 10:56 am    Post subject: Reply to: Renaming a member in a pds
Reply with quote

Hello,

And this posted to inform everyone . . . ?

What is "the 5th link"?

Why are you not using one of the standard utilities?

d
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 06, 2010 11:13 am    Post subject: Reply to: Renaming a member in a pds
Reply with quote

Quote:
Hi, I opened the 5th link and saw that it has only IUTPROGM utility example and when I ran that example i got an error stating that PROGRAM "IUTPROGM" NOT FOUND I searched in google by the name "IUTPROGM " it says "IUTPROGM is a locally written program that is no longer supported"
icon_question.gif

Quote:
google is also a good friend...
when googling for jcl rename examples
the fifth link
has 3 examples which fit perfectly

1- IEHPROGM rename
2- IDCAMS rename
3- IKJEFT01 rename
all with the right syntax and spacing and continuation


when searching the links returned depend on
the languages the documents should be written in,
the caching in Your browser

so the wording fifth link should not be taken literally

I just rerun the search and the link that was fifth today is the first!

use a bit of imagination

strong point...

googling is a shortcut if You have a bit of competence and ingenuity
if You do not have the slightest idea of what You are looking for than You should look at the manuals

in my post and quoted sentence I was clear about the three examples
and the programs being used

did You read well my reply?
Your attempt to use a program which was never suggested is puzzling!

now searching for
"Renaming a PDS member through JCL" mark zelden
<literally> with the double quotes ==> means look for the exact sentence
will return ( at least does for me ) only 4 links and should be easy for You to find the right one
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Mon Sep 06, 2010 11:40 am    Post subject: Reply to: Renaming a member in a pds
Reply with quote

I am getting fed up, and I am too lazy to IPL my system to cut and paste the examples from my JCLS
here are the three samples taken from the link I was pointing to!

Code:
Rename example #1 (Note: The continuation "X" should be in column 72 even though it is not shown that way.)

//RENAME JOB...
//STEP1 EXEC PGM=IEHPROGM
//SYSPRINT DD SYSOUT=*
//DD1 DD UNIT=SYSDA,VOL=SER=USER01,DISP=SHR
//SYSIN DD *
 RENAME  DSNAME=ABC.DEF.GHI,                       X
               VOL=SYSDA=USER01,                   X
               MEMBER=MEMBER,NEWNAME=NEW
/*
Rename example #2
//RENAME JOB...
//PS010  EXEC  PGM=IDCAMS
//DD1      DD  DSN=ABC.DEF.GHI,DISP=SHR
//*  FILE(DD1) NEEDED IN EXAMPLE TO PREVENT AN
//*  EXCLUSIVE ENQ ON THE ENTIRE PDS
//SYSPRINT DD  SYSOUT=*
//SYSIN    DD  *
 ALTER ABC.DEF.GHI(MEMBER)  -
 NEWNAME(ABC.DEF.GHI(NEW)) FILE(DD1)
/*
Rename example #3
//RENAME JOB...
//* NEED EXCLUSIVE ENQ FOR THIS
//TMP      EXEC PGM=IKJEFT01,REGION=2M
//SYSTSPRT DD   SYSOUT=*
//SYSTSIN  DD   *
  RENAME 'ABC.DEF.GHI(MEMBER)'      +
         'ABC.DEF.GHI(NEW)
/*


the examples were posted to a public forum so even if ( but I doubt it ) there might be some copyright on them
quoting them is under the fair use assumption so there is no infringment
credits and thanks anyway to Mark Zelden for saving me the time to retype the whole mumbo jumbo icon_biggrin.gif
Back to top
View user's profile Send private message
santy
Warnings : 1

New User


Joined: 19 Jul 2007
Posts: 22
Location: mumbai

PostPosted: Wed Sep 08, 2010 3:58 pm    Post subject: Reply to: Renaming a member in a pds
Reply with quote

Renaming the dataset using different utility are as below,

Using IEHPROGM:-

Code:
RENAME  DSNAME=PWSX.R9SSHC6.MYALLOC,
    MEMBER=CASE12, NEWANME=CASE11



Using IDCAMS :-
Code:
ALTER PWSX.R9SSHC6.MYALLOC(CASE12)  -
      NEWNAME(PWSX.R9SSHC6.MYALLOC(CASE11)) FILE(DD1)


Using IKJEFT01:-
Code:
RENAME PWSX.R9SSHC6.MYALLOC(CASE12)'      +
         PWSX.R9SSHC6.MYALLOC(CASE11)'
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed Sep 08, 2010 4:13 pm    Post subject:
Reply with quote

Santy,

Are you 100% positive that your suggestion using IEHPROGM will work, because I'm not.

Where is your continuation character in cc72.

You must have read the CORRECT post by Enrico before posting, didn't you.

Also, please learn to use
Code:
 [code] your post here [/code]
tags to preserve spacing which is highly important in the use of IEHPROGM.

Basically, if you can not post a correct and tested solution, please do not post at all, because I somehow doubt that ANY of the solutions posted by you are syntactically correct
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Sep 08, 2010 7:45 pm    Post subject: Reply to: Renaming a member in a pds
Reply with quote

Hello,

Santy needs to refrain from posting anything that has not been tested.

There have been multiple incorrect "solutions" posted so far today. . .

It is good to want to contribute, but posting guesses gives mis-information and the rest of us waste time reviewing/removing these.

d
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts File Stauts 92 with member of PDS sandip_mainframe COBOL Programming 4 Fri Jun 10, 2016 12:06 pm
No new posts how to extract the member name ? jackzhang75 CLIST & REXX 1 Wed Feb 17, 2016 9:21 pm
No new posts Check if a member is present in libra... enrico-sorichetti All Other Mainframe Topics 1 Wed Feb 03, 2016 12:29 pm
No new posts Editing "member generations"... Ricardo Viegas TSO/ISPF 1 Tue Dec 29, 2015 7:27 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us