IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Renaming a Dataset name


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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: 1702
Location: Australia

PostPosted: Wed Aug 20, 2008 8:07 am
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: 2481
Location: @my desk

PostPosted: Wed Aug 20, 2008 9:46 am
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: 1287
Location: Chennai, India

PostPosted: Wed Aug 20, 2008 12:33 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top