|
Hello,
I want to work with a (SQL) table without primary key to be viewed in a load-paged subfile. The table is fed with data from an external source. (Changes are rather costly, so I won't go that way. Identity fields are not possible because my OS/400 release doesn't support that.)
In the RPG manuals, I found the definition where I can find the current RRN:
DFINFDS DS
D TBLRRN 397 400I 0
To have direct access to the records, I want to save the RRN of given records in a hidden field in the SFL of the display file:
A TBLRRN 4Y 0H
The compiler complains, that the field lengths aren't matching. The error persists if I reduce the length to three positions in the display file.
Obviously, I'm doing something wrong. So I ask kindly for enlightenment. :-)
:wq! PoC
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.