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

SRCHFOR ‘string’ command inside PDS memberlist


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

New User


Joined: 03 Dec 2022
Posts: 5
Location: United States

PostPosted: Sat Dec 03, 2022 11:23 pm
Reply with quote

Hi, the SRCHFOR ‘string’ given inside a pds memberlist brings up 3.14 panel. I want to see the results inside the pds itself (like the members that have the string are marked as ‘found’ under the Prompt header). Is there a way to do this please
The ISPF command table has below for SECHFOR
Verb T Action
SRCHFOR 0 SELECT PGM(ISRSFM) NEWAPPL(ISR)
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Sat Dec 03, 2022 11:31 pm
Reply with quote

Your support staff screwed up, it should not have added this to the command table, as it's a standard primary command in the pds memberlist.
Back to top
View user's profile Send private message
Madhupreetha Palanisamy

New User


Joined: 03 Dec 2022
Posts: 5
Location: United States

PostPosted: Sat Dec 03, 2022 11:36 pm
Reply with quote

Hi Robert, Thanks for quick response. Looks like I don’t have access to edit the command table. Is there a way around to kind of override this please.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Sun Dec 04, 2022 7:31 am
Reply with quote

Quote:
Looks like I don’t have access to edit the command table


The command table has various tiers. You might be able to fix it for yourself by updating the user table. Perhaps set the action to be PASSTHRU. Use ISPF option 3.9.

See ISPF User's Guide Vol II
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Sun Dec 04, 2022 10:34 pm
Reply with quote

Pedro wrote:
Quote:
Looks like I don’t have access to edit the command table


The command table has various tiers. You might be able to fix it for yourself by updating the user table. Perhaps set the action to be PASSTHRU. Use ISPF option 3.9.

Do you really think they have any clue as to what you're talking about? IMHO like many shops they've just stuffed a command table full of "useful" stuff, and it's migrated with every new version of z/OS, without taking into account any changes, like the now available site and user command tables.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Mon Dec 05, 2022 12:32 am
Reply with quote

Quote:
like the now available site and user command tables

They have been available since about the mid 1990's. But I agree with you that things like this change slowly.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Mon Dec 05, 2022 12:33 am
Reply with quote

fyi. The tiers of command tables were a suggestion I made to my IBM colleagues. I was a system programmer at the time. I was trying to solve the problem of maintaining our system command table with local updates. You are welcome.
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: Mon Dec 05, 2022 8:23 am
Reply with quote

Pedro wrote:
fyi. The tiers of command tables were a suggestion I made to my IBM colleagues. I was a system programmer at the time. I was trying to solve the problem of maintaining our system command table with local updates. You are welcome.
That was you? Thank you! Command tables are extremely useful.

Years after SITECMDS and USERCMDS were introduced, one shop I worked at continued the bad practice of putting their local stuff into ISPCMDS. They didn’t activate the hierarchy either; I had to figure out how to set up my own ISPCFIGU.
Back to top
View user's profile Send private message
Madhupreetha Palanisamy

New User


Joined: 03 Dec 2022
Posts: 5
Location: United States

PostPosted: Mon Dec 05, 2022 8:24 pm
Reply with quote

Thanks Robert, Pedro,
I see only application table ISR and system table ISP in 3.9 option, and I have no update access to both of the table/libraries. From your response I see that I may have to create ISPCFIGU. Can you please advise how to do that
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1314
Location: Vilnius, Lithuania

PostPosted: Mon Dec 05, 2022 9:11 pm
Reply with quote

Madhupreetha Palanisamy wrote:
From your response I see that I may have to create ISPCFIGU. Can you please advise how to do that

RTFM, and ONLY when you've done so,
Code:
TSO ISPCCONF
but if you cannot allocate your own libs to the various ISPxLIB DDNAMEs, it's very likely an exercise in futility.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Mon Dec 05, 2022 10:09 pm
Reply with quote

Quote:
I have no update access to both of the table/libraries


Can you explain your role? If you are a regular user, you probably need to ask your support team for help in changing the setup there.

If you are in the support team, maybe read the manuals and ask questions here. And get the right permissions to update the datasets.
Back to top
View user's profile Send private message
Madhupreetha Palanisamy

New User


Joined: 03 Dec 2022
Posts: 5
Location: United States

PostPosted: Mon Dec 05, 2022 11:23 pm
Reply with quote

Hi Pedro, Robert,

I’m a regular user. I’ve no access to ISPxLIB DDs. Thank you for the suggestion, let me check with my support team for help.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2593
Location: Silicon Valley

PostPosted: Mon Dec 05, 2022 11:51 pm
Reply with quote

Ask your support team to use the ISPF Configuration utility to set the ISPDFLTS Settings and enable "APPLID for User Command Table1". And maybe to make the SITECMDS table be after the USERCMDS table.

See www.ibm.com/docs/en/zos/2.5.0?topic=file-general-ispf-settings-panels for more information.


update: or ask them to fix the original issue
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 730
Location: Denmark

PostPosted: Tue Dec 06, 2022 4:17 pm
Reply with quote

You can update the in-store command table like this to drop the bad entry:
Code:
/*  Update ISPF command table            rexx  */
 address ispexec                                 
 "tbtop ispcmds"                                 
 do n=1 to rown                                 
   "tbskip ispcmds"                             
   if zctverb<>'SRCHFOR' then iterate           
   say 'SRCHFOR before=' zctact                 
   /* change command                             
   zctact   = 'PASSTHRU'                         
   "tbput ispcmds" */                           
   /* delete command */                         
   "tbdelete ispcmds"                           
   leave                                         
 end                                             

I agree that it is not nice, but it works. The beauty of doing it like this is that if you mess things up you just log off and on, you havent changed the stored command table. The challenge is of course how to run the command at logon time, but many sites have a process for allowing that.
As to the SITECMDS and USERCMDS command tables I think that they were not implemented in a many sites because IBM failed to supply a decent update dialog. I wrote one and I know of others who did too.
Back to top
View user's profile Send private message
Madhupreetha Palanisamy

New User


Joined: 03 Dec 2022
Posts: 5
Location: United States

PostPosted: Tue Dec 06, 2022 9:29 pm
Reply with quote

Thanks Willy, This works like a charm!!
Thank you!!
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 REXX/CMS How to place command console... CLIST & REXX 4
No new posts Help needed in automation cics transa... CLIST & REXX 1
No new posts How to Login in to cics region and is... CICS 9
No new posts Passing containers on START command CICS 4
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
Search our Forums:

Back to Top