473,396 Members | 1,891 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,396 software developers and data experts.

JCL or CICS from store procedure

Dad
Is it possible to invoke JCL or CICS from a stored procedure? I am
working on a integration project in which I need one system to invoke
another. The plan is to write data into tables in DB2 and then call
existing programs to process the data. We don't have CICS TS or
similar, so I need a way to trigger backend processing.

Nov 12 '05 #1
3 5915
Hello,

yes, it's both possible!

A stored procedure can submit a batch job through the JES internal reader,
but you must provide a "//anyname DD SYSOUT=(,INTRDR)" - statement within
the DB2 Stored Procedure execution address space startup JCL (ssidSPAS or
any procname for WLM-managed address spaces). The Stored Procedure must
write the jobstream to this "anyname" file then. It can even read in the
jobstream from any JCL library before, if you provide a DD-statement there
for this library too.

I'm not that familiar with CICS, but DB2 V7+ provides even a dedicated and
very useful stored procedure called DSNACICS that can be used to invoke CICS
transactions and other things. This procedure is well documented in the DB2
z/OS Application Programming Guide

Cheers - Walter.

"Dad" <da********@gmail.com> schrieb im Newsbeitrag
news:11*********************@g43g2000cwa.googlegro ups.com...
Is it possible to invoke JCL or CICS from a stored procedure? I am
working on a integration project in which I need one system to invoke
another. The plan is to write data into tables in DB2 and then call
existing programs to process the data. We don't have CICS TS or
similar, so I need a way to trigger backend processing.

Nov 12 '05 #2
Dad
Walter, thank you for your reply. Do you happen to have a sample you
could send of a stored procedure calling JCL? Or will you direct me to
some documentation specific to this topic? I've searched through
developer guides at IBM.com and via google and have come up short.

Nov 12 '05 #3
Hi,

common samples of stored procedures are documented in the already mentioned
DB2 for z/OS Application Development Guide and executable samples are also
created during the DB2 installation process. All your desired procedure has
to do is to write the jobstream to a file which is associated with the JES
INTRDR within the DB2 stored procedure address space where it will be
executed then.

How your procedure writes to a file depends on the programming language you
use for writing it (PLI, COBOL, C, C++) and is documented in the affected
language's Programmer's Guide or Reference.

Manuals for DB2 for z/OS can be freely referenced or downloaded here
(depending on the version you will use):
http://www-3.ibm.com/software/data/d...0/v7books.html
http://www-3.ibm.com/software/data/d...0/v8books.html

Cheers - Walter SCHNEIDER.

"Dad" <da********@gmail.com> schrieb im Newsbeitrag
news:11*********************@o13g2000cwo.googlegro ups.com...
Walter, thank you for your reply. Do you happen to have a sample you
could send of a stored procedure calling JCL? Or will you direct me to
some documentation specific to this topic? I've searched through
developer guides at IBM.com and via google and have come up short.

Nov 12 '05 #4

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

Similar topics

1
by: bporter | last post by:
Has anyone used the new C support option for XPEDITER/CICS (mainframe debugging)? I believe it is in beta now - would be interested in any feedback. I have used their C support for their batch...
1
by: singlal | last post by:
Hi, We are looking for options of converting CICS screens to a GUI application (.net, Java, etc.) to increase the usability of the screens. We would like to keep the underlying logic and...
0
by: Stephanie | last post by:
Hi all, I need to call RPCs that are on a OS/390 CICS environement. It seems like there is a socket server running on CICS called CICS Socket Listner. I want to write a Socket client in C# to...
6
by: c676228 | last post by:
Hi everyone, I wrote a store procedure that fetch one row data in the database based on the parameter value I entered. After I created the store procedure, the store procedure code looks like...
0
by: rxding | last post by:
Hello, Performance reason we need to move some of our code into database. Java Store Procedure is given the first choice. However, while investigating some sample code of Java store procedure, ...
11
by: c676228 | last post by:
Hi everyone, I am just wodering in asp program, if there is anybody writing store procedure for inserting data into database since there are so many parameters need to be passed into store...
1
by: BobTheDataBaseBoy | last post by:
Whilst in CubeLand, I was informed that our 1970's era COBOL codebase would not be modernized (?) to utilize Stored Procedures (bound COBOL code in our case; they've not figured out SQL SP yet)...
0
by: ramcouser | last post by:
Hi I am trying to select multiple rows from my table based on the search criteria. in cics cobol. with a host variable. i am using a SELECT statement with LIKE :ws-custid. here the like is...
1
by: sushanta123 | last post by:
Hi every1, Actually i have doubt in CICS apart from DB2.. Through my application screen in CICS i want to send a help screen more likely a pop-up box with a different background color. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.