Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Finding Hexa decimal value in a LOAD module

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Finding Hexa decimal value in a LOAD module
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    Post subject:
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    Post subject: Reply to: Finding Hexa decimal value in a LOAD module
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: 8593
Location: Back in jolly old England

PostPosted: Mon Jun 22, 2009 4:18 pm    Post subject:
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    Post subject:
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    Post subject: Reply to: Finding Hexa decimal value in a LOAD module
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    Post subject:
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: 1002
Location: Oostende, Belgium

PostPosted: Mon Jun 22, 2009 5:06 pm    Post subject: Re: Reply to: Finding Hexa decimal value in a LOAD module
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

Senior Member


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

PostPosted: Tue Jun 23, 2009 12:48 am    Post subject: Reply to: Finding Hexa decimal value in a LOAD module
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Can DFSPARM override SORTKEYS paramet... ashek15 DB2 2 Tue Jan 31, 2017 11:36 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us