Re: Multi-line "Srchfor" Utility?
- From: jchase@xxxxxxxxx (Chase, John)
- Date: 12 Jun 2009 08:11:14 -0700
-----Original Message-----<mark.zelden@xxxxxxxxxxxx>
From: IBM Mainframe Discussion List On Behalf Of Binyamin Dissen
On Fri, 12 Jun 2009 07:58:50 -0500 Mark Zelden
wrote:<mike@xxxxxxxxxxxxxxxxxxx> wrote:
:>On Fri, 12 Jun 2009 08:05:48 -0400, Mike Myers
:>given
:>>If you were to take Dave's approach, I wrote a REXX EXEC that will
:>>execute the same edit macro against all members of a PDS or PDSE,
:>>the name of the PDS and the name of the macro as input.literal
:>See EDMACALL on my web site (URL below) or CBT file 434.
Been a while for me, but wouldn't the QUERY security generate some
data that could be searched for in the load library? Should be easierthan
scanning source.
The need is not just to see whether the program issues a specific
command, but also to see specifically what values or references were
specified on the command.
While it's true that the CICS preprocessor generates a unique literal
for each EXEC CICS command, that literal is a bit string (arg 0 in the
DFHEI1 call) which would then require translation back to the original
source, e.g.:
x'0c02b000270000cc00f0f0f0f4f5404040'
From the first two bytes ("function") I can tell you that the command isEXEC CICS GETMAIN, but beyond that I'd need to refer to the CICS Data
Areas manual to decode the rest of it, and there's no way I could "fill
in all the blanks". In the first place, how would I find the specific
code that refers to that particular bit string? Here's the machine code
generated for this particular bit string (offsets omitted
intentionally):
D210 D140 3106
4150 D140
5050 D128
4150 2004
5050 D12C
D201 D158 312B
4150 D158
5050 D130
4150 2014
5050 D134
4150 2008
5050 D138
9680 D138
4110 D128
58F0 3000
4100 A140
58C0 9080
05EF
Even if I could reliably correlate this code sequence with the specific
bit string, I still can't get the labels of the data areas coded
originally.
Just FYI, here's the pre-processed command that produced the bit string
I cited above:
*EXEC CICS GETMAIN
* SET (GETMAIN-PTR)
* FLENGTH (GETMAIN-SIZE)
* INITIMG (NULL-DATA)
* NOHANDLE
*END-EXEC.
Call 'DFHEI1' using by content x'0c02b000270000cc00f0f0f0f4f5
- '404040' by reference GETMAIN-PTR by content x'0000' by
reference NULL-DATA by reference GETMAIN-SIZE end-call.
-jc-
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to listserv@xxxxxxxxxxx with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
.
- Follow-Ups:
- Re: Multi-line "Srchfor" Utility?
- From: Binyamin Dissen
- Re: Multi-line "Srchfor" Utility?
- References:
- Re: Multi-line "Srchfor" Utility?
- From: Mark Zelden
- Re: Multi-line "Srchfor" Utility?
- From: Binyamin Dissen
- Re: Multi-line "Srchfor" Utility?
- Prev by Date: Re: Multi-line "Srchfor" Utility?
- Next by Date: Re: Language Environment runtime options and system dumps
- Previous by thread: Re: Multi-line "Srchfor" Utility?
- Next by thread: Re: Multi-line "Srchfor" Utility?
- Index(es):
Relevant Pages
|