View previous topic :: View next topic |
Author |
Message |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Tue Jan 25, 2005 7:25 am Post subject: How to run an EDIT Macro in ISPF? |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Jan 25, 2005 8:25 am Post subject: |
|
|
A PDS member containing an ISPF EDIT macro should reside in a library that is concatenated to the SYSPROC DD. |
|
Back to top |
|
 |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Tue Jan 25, 2005 8:33 am Post subject: |
|
|
I think I wont be having access to the SYSPROC Libs. Is there any alternatives?
Thanks
JA |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jan 25, 2005 10:03 am Post subject: |
|
|
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 |
|
 |
Jamylady Beginner
Joined: 04 Nov 2004 Posts: 68 Topics: 22
|
Posted: Tue Jan 25, 2005 10:28 am Post subject: |
|
|
Thanks Kolusu
That worked:) |
|
Back to top |
|
 |
|
|