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
 

 

I need to rename a dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Apr 24, 2010 4:39 pm    Post subject:
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    Post subject:
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: 8117
Location: East Dubuque, Illinois, USA

PostPosted: Sat Apr 24, 2010 6:17 pm    Post subject:
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    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