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 > Cobol Subprogram sample called by batch and cics programs

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-06, 04:05
fab01 fab01 is offline
Registered User
 
Join Date: Mar 2006
Posts: 17
Question Cobol Subprogram sample called by batch and cics programs

hello,
Could i ask you if you have a sample subprogram in Cobol which uses DB2.
This subprogram is a particular because it can be called by both batch and cics programs (called by batch programs and linked by CICS program).
This program just select, update and delete file.
Thanks for you help.
I know in CICS i can use the sentence
'exec sql select / insert / update'
But will this order can be understand by batch environment ?
Thanks a lot
Cheers
Reply With Quote
  #2 (permalink)  
Old 04-10-06, 15:21
schintala schintala is offline
Registered User
 
Join Date: Apr 2005
Location: USA
Posts: 119
Looks like you are accessing the stored procedure in the CICS environment. Stored procedure is nothing but a batch program with few exceptions.
Reply With Quote
  #3 (permalink)  
Old 04-11-06, 10:57
fab01 fab01 is offline
Registered User
 
Join Date: Mar 2006
Posts: 17
Thanks a lot schintala
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