Quantcast
Channel: Micro Focus Forums
Viewing all articles
Browse latest Browse all 11924

AS400 getting event attr values

$
0
0
I'm trying to get the TITLE event attribute value. I have tried the following but receive an error that the TITLE variable is not available:

CALL PGM(&LIB/IDMGETVAR) PARM(&LIB &USPACENAME 'TITLE' &CPYPRF &CPYPRF_LEN)
IF COND(&CPYPRF_LEN *EQ 0) THEN(DO)
CALL PGM(&LIB/ERROR) PARM(&LIB &USPACENAME &MOD_NAME +
'Could not resolve TITLE for user add event.' 44)
GOTO error
ENDDO


Will it work with the following code user ADD_TITLE:

CALL PGM(&LIB/IDMGETVAR) PARM(&LIB &USPACENAME 'ADD_TITLE' &CPYPRF &CPYPRF_LEN)

Do all variables which are enclosed in add-attr nodes require the ADD_ prepended to the attribute to retrieve the attribute values?

If I were going to call a custom CL script like:

CLSCRIPT (&PARAM1, &PARAM2, &PARAM3, "*NONE")

How would I do this from ECMAScript within the driver?

Russ

Viewing all articles
Browse latest Browse all 11924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>