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

I need to rename a dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Sat Apr 24, 2010 4:12 pm
Reply with quote

I need a jobstep wherein I can rename a dataset b4 it being used in the subsequent step ... Is that possible ? If yes .. Could you plz give me he exact syntax and advise ..
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 24, 2010 4:39 pm
Reply with quote

Is your site running JES2 or JES3? That will determine if what you want to do is possible. Since JES3 does allocation at job initiation time, if you are running JES3 you will find that your request cannot be accomplished in one job in JES3. JES2, I understand, does allocation at step initiation time so it may be possible under JES2.
Back to top
View user's profile Send private message
kaustubhkhole

New User


Joined: 20 Oct 2008
Posts: 19
Location: Hyderabad

PostPosted: Sat Apr 24, 2010 5:11 pm
Reply with quote

Hi Robert .. Thank you very much for your help .. It finally worked

Initially I had 2 steps
1) 1st one will rename the dataset as *.OLD...
2) 2nd one will use *.OLD dataset as input to the pgm and will produce new dataset with the name before renaming ...
I was doing (1) and (2) in the same step .. It was failing

3)Now I submitted 2 steps separately and it went fine
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Apr 24, 2010 6:17 pm
Reply with quote

Glad to hear you got it working!
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