How to find the name of the LIBRARIAN member in an ISPF Edit Macro
search cancel

How to find the name of the LIBRARIAN member in an ISPF Edit Macro

book

Article ID: 21894

calendar_today

Updated On:

Products

Librarian

Issue/Introduction

Using the following ISPF Edit Macro QUERY to get the name of the Librarian member I currently edit, however no member name displayed.

The below query is set up to pass the dataset and member:

'ISREDIT MACRO'           
"ISREDIT (datname) = DATASET"
"ISREDIT (memname) = MEMBER" 
 SAY "Library:"datname   
 SAY "Member:"memname   
 trace i   
"ISPEXEC VGET (ELI$DMOD) SHARED" 
 SAY ELI$DMOD  

 

 

 

Environment

Release: 4.4 

Resolution

ELI$DMOD is the ELIPS variable used in ELIPS Exit processing. 

For ELIPS Edit Macros, use the Edit Macro variable  ELI$RMOD.

Here is an example ELIPS Edit Macro that returns the DSN of Master file and the name of the member being edited in ELIPS:

000001 /* REXX */
000002
000003 ISREDIT MACRO
000004 ISPEXEC CONTROL ERRORS RETURN
000005
000006   ISPEXEC VGET (ELI$RMF) SHARED
000007   SAY ELI$RMF
000008   ISPEXEC VGET (ELI$RMOD) SHARED
000009   SAY ELI$RMOD
000010
000011
000012 EXIT

 

 

 

 

Additional Information

See the ELIPS Edit Macro Variables section in Chapter 9: ELIPS User Exits of the Librarian System Services Reference Guide for a list of all the ELIPS Edit Macro variables available.