MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to run an EDIT Macro in ISPF?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Jamylady
Beginner


Joined: 04 Nov 2004
Posts: 68
Topics: 22

PostPosted: Tue Jan 25, 2005 7:25 am    Post subject: How to run an EDIT Macro in ISPF? Reply with quote

HI,
I am trying to learn how to write macros and I got the following example from IBM Book manager. But could any one help me on how to execute this macro? I mean where should I keep this macro so that it can be invoked by typing 'ISREDIT' in the command line?
ISREDIT MACRO
ISREDIT RESET EXCLUDED /* Ensure no lines are excluded */
ISREDIT EXCLUDE ALL '-' 1 /* Exclude lines with '-' in col1*/
ISREDIT FIND FIRST '-' 1 /* Show the first such line */
ISREDIT DELETE ALL EXCLUDED /* Delete all lines left excluded*/

Thanks in advance
JA
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Jan 25, 2005 8:25 am    Post subject: Reply with quote

A PDS member containing an ISPF EDIT macro should reside in a library that is concatenated to the SYSPROC DD.
Back to top
View user's profile Send private message
Jamylady
Beginner


Joined: 04 Nov 2004
Posts: 68
Topics: 22

PostPosted: Tue Jan 25, 2005 8:33 am    Post subject: Reply with quote

I think I wont be having access to the SYSPROC Libs. Is there any alternatives?
Thanks
JA
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jan 25, 2005 10:03 am    Post subject: Reply with quote

Jamylady,

Type DDLIST at the command prompt. This will bring up all the allocations for your user-id. Now type SAVE at the command prompt, which will create a clist of all the allocations. Now you can edit this CLIST to include your PDS with edit macros for the SYSUPROC.

Now execuete this clist and you should be able to execuete your edit macros.

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jamylady
Beginner


Joined: 04 Nov 2004
Posts: 68
Topics: 22

PostPosted: Tue Jan 25, 2005 10:28 am    Post subject: Reply with quote

Thanks Kolusu
That worked:)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group