IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Use Edit Line Command Table with ISPF Panel/REXX


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Thu Jan 28, 2016 4:52 pm
Reply with quote

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
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Jan 28, 2016 6:54 pm
Reply with quote

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
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Jan 28, 2016 9:12 pm
Reply with quote

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
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Thu Jan 28, 2016 9:29 pm
Reply with quote

make a copy of ANSM1 in your pds and call it AT
Back to top
View user's profile Send private message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Fri Jan 29, 2016 11:58 am
Reply with quote

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
View user's profile Send private message
Tarique Anwer

New User


Joined: 27 Jan 2016
Posts: 10
Location: India

PostPosted: Fri Jan 29, 2016 3:06 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Load new table with Old unload - DB2 DB2 6
Search our Forums:

Back to Top