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 User


Joined: 01 Sep 2015
Posts: 416
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: 696
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 Command line placement in DB2I panels TSO/ISPF 2
No new posts Any examples of calling FTP from REXX? CLIST & REXX 1
No new posts SummeRx: a new framework for REXX z/OS CLIST & REXX 6
No new posts File-aid batch how to repeat a line... Compuware & Other Tools 2
No new posts A command to change LRECL of an exist... JCL & VSAM 7
Search our Forums:

Back to Top