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 - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts Dynamic output file creation in cobol... smileheal COBOL Programming 7 Thu Jun 15, 2017 10:53 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Calling procedure with multiple entri... steve-myers PL/I & Assembler 5 Fri Jan 27, 2017 3:33 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


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