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

Senior Member


Joined: 07 Feb 2009
Posts: 1002
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: 63
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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm


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