How can I get the name of the LIBRARIAN member in an ISPF Edit Macro?

Document ID : KB000021894
Last Modified Date : 14/02/2018
Show Technical Document Details

Issue:

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

See below how I have this query 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:  

CA Librarian 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 CA Librarian System Services Reference Guide for a list of all the ELIPS Edit Macro variables available.