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
 

 

How to rename a PDS in JCL invoking ISPF ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Fri Jun 18, 2010 4:16 pm    Post subject: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

In JCL, I use IEBCOPY to rename PDS but i's too long, whereas it's instantaneous with ISPF online.
Is it possible to do the same in JCL (invoking ISPF) ?
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: Fri Jun 18, 2010 4:20 pm    Post subject:
Reply with quote

Please explain how you use IEBCOPY to perform a rename operation.

Look at IDCAMS ALTER.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jun 18, 2010 4:21 pm    Post subject: Reply to: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

Won't a TSO RENAME or IDCAMS ALTER work just as well without all of the excess that comes along with using ISPF services in batch?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Jun 18, 2010 5:38 pm    Post subject:
Reply with quote

Searchman

Have a co-worker edit a member of a PDS
and at the same time, you try to rename it in an interactive TSO session
(what you incorrectly term ISPF online).

how instantaneous is it now?
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Fri Jun 18, 2010 6:14 pm    Post subject: Reply to: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

Code:

000005 //RENAMU13  EXEC PGM=IEBCOPY
000006 //SYSPRINT  DD  SYSOUT=*
000007 //SYSOUT    DD  SYSOUT=*
000008 //SYSOUA    DD  SYSOUT=*
000009 //I1        DD  DSN=DUEX.EXPL.PREPU.PARMVSAM,DISP=(OLD,DELETE)
000010 //O1        DD  DSN=DUEX.EXPL.PREPU.PARMVSAM.JMOINS1,
000011 //          LIKE=DUEX.EXPL.PREPU.PARMVSAM,
000012 //          DSNTYPE=LIBRARY,DISP=(NEW,CATLG)
000013 //SYSUT3    DD  UNIT=SYSDA,SPACE=(TRK,(1,1))
000014 //SYSIN     DD  *
000015 RENAMU13   COPYGRP  INDD=((I1,R)),OUTDD=O1
000016 //*
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Fri Jun 18, 2010 6:18 pm    Post subject:
Reply with quote

As far as i see it, this a pds copy with a member replace option.
Why you do that for a new dataset is not quite clear to me.
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Fri Jun 18, 2010 6:24 pm    Post subject: Reply to: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

So, is there another option that just renames PDS, like "Rename" of ISPF ("R" in 3.4) ?
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Fri Jun 18, 2010 7:25 pm    Post subject: Reply to: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

Quote:
So, is there another option that just renames PDS

Please read the posts from Superk and Expat.
Back to top
View user's profile Send private message
Searchman

New User


Joined: 28 Dec 2006
Posts: 80
Location: France

PostPosted: Fri Jun 18, 2010 8:07 pm    Post subject: Reply to: How to rename a PDS in JCL invoking ISPF ?
Reply with quote

Code:

000005 //RENAMU13  EXEC PGM=IDCAMS
000006 //SYSPRINT  DD  SYSOUT=*
000007 //SYSOUT    DD  SYSOUT=*
000008 //SYSOUA    DD  SYSOUT=*
000009 //SYSIN     DD  *
000010  ALTER DUEX.EXPL.PREPU.PARMVSAM -
000011  NEWNAME(DUEX.EXPL.PREPU.PARMVSAM.JMOINS1)
000012 //*
****** **************************** Bottom of Data ****************************


Thank you, Superk, it's exactly what I was looking for : IDCAMS RENAME
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Sat Jun 19, 2010 8:47 pm    Post subject:
Reply with quote

Quote:
Have a co-worker edit a member of a PDS
and at the same time, you try to rename it in an interactive TSO session
(what you incorrectly term ISPF online).
how instantaneous is it now?

Still instantaneous if you have sufficient RACF authorization and the dataset is non SMS managed
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat Jun 19, 2010 10:30 pm    Post subject:
Reply with quote

nevilh wrote:
Still instantaneous if you have sufficient RACF authorization and the dataset is non SMS managed


could you explain to me,
what
  • RACF authority
  • non-sms managed dsns
has to do with the inability to obtain exclusive on the ds.
(somebody else is already editing a member).

but then I
  • am just an old fart
  • have faulty memory
  • basic inability to read and comprehend
  • probably have other ailments that impairs proper brain function
and is the cause of why I don't understand your post.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 258

PostPosted: Sat Jun 19, 2010 10:47 pm    Post subject:
Reply with quote

If you have access to RACF profile STGADMIN.DPDSRN.xxx you can rename non-sms datasets that are in use. If someone is using the dataset it is not recommended but it can be done
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sun Jun 20, 2010 4:31 am    Post subject:
Reply with quote

nevilh wrote:
If you have access to RACF profile STGADMIN.DPDSRN.xxx you can rename non-sms datasets that are in use. If someone is using the dataset it is not recommended but it can be done


gaulllie, did I fall for that one, or what?
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts Invoking CA 7 commands through REXX kenshin CLIST & REXX 10 Fri Aug 12, 2016 9:33 pm
No new posts ISPF Tables Creation newsysprg TSO/ISPF 6 Wed Jul 13, 2016 2:21 pm


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