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
 
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: 2285
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 Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am

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