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

PROC within PROC - One Doubt


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

New User


Joined: 18 Dec 2004
Posts: 4

PostPosted: Sat Nov 19, 2005 2:56 pm
Reply with quote

Hi,

I want to use PROC1 in my JCL. PROC1 is using PROC2.

For PROC2, I have to pass a In-stream data from my JCL. So I have coded like this.

Code for PROC2:

Code:
//PROC2 PROC
//P2STEP EXEC PROC=PROC1
//INPUT      DD DUMMY   


Code for PROC1:

Code:
//PROC1 PROC
//P1STEP    EXEC PROC=PROC2
//P2STEP.INPUT  DD DUMMY



Code for JOB:

Code:
//JOBNAME JOB
//PROCSTEP  JCLLIB  MYDATA.PROC
//STEP01   EXEC PROC=PROC1
//P1STEP.INPUT      DD *
  my input data
/*




When i check the syntax of JCL, i got this error.

OVERRIDDEN STEP "P1STEP " NOT FOUND IN PROCEDURE

Could help me to resolve this problem.

Is it possible to override a DD statement of nested procedure??


Thanks a lot,
Guna.
Back to top
View user's profile Send private message
MGIndaco

Active User


Joined: 10 Mar 2005
Posts: 432
Location: Milan, Italy

PostPosted: Sat Nov 19, 2005 10:04 pm
Reply with quote

I suppose that this is what you need:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea1b640/5.3.2?SHELF=&DT=20000718114500&CASE=

I hope in this help.
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 Doubt about pl/1 (job offer) General Talk & Fun Stuff 5
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 doubt when executing a file when logg... TSO/ISPF 2
Search our Forums:

Back to Top