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: 989
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
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 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


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