IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Finding Hexa decimal value in a LOAD module


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
logaas

New User


Joined: 19 Feb 2005
Posts: 25
Location: chennai

PostPosted: Mon Jun 22, 2009 3:37 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 22, 2009 3:45 pm
Reply with quote

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
View user's profile Send private message
logaas

New User


Joined: 19 Feb 2005
Posts: 25
Location: chennai

PostPosted: Mon Jun 22, 2009 3:58 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Jun 22, 2009 4:18 pm
Reply with quote

Exactly what results are you expecting
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 22, 2009 4:26 pm
Reply with quote

I think the TS wants to invoke VIEW with a load module.
Back to top
View user's profile Send private message
logaas

New User


Joined: 19 Feb 2005
Posts: 25
Location: chennai

PostPosted: Mon Jun 22, 2009 4:34 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Mon Jun 22, 2009 4:54 pm
Reply with quote

ISPF Options 3.12, 3.13???
This (SUPERC) can be run foreground or background.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Mon Jun 22, 2009 5:06 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Tue Jun 23, 2009 12:48 am
Reply with quote

Use the AMBLIST utility to format the load module then search the listing produced by the utility.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Load new table with Old unload - DB2 DB2 6
No new posts VB to FB - Finding LRECL SYNCSORT 4
No new posts How to load to DB2 with column level ... DB2 6
Search our Forums:

Back to Top