×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
I have a data area, ##TRIGCTL. It is a flag to allow me to disable a
trigger program without requiring exclusive access to the PF in
question. I created the data area like so:
CRTDTAARA DTAARA(<lib>/##TRIGCTL) TYPE(*LGL) LEN(1) VALUE('1') TEXT('1
to run DSR070T00 trigger, 0 to disable')
My corresponding RPG variable is defined with this line:
D triggerControl...
D S 1A dtaara(##trigCtl)
The first lines of my RPG trigger program are:
in triggerControl;
if (triggerControl <> '1');
return;
endif;
FWIW, I initially tried defining triggerControl as a named indicator,
but it evaluated to false even though the value was '1' in debug.
When the code above runs, I get the error message below. It seems
contradictory to me. I'll work around this by defining the data area as
character instead, but can anyone shed light on this problem for future
reference?
Message ID . . . . . . : RNX0411 Severity . . . . . . . : 50
Message type . . . . . : Escape
Date sent . . . . . . : 04/10/08 Time sent . . . . . . :
09:34:33
Message . . . . : Data area <lib>/##TRIGCTL type or length does not
match
program data area *LIBL/##TRIGCTL.
Cause . . . . . : Data area *LIBL/##TRIGCTL was defined in the RPG
procedure
to be of type *CHAR and length 1. The actual data area
<lib>/##TRIGCTL is of
type *LGL and length 1. If a *LGL data area is expected, a data area
of type
*CHAR and length 1 is also allowed.
Recovery . . . : Correct the type or length of the data area, or
change the
library list so the correct data area will be found.
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.