View previous topic :: View next topic
|
Author |
Message |
logaas
New User
Joined: 19 Feb 2005 Posts: 25 Location: chennai
|
|
|
|
Hi List,
I want to lookup for a hexadecimal Timestamp value in a LOAD MODULE.
Using 3.4 option in ISPF, I was able to find the value.
But , when used rexx ISPEXEC VIEW DATASET(dsn) MACRO(FIND) command it is not working.
Also , i tried to read the file and copy to a variable and use POS to find the string, but it returns 0 - not found.
Can anyone help me on this.
Regards,
Logaa |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Quote: |
MACRO(FIND) command it is not working. |
NO, your implementation of the command is faulty.
what was the rc after issuing the ISPEXEC VIEW DATASET(dsn) statement in your rexx script.
what search string did you provide the "FIND" imacro?
Quote: |
use POS to find the string, |
what code did you use here? How did you code your "hexadecimal" timestamp?
Using 3.4 option only lists datasets.
how did you access the ds? browse, view, edit???
how did you search the loadmodule for your search string?
and what value did you use for the search string? |
|
Back to top |
|
|
logaas
New User
Joined: 19 Feb 2005 Posts: 25 Location: chennai
|
|
|
|
Hi,
Actually FIND should be FIND1 which is a macro. It was a typo.
FIND1 contains
/* REXX */
"ISREDIT MACRO PROCESS"
"ISREDIT FIND X'17A0DD620AEAC685' "
IF RC=4 THEN "ISREDIT END"
EXIT
X'17A0DD620AEAC685' is the hexa decimal value I want to find in the load.
Using 3.4 I used to give View. But automatically Browse gets substituted.
Then I use command F X'17A0DD620AEAC685' to find the string.
Regards,
Logaa |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Exactly what results are you expecting |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
I think the TS wants to invoke VIEW with a load module. |
|
Back to top |
|
|
logaas
New User
Joined: 19 Feb 2005 Posts: 25 Location: chennai
|
|
|
|
Hi,
I want to check in the load module whether this value
X'17A0DD620AEAC685' is found. If found , I have to set a flag and process someother operation.
But I am not able to conclude using rexx, if the hexa string is found or not. Since the load modules are defined with format U and Record Length 0 , I think I am not able to use MACROs in the load module dsn.
Pls let me know if any other way to look up for the hexa string in the dataset
Thanks,
Loga |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
ISPF Options 3.12, 3.13???
This (SUPERC) can be run foreground or background. |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
logaas wrote: |
.
.
.
Pls let me know if any other way to look up for the hexa string in the dataset |
There is, but it involves XMIT, changing the contents of textunit 0049 in the INMR02 control record, and doing a RECEIVE of the modified file, which you can now open in edit.
It might be possible automate most of this, but you have to be pretty clever to do so, as RECEIVE doesn't allow you to specify the receiving dataset... |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Use the AMBLIST utility to format the load module then search the listing produced by the utility. |
|
Back to top |
|
|
|