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: 131
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: 712
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: 2547
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 Compile Several JCL JOB Through one r... CLIST & REXX 4
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 isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top