Hi Mark,
I have installed RBD 9.1.1.
I was isolating a pece of egl code to send for you and I found the problem and i think it is a bug.
record AB2000_WRK type basicRecord W_NPRO char(9); AB07REMA char(65); AB07 char(15); end program Prog3 type BasicProgram {includeReferencedFunctions = yes, allowUnqualifiedItemReferences = yes, throwNrfEofExceptions = yes, handleHardIOErrors = no, V60ExceptionCompatibility = yes, I4GLItemsNullable = no, textLiteralDefaultIsString = no, localSQLScope = yes} AB2000_WRK AB2000_WRK; function main() open AB07 with #sql{ SELECT AB07REMA FROM TEST.AB07 WHERE AB07PROG = :AB2000_WRK.W_NPRO }; get next from AB07 into AB2000_WRK.AB07REMA; close AB07; end end |
Notices: the AB07 is result set identified and it has same name variable field AB07 defined in AB2000_WRK record without structure level.
This sample egl code close AB07 is accept and no error.
But after changed AB2000_WRK record with structure level
record AB2000_WRK type basicRecord
01 W_NPRO char(9);
01 AB07REMA char(65);
01 AB07 char(15);
end
close AB07 is not accept
IWN.VAL.6659.e 312/14 AB2000 - Invalid identifier AB07. The target of a close statement must be a printform, an SQL, MQ,
indexed, relative, CSV, or serial record variable, or a result set identifier.
Hsieh