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

access library name in REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jzhardy

Active User


Joined: 31 Oct 2006
Posts: 139
Location: brisbane

PostPosted: Tue Nov 15, 2022 11:29 am
Reply with quote

Is there a way I can extract the name of the 'current library' in the memberlist panel of DSLIST within REXX.

If i'm in an ISPF edit session, I can use commands like:

ADDRESS ISREDIT
"(MEMB) = MEMBER"
"(DSN) = DATASET"

But i need to be able to do this outside of the edit session.

I've tried using ISPF table ISRPLIST but no luck. Variable DSAPET01 is meant to show the most recently accessed library, but i'm getting inconsistent results.

My motivation for doing this is to address a limitation in SRCHFOR that does not allow for :
- multi-line regex expressions;
- logical AND joins between search terms

I've looked for other tools on our site but we don't have anything that will help.

Also - and this could be a shorter path to what I want - does anyone know if SRCHFOR supports user exits ?
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 730
Location: Denmark

PostPosted: Tue Nov 15, 2022 1:48 pm
Reply with quote

I am not aware of any variable containing the name, but the zscreeni variable contains the screen image. Parse that for the datasetname.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Nov 17, 2022 6:44 am
Reply with quote

Quote:
does anyone know if SRCHFOR supports user exits


I looked in 'ISPF Planning and customizing', which documents user exits. Section 'ISPF installation-wide exits' does not list anything for SRCHFOR.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Does anyone know rexx for VSE CLIST & REXX 3
No new posts TSO ALLOC In REXX Needs Improvement JCL & VSAM 3
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 Reroute print output via REXX/SDSF TSO/ISPF 6
Search our Forums:

Back to Top