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 All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Any way to prevent dynamic allocation? DFSORT/ICETOOL 6
No new posts Excuting store procedure via JCL batch JCL & VSAM 1
No new posts Executing DB2 SQL store procedure via... DB2 1
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
Search our Forums:


Back to Top