Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing Rexx Macro in Browse mode

Status
Not open for further replies.

niru4u

Programmer
Dec 4, 2006
3
IN
I just wanted to know whether a rexx macro can run on a dataset opened in browse.
My requirement is that to read contents of a dataset which is opened in Browse mode( i can't open it in view or edit mode) and finding a string using F command. I am not doing any edit. the rexx macro is working when I am executing it in view mode.. can somebody help me on this.. this is very important for us in developing a tool.
Folloowing is the part of code which executing fine when dataset is opened in Bro0wse mode.
/********************REXX***********************/
ADDRESS ISREDIT "MACRO PROCESS"
ADDRESS ISREDIT "(PGMLIB) = DATASET"
SAY "THIS IS THE FILE YOU ARE EDITING " PGMLIB
ADDRESS ISREDIT "(MEMBER) = MEMBER"
SAY "THIS IS THE MEMBER YOU ARE EDITING " MEMBER

I want similar kind of macro for getting the information of dataset opened in Browse mode.

Thanks in advance

Niranjan S
IBM
91-9986098908
 

You can't do it with an edit macro (they're called 'edit macros' for a reason...), but you can do it:

In your command table, have a line with a ZCTACT like this:
Code:
SELECT CMD(%....  |&ZDSN |&ZMEM |&ZMEMB)
The command you specify points to a CLIST or EXEC which can extract ZDSN, ZMEM, and ZMEMB from the parm. The information you want is there.

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Hi Frank,

Thanks alot for the reply. Actually I am a beginer in Rexx, could you please let me know where should I add this SELECT CMD line.. I am confused of command table. Please let me know where should I add this code..

One more thing is I also want to read data from this dataset.

Thanks& Regards,
Niranjan
 

That isn't actually a REXX problem; it's an ISPF problem.

Do you know what a command table is, what it does, how it's formed, how it's accessed? The background information you need to do this is well beyond the scope of an answer in Tek-Tips. Have you no ISPF experts where you work? You should be asking them and learning from them and only coming here when everybody else gives you a 'dumb look'.

Really, the only advice I can give you here (without writing a book) is: get the manuals; start reading.


Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top