Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How To Find a String inside a Load-module

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> HomeWorks & Requests
View previous topic :: :: View next topic  
Author Message
sath_vino

New User


Joined: 15 Apr 2009
Posts: 3
Location: India

PostPosted: Fri Apr 17, 2009 8:18 pm    Post subject: How To Find a String inside a Load-module
Reply with quote

I'm Trying to find a string inside a Load-module without opening the member(load-module).
Say For Eg. If my program name is M102345A, I need to find number of occurances of M102345A inside the load-module of this program.

Please help me to solve this.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Apr 17, 2009 9:35 pm    Post subject:
Reply with quote

open the load module in browse,

do a find all
upper right of your screen will indicate number of hits.

I personally do not know how to read a load module with REXX,
nor have I tried to invoke an edit session for a load module,
which is RECFM=U.

a more knowledgeable rexx person may offer you a solution.
Back to top
View user's profile Send private message
sath_vino

New User


Joined: 15 Apr 2009
Posts: 3
Location: India

PostPosted: Mon Apr 20, 2009 9:40 pm    Post subject: Reply to: How To Find a String inside a Load-module using Re
Reply with quote

Thanks for your suggestion...

We cant open load-module in edit mode, it will automatically substitute browse mode.

Can we do this without Opening the Member?
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Mon Apr 20, 2009 9:52 pm    Post subject: Reply to: How To Find a String inside a Load-module
Reply with quote

Didn't we see this exact same topic last week? And wasn't the recommended solution to use the SUPERC program for the search?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 20, 2009 11:25 pm    Post subject:
Reply with quote

Hello,

Of course not. . .

One way or another, there has to be an "open" in order for there to be a "read".

You should be able to do what you need using the searchfor opton of superc. . .

Quote:
I need to find number of occurances of M102345A inside the load-module
What value is there in knowing the number of occurrances?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Apr 20, 2009 11:27 pm    Post subject: Reply to: How To Find a String inside a Load-module
Reply with quote

Sorry 'bout that, Kevin icon_redface.gif

I'd opened this and started the reply and then was called away for a while. . .

d
Back to top
View user's profile Send private message
MBabu

Active User


Joined: 03 Aug 2008
Posts: 401
Location: Mumbai

PostPosted: Mon Apr 20, 2009 11:36 pm    Post subject: Reply to: How To Find a String inside a Load-module
Reply with quote

Your question isn't clear. What are you trying to do exactly? A load module on disk contains lots of information that will not be in storage when the load module is loaded. If you really want to scan the image that is on disk, copy it to another file that EXECIO can read. For example, copy it to a Unix file (USS) and back to a fixed file. Don't forget to account for the places where the string might start at the end of one 'record' and continue to the next 'record'.

If you want to see what it will look like in storage, you need to load it and get the address of the loaded storage which you can't do in pure rexx(*) but some programs like ISRDDN can load a module and show you the storage.

* technically, you probably can do it using TSO TEST commands, or some other programmable debugger but don't bother.
Back to top
View user's profile Send private message
sath_vino

New User


Joined: 15 Apr 2009
Posts: 3
Location: India

PostPosted: Wed Apr 22, 2009 3:59 pm    Post subject: Reply to: How To Find a String inside a Load-module
Reply with quote

I think, I am not clear. Sorry for all the confusion.

Here is my requirement:
In my project, the production version will be identified with the level number. Say, there are 2 versions of program, M10245A1M and M10245A1T with level number as 115 and 120 respectively.

If the version A1T is in production, then the load-module will have "120M10245A1T". So to find the production version, we will search for the program and see the three digit before the program number as shown.

Given the Background, we need to find production version for some 200 programs which I though of doing it using Rexx.

Please note the occurance of the program will be in many place inside the load-module. So I need to do a Repeat-find till I get the level number.

Basically, I need to find the instant of the program and read the content by moving the cursor position 3 place towards left.

Somebody, please help me to implement this using Rexx. Thanks.
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 -> HomeWorks & Requests All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts sending email from jcl using the mail... niloyarp JCL & VSAM 5 Tue Oct 10, 2017 12:32 pm
No new posts Table(Unicode(Graphic) table) loading... muralikrishnan_new DB2 0 Thu Oct 05, 2017 5:10 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us