i just started working on edit macros, thus please bear if my query is silly one.
I have created few edit macros, which i am able to run in our system.
But below macro which i have written to edit the current dsn having the cobol code to expand the copybook is not working -
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
EXPAND is an ISPF command, so it is a restricted name. Rename your program. It is as if you had named your program to be 'END' or 'CANCEL'... ISPF will recognize it and try to do it.
I do not believe there is a list of restricted names, but if you go to ISPF option 3.9 and list the ISP command table, you can see what command names not to use.
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
"Wij runderen, wij glunderen!"
Before you create an edit macro, it would be a good thing to press PF1 from the main ISPF menu, followed by "I" to look in the ISPF Tutorial Index if there is already a command with that name...
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
Another way is to give your macro a name which is not the first one you think of.
EXPAND is asking for trouble. It is a single word. If not used now, it could well be used in a later release. EXPCPYBK is much better. Unlikely to be used in future by system software, much more mnemonic than "EXPAND".