473,387 Members | 1,597 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do I call a COBOL program from a stored procedure?

Hi,

I am a newbie when it comes to stored procs and i would like to learn
how to call a COBOL program from a stored procedure. The SP can either
be an DB2 SQL SP or an external COBOL/DB2 SP. I can use either
depending on which is more efficient.

One of the older posts ("Calling a COBOL Subroutine from COBOL/DB2
Stored Procedure" Dec 2005) suggested this is possible but I couldn't
follow the explanation and there wasn't any examples. The post also
mentioned that using an ordinary COBOL call is less resource expensive
than using an SP call so I'd like to explore this further.

Also, pardon my ignorance, but could you tell me what the ff acronyms
are:
DSNALI
DSNELI
WLM

We are on AIX 5.2 (I think) using DB2 UDB ver 7.2 and MF COBOL 4.1.

Thanks in advance.

Pompeyo C

May 7 '07 #1
2 6342
Comments inline.

On May 7, 9:26 am, pompeyoc <cati...@express.insular.com.phwrote:
Hi,

I am a newbie when it comes to stored procs and i would like to learn
how to call a COBOL program from a stored procedure. The SP can either
be an DB2 SQL SP or an external COBOL/DB2 SP. I can use either
depending on which is more efficient.

One of the older posts ("Calling a COBOL Subroutine from COBOL/DB2
Stored Procedure" Dec 2005) suggested this is possible but I couldn't
follow the explanation and there wasn't any examples. The post also
mentioned that using an ordinary COBOL call is less resource expensive
than using an SP call so I'd like to explore this further.
I have no experience with Cobol SP's on Unix-platforms, but you can
find additional info here:
http://publib.boulder.ibm.com/infoce...d/r0007176.htm
>
Also, pardon my ignorance, but could you tell me what the ff acronyms
are:
DSNALI
DSNELI
WLM
You seem to confuse Unix and mainframe (OS390 / zOS) terms.
WLM is the acronym for WorkLoadManager, the other 2 terms are names
for include-members for compiling/linking application programs using
DB2 on mainframe (for different environments: DSNALI is for the
CallAttachFacility, DSNELI for TSO; there are more of those, like
DSNCLI for CICS).
>
We are on AIX 5.2 (I think) using DB2 UDB ver 7.2 and MF COBOL 4.1.
Time for a migration, 'cause DB2 7 is out-of-support quite some time.
Note the link given above is for version 8.
Thanks in advance.
Your welcome.
>
Pompeyo C
--
Jeroen

May 7 '07 #2
On May 7, 2:17 pm, Jeroen van den Broek
<nlt...@baasbovenbaas.demon.nlwrote:
<..>
>
I have no experience with Cobol SP's on Unix-platforms, but you can
find additional info here:http://publib.boulder.ibm.com/infoce...x.jsp?topic=/c...
Sorry, this link is pointing to IBM Cobol info, please use following
links instead.

Building UNIX Micro Focus COBOL applications:
http://publib.boulder.ibm.com/infoce...d/r0007151.htm

Building UNIX Micro Focus COBOL routines:
http://publib.boulder.ibm.com/infoce...d/r0007152.htm

Configuring the Micro Focus COBOL Compiler on AIX:
http://publib.boulder.ibm.com/infoce...d/r0007164.htm

AIX Micro Focus COBOL application compile and link options:
http://publib.boulder.ibm.com/infoce...d/r0007177.htm

AIX Micro Focus COBOL routine compile and link options:
http://publib.boulder.ibm.com/infoce...d/r0007179.htm

HTH

--
Jeroen

May 7 '07 #3

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

Similar topics

4
by: Jean-Marc Blaise | last post by:
Dear all, I have simulated the windows MULTI application with a java program calling the SQLTP1DL proc referenced as DB2DARI application, on Linux Intel or ZLinux. If the proc is NOT FENCED,...
0
by: Dave Sisk | last post by:
I've created a system or external trigger on an AS/400 file a.k.a DB2 table. (Note this is an external trigger defined with the ADDPFTRG CL command, not a SQL trigger defined with the CREATE...
0
by: Springflower | last post by:
Hi, I am new to using DB2 Development Center. I had downloaded the trial version(8.2) of latest DB2 UDB and want to write a stored procedure in COBOL. When I chose the oprion the wrting a new...
0
by: stant | last post by:
I am trying to call a mainframe cobol DB2 Stored Procedure from an SSIS 2005 SQL Task in BIDS. I believe that privileges and the number of parameters (6) are fine. I've tried casting and still have...
0
by: bog39 | last post by:
We have z/os and DB/2 V. 8 running. I try to create a new UDF using the command CREATE FUNCTION: CREATE FUNCTION CNGETADR (INTEGER) RETURNS CHAR(50) EXTERNAL NAME CNADR001 ...
0
by: balaji krishna | last post by:
Hi, I need to handle the return set from COBOL stored procedure from my invoking Java program. I do not know, how many rows the stored proc SQL fetches.I have declared the cursor in that proc, but i...
4
by: PJackson | last post by:
I have been given the task of taking a 3,200 line COBOL stored procedure and duplicating the same functionality in UDB 7.2 on the Windows platform with a procedural SQL stored procedure. I have...
0
by: birundha | last post by:
Hi.. Can i call a subprogram (ie a COBOL program) inside a Stored Procedure?
1
by: rsreeni | last post by:
Hi, We are planning to use Cobol Stored procedures for doing our Data retrieval from DB2 Tables. The stored procedure(s) will be called from J2EE application via Db2 Connect. Does the linkage...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.