Executing ISPF Macros in browse mode
Select messages from
# through # FAQ
[/[Print]\]

MVSFORUMS.com -> TSO and ISPF

#1: Executing ISPF Macros in browse mode Author: Venkata Ramana ReddyLocation: California PostPosted: Mon Feb 03, 2003 9:00 pm
    —
Is there a way to execute ISPF Macros in browse mode?.
If so please post a sample code.


Last edited by Venkata Ramana Reddy on Wed Feb 05, 2003 1:12 pm; edited 1 time in total

#2:  Author: semigeezerLocation: Atlantis PostPosted: Mon Feb 03, 2003 10:22 pm
    —
The short answer is no. There is no browse macro facility. The long answer is 'sort of'. You cna use View instead of browse (see the check boxes on the option 1 panel).

#3:  Author: Venkata Ramana ReddyLocation: California PostPosted: Tue Feb 04, 2003 12:43 pm
    —
semigeezer,
Here is the Rexx Code,I have written to get the No of records in Dataset.I know this works fine if I open the dataset in View or Edit mode.I wanted to try this Macro,by opening the Dataset in Browse mode

Any suggestions ??

Code:
/* Rexx Macro to get no of records in Dataset    */                             
ADDRESS ISREDIT                           
'MACRO NOPROCESS'                         
IF RC > 0 THEN
  EXIT 12                               
ELSE
  DO                                 
   "ISREDIT (cnt) = LINENUM .ZLAST"       
   ZERRSM=''                             
   ZERRALRM='YES'                         
   ZERRHM='*'                             
   zerrlm = 'No of records: ' cnt         
   ADDRESS ISPEXEC 'SETMSG MSG(ISRZ002)' 
 END                                       
EXIT 0



MVSFORUMS.com -> TSO and ISPF


output generated using printer-friendly topic mod. All times are GMT - 5 Hours

Page 1 of 1

Powered by phpBB © 2001, 2005 phpBB Group