473,804 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Calling a DB2 Subroutine from a Non DB2 Subroutine

Hi I need someones help
I'm working in an IBM 390 batch environment.
What I'm trying to do is to call from a non DB2 COBOL program a DB2 COBOL
program that will access a table and perform an edit. I have several
programs to add this to and I thought of adding a common subroutine versus
adding duplicate code would be easier to maintain. The problem is from the
calling COBOL program to the calle COBOL program I get a -924 (which is no
DB2 connection established). I tried the CAF (Calling Attached Facility) but
found this very confusing. Some one out there must have had a need to call a
COBOL DB2 subroutine from a non DB2 COBOL batch program. Any help would be
appreciated.

Thanks..

Nov 12 '05 #1
2 4051
"Giulio Belrango" <gi************ @rogers.com> wrote in message
news:4J******** ************@tw ister01.bloor.i s.net.cable.rog ers.com...
Hi I need someones help
I'm working in an IBM 390 batch environment.
What I'm trying to do is to call from a non DB2 COBOL program a DB2 COBOL
program that will access a table and perform an edit. I have several
programs to add this to and I thought of adding a common subroutine versus
adding duplicate code would be easier to maintain. The problem is from the
calling COBOL program to the calle COBOL program I get a -924 (which is no DB2 connection established). I tried the CAF (Calling Attached Facility) but found this very confusing. Some one out there must have had a need to call a COBOL DB2 subroutine from a non DB2 COBOL batch program. Any help would be
appreciated.

Thanks..

Please show your JCL for the program execution.
Nov 12 '05 #2
Code the JCL to run the initial non-DB2 program as it if were a DB2 program
(since you didn't post the JCL, I can't be more precise).

"Giulio Belrango" <gi************ @rogers.com> wrote in message
news:4J******** ************@tw ister01.bloor.i s.net.cable.rog ers.com...
Hi I need someones help
I'm working in an IBM 390 batch environment.
What I'm trying to do is to call from a non DB2 COBOL program a DB2 COBOL
program that will access a table and perform an edit. I have several
programs to add this to and I thought of adding a common subroutine versus
adding duplicate code would be easier to maintain. The problem is from the
calling COBOL program to the calle COBOL program I get a -924 (which is no DB2 connection established). I tried the CAF (Calling Attached Facility) but found this very confusing. Some one out there must have had a need to call a COBOL DB2 subroutine from a non DB2 COBOL batch program. Any help would be
appreciated.

Thanks..

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
4973
by: Michael Farber | last post by:
Not sure if this is the right group for this but anyways... I've got an ASP web application that uses a Visual Basic component to do some work. I instantiate the component in asp and then attempt to call the subroutine. The subroutine is actually invoked maybe 2 out of 10 times run. What could possibly be the reason for this?? Why the inconsistency in running the subroutine? Cheers
30
2293
by: Tim Marshall | last post by:
Here's the scenario, A2003, Jet back end, illustrated with some cut down code at the end of the post: A proc dims a snapshot recordset (dim rst as Dao.recordset) and opens it. There are several nested do loops, going through the records in rst using .movenext. At one point in one of the loops, we'll say the rst is at record "a". Now, another subprocedure is called, passing rst to it. In the subprocedure, the recordset goes through a...
12
2909
by: Bigdakine | last post by:
I don't know if this is the right forum for this, and if not please suggest one which fits. I have to call a fortran sub routine from a C main program. The fortran subroutine statement is wload(starttime, duration, station, component, dataray, nsamp, calib, srate, samplength, datadir)
5
4360
by: Amit | last post by:
I tried calling a subroutine in a fortran module from C ,but couldn't.I always get the error: undefined reference in the main.o file (main is in C calling the subroutine). for calling the subroutine I used the following name: modulename_MP_subroutinename_(...) and all possible variant (upper case,lower case).Can anybody help (for a unix system)
2
2825
by: Ray J. | last post by:
I have a C++ program written and compiled on Solaris 8 with gcc. With gcc lets me compile fortran code along with the C++ program to be able to call the fortran code as a subroutine. The specifications for this project have changed and I am porting the C++ code to Visual C++. Is there a way to call fortran code from a C++ program compiled with Visual C++?
11
543
by: RichN | last post by:
I am developing a c program in Visual Studio .NET 2003. I also have an Intel(R) Fortran compiler for MVS .NET My fortran sourcecode already existed. I started a new fortran project and chose to create a dynamic link library. The beginning of the fortran code looks like: SUBROUTINE SFTCK3 !DEC$ ATTRIBUTES DLLEXPORT::SFTCK3
4
1982
by: Dursun | last post by:
I need to call a subroutine in FormA from within FormB. Let FormA be an MDIForm and let FormB be its MDIChild form. So, the FormB.MDIParent property will return an object refernce to the FormA instance. At this point I should see the Public subroutine I defined in FormA from within FormB. It does not show-up! Am I missing someting here? Is there any gurus out there who can give me some pointers as to how to deal with the situation? ...
2
1434
by: singlal | last post by:
Hi, my question was not getting any attention because it moved to 2nd page; so posting it again. Sorry for any inconvenience but I need to get it resolved fast. Need your help! **************************************************************************************************** Original Question: -------------------- Has anyone called a COBOL subroutine using COBOL CALL from a COBOL/DB2
7
5529
by: mirandacascade | last post by:
Note: I'm not sure if the subject line of this post uses the correct terminology, so apologies if the subject line turns out to be misleading. I think it's probably easier to provide a trivial example to illustrate the question rather than to try to ask the question in general terms. Assume there is a table with these records
0
9711
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9593
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10088
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9169
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7633
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6862
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5529
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4306
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3831
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.