Re: Determining program name/number of paramaters from called COBOL program

2020-09-23 Thread Windt, W.K.F. van der (Fred)
m: IBM Mainframe Discussion List on behalf of Chris Cantrell Sent: Wednesday, September 23, 2020 8:31:59 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Thanks Fred! I was trying this and I can't seem to find CEETBCK in any

Re: Determining program name/number of paramaters from called COBOL program

2020-09-23 Thread Lizette Koehler
program name/number of paramaters from called COBOL program Thanks Fred! I was trying this and I can't seem to find CEETBCK in any of our libraries. I looked at all of the .SECC* libraries and no luck. Do you happen to know what library it should be in? Thanks again

Re: Determining program name/number of paramaters from called COBOL program

2020-09-23 Thread Chris Cantrell
Thanks Fred! I was trying this and I can't seem to find CEETBCK in any of our libraries. I looked at all of the .SECC* libraries and no luck. Do you happen to know what library it should be in? Thanks again! -- For IBM-MAIN

Re: Determining program name/number of paramaters from called COBOL program

2020-09-23 Thread Windt, W.K.F. van der (Fred)
21:24 To: IBM-MAIN@LISTSERV.UA.EDU Subject: Determining program name/number of paramaters from called COBOL program Hello, I am hoping someone out there can help me with this 'opportunity'. In a Z/OS enterprise COBOL environment, I want to be able to retrieve the calling program name

Re: Determining program name/number of paramaters from called COBOL program

