If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > need sample Cobol program for Store Procedure

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-22-10, 04:43
Navid2000 Navid2000 is offline
Registered User
 
Join Date: Nov 2009
Posts: 9
need sample Cobol program for Store Procedure

hi

I need a sample cobol program to call a DB2 store procedure and write the returned result set to a data set or anywhere.

tnx,
Navid
Reply With Quote
  #2 (permalink)  
Old 04-22-10, 09:27
dr_te_z dr_te_z is offline
Registered User
 
Join Date: Jan 2009
Location: Zoetermeer, Holland
Posts: 555
IBM Information Management Software for z/OS Solutions Information Center
http://groups.google.com/group/comp....da4deff6d029bd

The trick is not to check for SQLCODE = ZERO. In this case it is not what you want. Check for sqlcode +466 and do the complicated SQL ASSOSIATE thingies.

P.S. I already asked for a less complex structure https://www.ibm.com/developerworks/f...0461&#14000461

Last edited by dr_te_z; 04-22-10 at 09:33. Reason: more links
Reply With Quote
  #3 (permalink)  
Old 04-24-10, 01:32
Navid2000 Navid2000 is offline
Registered User
 
Join Date: Nov 2009
Posts: 9
Thanks a lot .very helpful.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On