|
Rory et Al,
Having a problem with this, hope you can help.
My test program :
D AParms UDS
D Parm1 LIKE ( REF_Parm )
C *DTAARA DEFINE MyDtaAra AParms
C IN AParms
C EVAL Parm1 = 'test'
C OUT AParms
C CALL 'Mypgm'
/FREE
DSPLY %SUBST ( GetMyPgmError ( ) : 1 : 52 );
RETURN;
/END-FREE
In mypgm:
D AParms UDS DTAARA ( NPA010 )
D Parm1 LIKE ( REF_Parm )
No operations on the data area
P GetMyPgmError...
P B EXPORT
D PI LIKE ( REF_ERRMSG )
/FREE
RETURN globalErrorMessage;
/END-FREE
P GetMyPgmError...
P E
When my test program goes back to get the error message, with DSPLY %SUBST
( GetMyPgmError ( ) : 1 : 52 ), why is the data area locked?
Thanks
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.