IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can i user rexx to rename sequential datset name ?


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Sat Nov 15, 2014 1:11 am
Reply with quote

Hi ,

Just wordering is any way i can use rexx to rename sequential dataset name ? just like in jcl .

My jcl :
Code:
//ALTER1   EXEC PGM=IDCAMS               
//SYSPRINT DD  SYSOUT=*                 
//SYSIN    DD  *                         
 ALTER TTAP.TSP.RSYNCSRT.SECKEYS  -     
 NEWNAME(TTAP.TSP.RSYNCSRT.SECKEYS.WIND)
//*   
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Sat Nov 15, 2014 1:26 am
Reply with quote

Code:
/* REXX*/
"ALTER TTAP.TSP.RSYNCSRT.SECKEYS",
     "NEWNAME(TTAP.TSP.RSYNCSRT.SECKEYS.WIND)"
[/code]
Back to top
View user's profile Send private message
Arunkumar Chandrasekaran

New User


Joined: 01 Jun 2010
Posts: 63
Location: India

PostPosted: Sat Nov 15, 2014 1:30 am
Reply with quote

Using TSO command RENAME
Back to top
View user's profile Send private message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 125
Location: US

PostPosted: Sat Nov 15, 2014 1:38 am
Reply with quote

Hi prino,Thank you very much for your prompt reply!

It works ! only one thing is you need '' for data set , otherwise it system will automatically add your userid as HLQ.

Code:
"ALTER 'TTAP.TSP.RSYNCSRT.SECKEYS'",               
     "NEWNAME('TTAP.TSP.RSYNCSRT.SECKEYS.MSGOFF')"
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Execute secondary panel of sdsf with ... CLIST & REXX 1
Search our Forums:

Back to Top