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
 

 

run a procedure which calls a procedure with dynamic SQL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: run a procedure which calls a procedure with dynamic SQL
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
No new posts Access SQLCA fields inside a stored p... gangapd DB2 4 Thu Oct 27, 2016 10:20 am
No new posts Is possible to call subprogram from c... cmsmoon COBOL Programming 3 Fri Aug 05, 2016 6:46 pm
No new posts Creating a dynamic sort card in JCL u... ChitraChhabra DFSORT/ICETOOL 4 Wed Aug 03, 2016 6:15 pm


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