View previous topic :: View next topic
|
Author |
Message |
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Can we rename a dataset name inside JCL itself??
Please provide me some sample code.
Regards,
Sasikumar.K |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
IDCAMS can do that for you.
See the ALTER parameter.
Gerry |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
Aaru
Senior Member
Joined: 03 Jul 2007 Posts: 1287 Location: Chennai, India
|
|
|
|
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 |
|
|
sasikumar1984
Active User
Joined: 02 Jul 2007 Posts: 109 Location: Chennai - India
|
|
|
|
Hey Thanks to all u guys.... |
|
Back to top |
|
|
|