Home > Archive > Cobol > June 2006 > Calling a COBOL-DB2 program from a pure COBOL program.
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Calling a COBOL-DB2 program from a pure COBOL program.
|
|
| arrbee 2006-05-03, 7:55 am |
| Hi,
An interviewer asks me if it is possible to Call a COBOL-DB2 program
from a pure COBOL program? If possible, which utility do we need to use
to execute it? I mean, we use IKJEFT01 to execute a COBOL-DB2 program.
But, our case is different here because we are calling a COBOL-DB2
sub-program from a pure COBOL program. So, which utility to use and
what is the procedure?
I actually wrote a small main (COBOL) program and sub-program
(COBOL-DB2) but don't know how to make use of it..........:-(
Would anybody please explain.
| |
|
| In article <1146655282.406710.104130@j73g2000cwa.googlegroups.com>,
arrbee <arrbee@gmail.com> wrote:
>Hi,
>
>An interviewer asks me if it is possible to Call a COBOL-DB2 program
>from a pure COBOL program?
It would seem that a correct answer you could give to this question might
be 'This is something I have never done.'
>If possible, which utility do we need to use
>to execute it?
It would seem that a correct answer you could give to this question is
'The one recommended by someone who knows how to do it.'
DD
| |
| Binyamin Dissen 2006-05-03, 6:55 pm |
| On Wed, 3 May 2006 13:04:13 +0000 (UTC) docdwarf@panix.com () wrote:
:>In article <1146655282.406710.104130@j73g2000cwa.googlegroups.com>,
:>arrbee <arrbee@gmail.com> wrote:
:>>Hi,
:>>An interviewer asks me if it is possible to Call a COBOL-DB2 program
:>>from a pure COBOL program?
:>It would seem that a correct answer you could give to this question might
:>be 'This is something I have never done.'
Don't give him that hard a time - let him know that it is possible.
How to do it? Look it up.
:>>If possible, which utility do we need to use
:>>to execute it?
:>It would seem that a correct answer you could give to this question is
:>'The one recommended by someone who knows how to do it.'
Or pay an expensive consultant.
--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
| |
|
| In article <ncjh529gof326kuqc17he51o9u902oj20e@4ax.com>,
Binyamin Dissen <postingid@dissensoftware.com> wrote:
>On Wed, 3 May 2006 13:04:13 +0000 (UTC) docdwarf@panix.com () wrote:
>
>:>In article <1146655282.406710.104130@j73g2000cwa.googlegroups.com>,
>:>arrbee <arrbee@gmail.com> wrote:
>:>>Hi,
>
>:>>An interviewer asks me if it is possible to Call a COBOL-DB2 program
>:>>from a pure COBOL program?
>
>:>It would seem that a correct answer you could give to this question might
>:>be 'This is something I have never done.'
>
>Don't give him that hard a time - let him know that it is possible.
Given the postings this user has made recently, Mr Brazee, I am not of the
opinion that I am giving 'that hard a time'.
>
>How to do it? Look it up.
That might generate the question 'where?', which might generate the answer
'in the manual', which might generate the question 'which manual?'
.... which would generate, at least from me, at present, the answer 'the
one which contains the answer'.
>
>:>>If possible, which utility do we need to use
>:>>to execute it?
>
>:>It would seem that a correct answer you could give to this question is
>:>'The one recommended by someone who knows how to do it.'
>
>Or pay an expensive consultant.
Having seen some of the consultants I have seen, Mr Brazee, this might
truly be no answer at all.
DD
| |
| Howard Brazee 2006-05-03, 6:55 pm |
| On Wed, 3 May 2006 15:59:15 +0000 (UTC), docdwarf@panix.com () wrote:
>
>Given the postings this user has made recently, Mr Brazee, I am not of the
>opinion that I am giving 'that hard a time'.
....
>
>Having seen some of the consultants I have seen, Mr Brazee, this might
>truly be no answer at all.
FYI: This is the second time, you have mistaken me for someone here.
| |
|
| In article <idlh52lbr1n3numt6fnfpe9qi7htt5pjqn@4ax.com>,
Howard Brazee <howard@brazee.net> wrote:
>On Wed, 3 May 2006 15:59:15 +0000 (UTC), docdwarf@panix.com () wrote:
[snip]
>
>FYI: This is the second time, you have mistaken me for someone here.
My error and apologies, both to Mr Brazee and Mr Dissen... I don't keep
count of such things, myself, but if it is only the second time it still
isn't Enemy Action.
DD
| |
| Andreas Lerch 2006-05-03, 6:55 pm |
|
?? Urspr=FCngliche Nachricht
Am 03.05.06, 11:21:22, schrieb "arrbee" <arrbee@gmail.com> zum Thema=20=
Calling a COBOL-DB2 program from a pure COBOL program.:
> Hi,
> An interviewer asks me if it is possible to Call a COBOL-DB2 program
> from a pure COBOL program? If possible, which utility do we need to=20=
use
> to execute it? I mean, we use IKJEFT01 to execute a COBOL-DB2 program.=
> But, our case is different here because we are calling a COBOL-DB2
> sub-program from a pure COBOL program. So, which utility to use and
> what is the procedure?
> I actually wrote a small main (COBOL) program and sub-program
> (COBOL-DB2) but don't know how to make use of it..........:-(
> Would anybody please explain.
Hi Arrbee
a COBOL-DB2-Program is the same as a COBOL-Program that calls a=20
COBOL-DB2-Program
Einen schoenen Tag
Andreas Lerch
| |
| Don Leahy 2006-05-03, 9:55 pm |
| It can be done without using IKJEFT01. See the DB2 Application Programming
guide for references to CAF (Call Attach Facility).
"arrbee" <arrbee@gmail.com> wrote in message
news:1146655282.406710.104130@j73g2000cwa.googlegroups.com...
> Hi,
>
> An interviewer asks me if it is possible to Call a COBOL-DB2 program
> from a pure COBOL program? If possible, which utility do we need to use
> to execute it? I mean, we use IKJEFT01 to execute a COBOL-DB2 program.
> But, our case is different here because we are calling a COBOL-DB2
> sub-program from a pure COBOL program. So, which utility to use and
> what is the procedure?
>
> I actually wrote a small main (COBOL) program and sub-program
> (COBOL-DB2) but don't know how to make use of it..........:-(
>
> Would anybody please explain.
>
| |
| arrbee 2006-05-04, 3:55 am |
| Hi Andreas, Calling progarm (main program) is COBOL program and called
program (sub-program) is a COBOL-DB2 program.
Thanks.
K N O W L E D G E I S F O R S H A R I N G
Why you have a forum if you don't guide the people. You people have
proven that you are experts. Why don't you share it with the people who
want to come up? Help them to become experts like you. If I knew
something then why would I ask a question here?
| |
| Frederico Fonseca 2006-05-04, 3:55 am |
| On 3 May 2006 21:00:48 -0700, "arrbee" <arrbee@gmail.com> wrote:
>Hi Andreas, Calling progarm (main program) is COBOL program and called
>program (sub-program) is a COBOL-DB2 program.
>
>Thanks.
>
>K N O W L E D G E I S F O R S H A R I N G
>
>Why you have a forum if you don't guide the people. You people have
>proven that you are experts. Why don't you share it with the people who
>want to come up? Help them to become experts like you. If I knew
>something then why would I ask a question here?
We do share information, and we do help people.
But your particular case has some particularities that has lead us to
believe that you are not interested in searching for the information
your self (RTFM was called on my old days), and instead are expecting
the others to do the work for you.
Many of the questions you have posted on the last day can be found on
the manuals, and any professional should look there first.
Another thing a good professional does first is to TRY things for
himself. If they dont work then change a few bits and bobs and try
AGAIN. and RTFM again.
For example one of your posts was
quote:
Is it possible that a calling and called programs (COBOL-DB2) making
use of the same DB2 table?
Suppose, a calling program reads the data from EMP table and
sub-program updates the same EMP table. Is it possible?
you have not show us to have tried anything at all. you have a common
exam/assignment question, and as such this is very likely to be
considered as a homework question (and you were lucky most did not
thought so!!). This particular case its even worst from a professional
point of view, because any programmer should try it before even asking
about it. If any programmer working with me come up to me with this
question, and without any specific problems arising from the programs
HE/SHE had tried to create to test this would be sent back with a
RTFM.
But main point is that your post are lacking one very important thing,
and this is the fact that YOU do not show us to have tried anything at
all on YOUR own initiative.
Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
| |
| Binyamin Dissen 2006-05-04, 3:55 am |
| On 3 May 2006 21:00:48 -0700 "arrbee" <arrbee@gmail.com> wrote:
:>Why you have a forum if you don't guide the people. You people have
:>proven that you are experts. Why don't you share it with the people who
:>want to come up? Help them to become experts like you. If I knew
:>something then why would I ask a question here?
We help those that help themselves.
Trying to get answer in order to BS an interviewer (which will probably fail,
by the way) instead of actually cracking a book and learning demonstrates that
your desire is to lay around while hoping others will do the work for you.
Show us that you made an effort, and people will help. Sit on your ass and ask
others to do your work - pretty unlikely.
Give a man a fish, feed him for a day.
Teach a man to fish, feed him for a lifetime.
--
Binyamin Dissen <bdissen@dissensoftware.com>
http://www.dissensoftware.com
Director, Dissen Software, Bar & Grill - Israel
Should you use the mailblocks package and expect a response from me,
you should preauthorize the dissensoftware.com domain.
I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.
| |
|
| In article <1146715248.563670.266630@y43g2000cwc.googlegroups.com>,
arrbee <arrbee@gmail.com> wrote:
>Hi Andreas, Calling progarm (main program) is COBOL program and called
>program (sub-program) is a COBOL-DB2 program.
>
>Thanks.
>
>K N O W L E D G E I S F O R S H A R I N G
Knowledge is power... *information* is money. What you have been asking
for seems closer to the latter than the former.
>
>Why you have a forum if you don't guide the people.
You *are* being guided, old boy... but it might be down a different path.
The path you are asking about is called, by some, 'do my job/homework for
me' and many here have found it is of minimal benefit for all involved.
>You people have
>proven that you are experts. Why don't you share it with the people who
>want to come up?
See above and ponder the difference between sharing knowledge and doing
someone's job for them.
>Help them to become experts like you. If I knew
>something then why would I ask a question here?
I barely know why *I* do anything, let alone others... but I have found
that the first thing one should learn is *not* some 'stuff', the first
thing to learn is how to learn. Try turning the question on its head...
if all someone can do is ask 'interview questions' then what are the
chances that such a person has the potential to 'become experts like you'?
DD
| |
| Andreas Lerch 2006-05-07, 6:55 pm |
|
?? Urspr=FCngliche Nachricht
Am 04.05.06, 04:00:48, schrieb "arrbee" <arrbee@gmail.com> zum Thema Re:=
=20
Calling a COBOL-DB2 program from a pure COBOL program.:
> Hi Andreas, Calling progarm (main program) is COBOL program and called=
> program (sub-program) is a COBOL-DB2 program.
> Thanks.
Whats the diffrent between a cord and a knot cord? Programming is=20
very,very simple. You must understand Bit, Byte, Word .... and knot=20
thme together . . . the qay is the solution - i guess!
> K N O W L E D G E I S F O R S H A R I N G
yes and no
yes - every knowlage is shareware - my thinking
no - YOU must bring up your interest to learn - my knowlage is very=20
expensive, because i worked for it.
Thnak you
Einen schoenen Tag
Andreas Lerch
| |
|
| arrbee wrote:
> Hi Andreas, Calling progarm (main program) is COBOL program and called
> program (sub-program) is a COBOL-DB2 program.
I've never worked on an IBM mainframe - but, it seems that what he is
saying is that the only difference between a COBOL program that uses DB2
and one that doesn't is just that. That being said, if the subprogram
handles thread creation, manipulation, and closing, then it should work.
> K N O W L E D G E I S F O R S H A R I N G
>
> Why you have a forum if you don't guide the people. You people have
> proven that you are experts. Why don't you share it with the people who
> want to come up? Help them to become experts like you. If I knew
> something then why would I ask a question here?
The answers you receive from many in this forum have not been intended
(for the most part) to be un-helpful. But, rather than give you the
answer, they'll ask questions to see what you *do* know, and hope that
you realize, through the combination of questions that are asked, how to
put the pieces that you already know to get the answer you're looking for.
Back when I was learning VB and ASP, my trainer would answer every
question I asked him the same way - "MSDN". It drove me insane (though
that was a short trip), but what that taught me was how to use MSDN (and
other documentation resources) to *find* the answers I needed. Before
you dismiss a reply as unhelpful, read it a second time and see if it
just might be trying to trigger something in your mind.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
~ / \ / ~ Live from Montgomery, AL! ~
~ / \/ o ~ ~
~ / /\ - | ~ daniel@thebelowdomain ~
~ _____ / \ | ~ http://www.djs-consulting.com ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~ GEEKCODE 3.12 GCS/IT d s-:+ a C++ L++ E--- W++ N++ o? K- w$ ~
~ !O M-- V PS+ PE++ Y? !PGP t+ 5? X+ R* tv b+ DI++ D+ G- e ~
~ h---- r+++ z++++ ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~
"Who is more irrational? A man who believes in a God he doesn't see, or
a man who's offended by a God he doesn't believe in?" - Brad Stine
| |
|
| In article <cd9f5$445a7d35$45491dc8$22387@KNOLOGY.NET>,
LX-i <lxi0007@netscape.net> wrote:
>arrbee wrote:
[snip]
[snip
[color=darkred]
>Before
>you dismiss a reply as unhelpful, read it a second time and see if it
>just might be trying to trigger something in your mind.
Read twice? No need to do that, Mr Summers, if an expert will tell you
the answer straight off!
DD
| |
| arrbee 2006-05-07, 6:55 pm |
| "read it a second time and see if it just might be trying to trigger
something in your mind."
I liked it. It helps really. Thanks to Daniel.
| |
| Howard Brazee 2006-06-29, 6:55 pm |
| On Thu, 4 May 2006 09:17:49 +0000 (UTC), docdwarf@panix.com () wrote:
>Knowledge is power... *information* is money. What you have been asking
>for seems closer to the latter than the former.
Money is an important subset of power.
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
| |
|
| In article <fn88a2d2r1gq2c6tbpji4u4b8t9ive6522@4ax.com>,
Howard Brazee <howard@brazee.net> wrote:
>On Thu, 4 May 2006 09:17:49 +0000 (UTC), docdwarf@panix.com () wrote:
>
>
>Money is an important subset of power.
In similar wise information might be seen as a subset of knowledge, aye.
DD
| |
| Alistair 2006-06-29, 6:55 pm |
|
docdwarf@panix.com wrote:
> In article <fn88a2d2r1gq2c6tbpji4u4b8t9ive6522@4ax.com>,
> Howard Brazee <howard@brazee.net> wrote:
>
> In similar wise information might be seen as a subset of knowledge, aye.
>
But you couldn't possibly know that, could you? After all, IIRC, you
barely know what you know (or something like that).
| |
|
| In article <1151614752.381835.107690@i40g2000cwc.googlegroups.com>,
Alistair <alistair@ld50macca.demon.co.uk> wrote:
>
>docdwarf@panix.com wrote:
>
>But you couldn't possibly know that, could you?
The world abounds with possibilities, Mr Maclean... and perhaps that could
be a reason for my having employed the subjunctive mood
>After all, IIRC, you
>barely know what you know (or something like that).
Saying, as I did above, that something 'might be seen' as something else
may appear to be in keeping with that.
DD
|
|
|
|
|