470,596 Members | 1,564 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,596 developers. It's quick & easy.

execute COBOL via iDB2Command -- With Dynamic Parameters


I'm able to call a COBOL program directly using the iDB2 .NET native
provider and run it if I hard code the parameters.

However, I want to use InputOutput parameters to return values.
However, it does not seem that these get replaced by the values they are
passed in "as is". Example, if I use @P1 as a parameter, the value
sent in is "@P1" literally.
Can someone show me an example of calling a COBOL program (not a stored
procedure) and using dynamic parameters?



--
Texeme Construct
http://www.myspace.com/texeme

Aug 4 '06 #1
1 2758
What does your statement that calls the COBOL program look like right now?

Frank
---
Frank Swarbrick
Senior Developer/Analyst - Mainframe Applications
FirstBank Data Corporation - Lakewood, CO USA
>>John Bailo<ja*****@texeme.com08/04/06 9:16 AM >>>
I'm able to call a COBOL program directly using the iDB2 .NET native
provider and run it if I hard code the parameters.

However, I want to use InputOutput parameters to return values.
However, it does not seem that these get replaced by the values they are
passed in "as is". Example, if I use @P1 as a parameter, the value
sent in is "@P1" literally.
Can someone show me an example of calling a COBOL program (not a stored
procedure) and using dynamic parameters?



--
Texeme Construct
http://www.myspace.com/texeme

Aug 5 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

7 posts views Thread by Batista, Facundo | last post: by
30 posts views Thread by Stuart Turner | last post: by
1 post views Thread by robert | last post: by
7 posts views Thread by JIM.H. | last post: by
3 posts views Thread by Russell Verdun | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.