2020-09-23 Thread Chris Cantrell
LE -- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Tom Brennan
This may be a bit outside the box (or someone may have mentioned it already), but in the past when I wanted to know if someone was using a particular program, I'd rename that member to something else and create my own front end under the original name, which would spit out a WTO or similar and

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
Subject: Re: Determining program name/number of paramaters from called COBOL program Well, he can always look to the JSCB to determine the caller, right? Joe On Tue, Sep 22, 2020 at 4:19 PM Seymour J Metz wrote: > The parm list won't tell him who's calling him. I wouldn't be surpri

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Well, here is the answer to at least part of the puzzle, if not all... "You can find the name of the calling programs from a COBOL V5 or V6 program at run time by using the LE service CEETBCK. For

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
: Tuesday, September 22, 2020 8:02 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Correction: you can chain through the resister save area and use the *caller's entry point* (not CEECAA)to chain to the caller's PPA and retrieve

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Farley, Peter x23353
Discussion List On Behalf Of Brian Chapman Sent: Tuesday, September 22, 2020 8:02 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Correction: you can chain through the resister save area and use the *caller's entry point* (not CEECAA

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Brian Chapman
Correction: you can chain through the resister save area and use the *caller's entry point* (not CEECAA)to chain to the caller's PPA and retrieve the program name. Thank you, Brian Chapman On Tue, Sep 22, 2020 at 7:39 PM Brian Chapman wrote: > If the called program is assembler and the

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Brian Chapman
If the called program is assembler and the caller is COBOL (linked with LE), then you can chain through the resister save area and use the CEECAA to chain to the caller's PPA and retrieve the program name. This method really only works for called assembler programs; don't bother with COBOL. The

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
Well, here is the answer to at least part of the puzzle, if not all... "You can find the name of the calling programs from a COBOL V5 or V6 program at run time by using the LE service CEETBCK. For more information, see the z/OS® Language Environment® Vendor Interfaces."

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Paul Gilmartin
On Tue, 22 Sep 2020 21:51:34 +, Farley, Peter x23353 wrote: >Current Enterprise COBOL compilers (and back as far as I know, even COBOL >F-level from MVT) always mark the last parameter address in the address list >with the bit 0 turned on, though I have not researched what current ones do

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Farley, Peter x23353
that technique. Peter -Original Message- From: IBM Mainframe Discussion List On Behalf Of Bernd Oppolzer Sent: Tuesday, September 22, 2020 6:21 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Am 22.09.2020 um 23:51 schrie

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Charles Mills
harles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Farley, Peter x23353 Sent: Tuesday, September 22, 2020 2:52 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program Curr

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
> > > > > > From: IBM Mainframe Discussion List on behalf > > of Joe Monk > > Sent: Tuesday, September 22, 2020 4:16 PM > > To: IBM-MAIN@LISTSERV.UA.EDU > > Subject: Re: Determining program name/number of param

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Bernd Oppolzer
Am 22.09.2020 um 23:51 schrieb Farley, Peter x23353: Current Enterprise COBOL compilers (and back as far as I know, even COBOL F-level from MVT) always mark the last parameter address in the address list with the bit 0 turned on, though I have not researched what current ones do if the last

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Farley, Peter x23353
ubject: Re: Determining program name/number of paramaters from called COBOL program EXTERNAL EMAIL I've done similar things for other languages (C, PL/1, ASSEMBLER), but not for COBOL. Some remarks: - the desired name of the caller needs to be specified more precisely. By examining the save

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
/~smetz3 From: IBM Mainframe Discussion List on behalf of Mike Hochee Sent: Tuesday, September 22, 2020 4:37 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program If you can call a small

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
on behalf of Joe Monk Sent: Tuesday, September 22, 2020 4:40 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program yeah ... but R1 should point to the parm list ... and he would calling this assembler stub 1st thing so ... Joe On Tue, Sep

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Bernd Oppolzer
I've done similar things for other languages (C, PL/1, ASSEMBLER), but not for COBOL. Some remarks: - the desired name of the caller needs to be specified more precisely. By examining the save area chain, it is possible to retrieve the entry point of the calling procedure (Reg 15 in the save

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
020 4:16 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Determining program name/number of paramaters from called > COBOL program > > he could work his way back thru the saveareas, no? > > Joe > > On Tue, Sep 22, 2020 at 3:05 PM Seymour J Metz wrote: > >

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Mike Hochee
@LISTSERV.UA.EDU Subject: Determining program name/number of paramaters from called COBOL program Caution! This message was sent from outside your organization. Hello, I am hoping someone out there can help me with this 'opportunity'. In a Z/OS enterprise COBOL environment, I want to be able

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
Discussion List on behalf of Joe Monk Sent: Tuesday, September 22, 2020 4:16 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program he could work his way back thru the saveareas, no? Joe On Tue, Sep 22, 2020 at 3:05 PM Seymour J Metz

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
, 2020 4:00 PM > To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Re: Determining program name/number of paramaters from called > COBOL program > > If it's using standard OS linkage, he could use an assembler routine to do > a traceback and get some of the items. > > The probl

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
From: IBM Mainframe Discussion List on behalf of Joe Monk Sent: Tuesday, September 22, 2020 4:00 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Re: Determining program name/number of paramaters from called COBOL program If it's using standard OS linkage, he could use

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
To: IBM-MAIN@LISTSERV.UA.EDU > Subject: Determining program name/number of paramaters from called COBOL > program > > Hello, > > I am hoping someone out there can help me with this 'opportunity'. > > In a Z/OS enterprise COBOL environment, I want to be able to retrieve the >

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Seymour J Metz
@LISTSERV.UA.EDU Subject: Determining program name/number of paramaters from called COBOL program Hello, I am hoping someone out there can help me with this 'opportunity'. In a Z/OS enterprise COBOL environment, I want to be able to retrieve the calling program name and the number of parms

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Joe Monk
Language Environment or non-LE? Joe On Tue, Sep 22, 2020 at 2:24 PM Chris Cantrell < chris.cantr...@palmettogba.com> wrote: > Hello, > > I am hoping someone out there can help me with this 'opportunity'. > > In a Z/OS enterprise COBOL environment, I want to be able to retrieve the > calling

Re: Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Charles Mills
M= name Charles -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@LISTSERV.UA.EDU] On Behalf Of Chris Cantrell Sent: Tuesday, September 22, 2020 12:24 PM To: IBM-MAIN@LISTSERV.UA.EDU Subject: Determining program name/number of paramaters from called COBOL program Hello, I am ho

Determining program name/number of paramaters from called COBOL program

2020-09-22 Thread Chris Cantrell
Hello, I am hoping someone out there can help me with this 'opportunity'. In a Z/OS enterprise COBOL environment, I want to be able to retrieve the calling program name and the number of parms passed to the called program from the called program. In other words, program A is executed in my