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: 7935
Location: Bellevue, IA

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: 7935
Location: Bellevue, IA

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 FTP - JCL failed while passing FTP co... Suneetha1612 JCL & VSAM 12 Wed Nov 16, 2016 7:33 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
No new posts Allocate dataset withour BLKSIZE Susanta CLIST & REXX 2 Thu Sep 22, 2016 11:51 am
No new posts dataset copy question - REPRO or some... atulxp TSO/ISPF 2 Wed Aug 03, 2016 10:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us