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
 

 

Can i user rexx to rename sequential datset name ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
jackzhang75

Active User


Joined: 09 Jun 2014
Posts: 106
Location: windsor

PostPosted: Sat Nov 15, 2014 1:11 am    Post subject: Can i user rexx to rename sequential datset name ?
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

Active Member


Joined: 07 Feb 2009
Posts: 984
Location: Oostende, Belgium

PostPosted: Sat Nov 15, 2014 1:26 am    Post subject:
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: 61
Location: India

PostPosted: Sat Nov 15, 2014 1:30 am    Post subject:
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: 106
Location: windsor

PostPosted: Sat Nov 15, 2014 1:38 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX 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
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


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