Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 115
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: 1060
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: 115
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us