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
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