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

can we use same proc twice in same job


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

New User


Joined: 06 Sep 2007
Posts: 8
Location: Pune

PostPosted: Wed Dec 19, 2007 2:33 pm
Reply with quote

Hi,
I have a proc which created 5 output GDG files....
Generally, i call a single program using that proc..
now i need to call the proc twice in same job...
now the problem arises when creating 5 output files...
for each step 5 files should be created but due to GDGs( we mention +1), reports are appended/overwritten or jcl error because we give new as disp...
can i resolve this issue...
as far as i remember if we specify +1 for a gdg, it will point to same generation until job run is over....

please help!!!
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Dec 19, 2007 2:36 pm
Reply with quote

Abhishek ,

Override the gdg generations (number) while calling proc second time.
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Wed Dec 19, 2007 6:55 pm
Reply with quote

Pass the GDG number as a symbolic, with values '(+1)', '(+2)'.
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 Proc print in Mainframe All Other Mainframe Topics 4
No new posts trying to set return code in PROC JCL & VSAM 15
No new posts Execute DSNTEP2 in REXX which is call... CLIST & REXX 4
No new posts proc step return code to override in ... JCL & VSAM 3
No new posts Can we pass cobol pointer to cobol-db... DB2 4
Search our Forums:

Back to Top