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
 

 

Renaming a Dataset name

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Wed Aug 20, 2008 7:52 am    Post subject: Renaming a Dataset name
Reply with quote

Can we rename a dataset name inside JCL itself??

Please provide me some sample code.

Regards,
Sasikumar.K
Back to top
View user's profile Send private message

gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1703
Location: Australia

PostPosted: Wed Aug 20, 2008 8:07 am    Post subject:
Reply with quote

Hi,

IDCAMS can do that for you.

See the ALTER parameter.


Gerry
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Wed Aug 20, 2008 9:46 am    Post subject:
Reply with quote

Sasikumar,

Or you can use IKJEFTIB like this.

Code:
//STEP01  EXEC PGM=IKJEFT1B                               
//*                                                         
//SYSTERM   DD SYSOUT=*                                 
//SYSPRINT  DD SYSOUT=*
//SYSTSPRT  DD SYSOUT=*
//SYSUDUMP  DD DUMMY                                       
//SVHCON    DD DUMMY                                       
//*                                                         
//SYSTSIN   DD *
  RENAME 'old.data.set' 'new.data.set'
//*     


Thanks,
Arun
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1288
Location: Chennai, India

PostPosted: Wed Aug 20, 2008 12:33 pm    Post subject: Reply to: Renaming a Dataset name
Reply with quote

sasi,

Additonal Information.

Quote:
IKJEFT01 and IKJEFT1B are the TSO in batch programs.


Hence all the TSO commands can be executed in a JCL using these utilities.
Back to top
View user's profile Send private message
sasikumar1984

Active User


Joined: 02 Jul 2007
Posts: 109
Location: Chennai - India

PostPosted: Wed Aug 20, 2008 10:12 pm    Post subject: Thanks to all
Reply with quote

Hey Thanks to all u guys....
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 -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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