By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,237 Members | 1,234 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,237 IT Pros & Developers. It's quick & easy.

execute COBOL via iDB2Command -- With Dynamic Parameters

P: n/a

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
Share this Question
Share on Google+
1 Reply


P: n/a
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.