View previous topic :: View next topic |
Author |
Message |
Venkata Ramana Reddy Beginner
Joined: 02 Dec 2002 Posts: 70 Topics: 19 Location: California
|
Posted: Mon Feb 03, 2003 9:00 pm Post subject: Executing ISPF Macros in browse mode |
|
|
Is there a way to execute ISPF Macros in browse mode?.
If so please post a sample code. _________________ Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement.
Last edited by Venkata Ramana Reddy on Wed Feb 05, 2003 1:12 pm; edited 1 time in total |
|
Back to top |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon Feb 03, 2003 10:22 pm Post subject: |
|
|
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). |
|
Back to top |
|
|
Venkata Ramana Reddy Beginner
Joined: 02 Dec 2002 Posts: 70 Topics: 19 Location: California
|
Posted: Tue Feb 04, 2003 12:43 pm Post subject: |
|
|
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 |
_________________ Venkataramana
-- Good judgement comes from experience, and often experience comes from bad judgement. |
|
Back to top |
|
|
|
|