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

run a procedure which calls a procedure with dynamic SQL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
henry888

New User


Joined: 21 Sep 2009
Posts: 51
Location: china

PostPosted: Tue May 18, 2010 10:32 pm
Reply with quote

The calling procedure without SQL statement,and it calls a function procedure,the function procedure is coded with dynamic SQL,how to run the calling procedure using JCL?
suppose the calling procedure is A,and called function is B.
B is Bound into a plan as B.
Back to top
View user's profile Send private message
henry888

New User


Joined: 21 Sep 2009
Posts: 51
Location: china

PostPosted: Wed May 19, 2010 8:58 am
Reply with quote

I tried and used
Code:
PGM=IKJEFT01
.
.
.
//SYSTSIN  DD  *                       
   DSN SYS(DSNid)                       
     RUN PROGRAM(calling proc) PLAN(called proc)
   END           
/*

it worked out...
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Using Dynamic file handler in the Fil... COBOL Programming 2
No new posts JCL Dynamic System Symbols JCL & VSAM 3
No new posts Synctool-dynamic split job for varyin... JCL & VSAM 7
No new posts Invoke stored procedure via batch JCL. DB2 2
Search our Forums:

Back to Top