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



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

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.