View previous topic :: View next topic
|
Author |
Message |
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Hello,
I have an ‘Edit Line Command Table’ ANSCMDS defined using ISPF 3.16 and saved under USERID.ISPF.ISPPROF.TEST which is concatenated to ISPTLIB. This table has a command ‘AT’ which is set to invoke the Edit Macro ANSM1 defined in a PDS, concatenated to SYSPROC.
The Line command generates labels .TAAAA through .TAZZZ when used in the ISPF Editor as a Line Command. To invoke the Edit Line Command Table, I mention the table name in the View/ Edit Entry Panel and it works absolutely fine.
The problem arises when I try to use the same 'AT' line command from a Custom Panel, I get the error message “Command not recognized”. Is there a way I could define the ‘Edit Line Command Table’ to my REXX script so that the ‘AT’ command would be available for use in the Panel?
I’ve looked up the ISPF manuals but other than ISPF Option 3.9, I’ve drawn a blank. There are no User/Site Wide tables defined in the Command Table Search Order and since defining them would require ISPF Configuration Changes, I’ve not been able to try it out. z/OS ISPF User's Guide Vol I, has a section on customizing the System command table “Customizing the ISPCMDS command table” but I don’t think it would be appropriate for use specially if we would roll out the Panel for a wider audience.
Please let me know if you'd like code snippets etc. Any help would be much appreciated!
Thanks
Tarique |
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
As I recall, you can only use edit line commands if the edit is done via ISPF 2. Even from 3.4 it doesn't work.
Willy |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
Does your REXX program invoke EDIT using the LINECMDS(tabname) parameter?
Tip: use the ISPF MODEL command to obtain the correct syntax for any ISPF service. |
|
Back to top |
|
|
Mickeydusaor
Active User
Joined: 24 May 2006 Posts: 258 Location: Salem, Oregon
|
|
|
|
make a copy of ANSM1 in your pds and call it AT |
|
Back to top |
|
|
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Hi all,
Thanks for getting back. Let me first admit that I'm fairly new to System Programming so I must have been missing a trick or two.
The Idea for generating the Line Labels was borrowed from a Blogpost on IBM DeveloperWorks Persistent line labels in ISPF EDIT' and the code for ANSM1 is almost the same, except that it triggers just the 'AT' command (A modified version of SP described in the blog).
@Wily - The Edit Line Command works as described using ISPF Option 3.4. I just want to use it from a Custom Panel instead.
@Don - The code for ANSM1 is a modified version of the code posted on the Blog. It uses Address ISREDIT "MACRO (PARM) NOPROCESS" to invoke the Edit Macro. If you'd like to have a look at my version, I can post it here.
@Mickey - I've tried doing that, but unfortunately it didn't work.
Regards,
Tarique |
|
Back to top |
|
|
Tarique Anwer
New User
Joined: 27 Jan 2016 Posts: 10 Location: India
|
|
|
|
Okay, I contacted the System Programmers at our site and one of them pointed me to the LINECMDS parameter, which made me wonder why I didn't look it up in the IBM manuals when Don suggested it in the post above. My Bad!
The LINECMDS parameter does the trick for me. Many thanks to all who responded, and I promise I'll lookup the manuals before saying it doesn't work!
Regards,
Tarique |
|
Back to top |
|
|
|