Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Use Edit Line Command Table with ISPF Panel/REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Use Edit Line Command Table with ISPF Panel/REXX
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

New User


Joined: 01 Sep 2015
Posts: 94
Location: Switzerland

PostPosted: Thu Jan 28, 2016 6:54 pm    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Thu Jan 28, 2016 9:12 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Reply to: Use Edit Line Command Table with ISPF Panel/REXX
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts ISPF program to set SCRNAME prino TSO/ISPF 5 Fri Sep 30, 2016 2:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us