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

how to pass DB2 variables to subprogram


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

New User


Joined: 11 Jun 2005
Posts: 8

PostPosted: Tue Feb 10, 2009 1:00 pm
Reply with quote

Can we pass DB2 host variables to a subprogram if so how. Can we use select query in the subprogram with the variables from main program.
Back to top
View user's profile Send private message
Cristopher

New User


Joined: 31 Jul 2008
Posts: 53
Location: NY

PostPosted: Tue Feb 10, 2009 2:43 pm
Reply with quote

Quote:
Can we pass DB2 host variables to a subprogram if so how

You dont't have to pass the variables , but the values in the variables.
You receive the values in some ws variable of your subprogram and use it into the the queries.
Or you can include the DCLGEN of the table in your subprogram and use the host variables as per your need.
Some one would be able to suggest concrete ways to achieve your requirement if you can elaborate a little more.

Cris
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 How to pass the PARM value to my targ... COBOL Programming 8
No new posts Dynamically pass table name to a sele... DB2 2
No new posts How to go into a subprogram in IBM De... IBM Tools 5
No new posts JCL with variables JCL & VSAM 1
No new posts pass data as symbolic parameter from ... CLIST & REXX 2
Search our Forums:

Back to Top