|
Rob, 1) Mark, 'Straight RPG' would be a shoehorn. You would need a logical file to perform the sort. Either a *LF or OPNQRYF to do the sequencing. I never advocated 'straight RPG' w/o the input being properly sequenced. 2) Joe, There is no such thing as a one line OPNQRYF. You need the OVRDBF and the rest of the kludge. New people find SQL easy to use. OPNQRYF's crud about FILE vs. FORMAT, and which one do you declare in your RPG program is for people who need a testosterone rush, and this does it for them. OVRDBF is an extremely common CL statement; I don't see the kludge here. In its simplest form (for OPNQRYF): OVRDBF FileName SHARE( *YES ). I think most of us on can handle it. The FORMAT() keyword is only needed when the layout of the data to be returned does not match the file defined in the RPG program. 3) I think Alexei's solution was the most simple and straight forward. In the SQL world, maybe. But the RPG solution is simpler and more straightforward. -mark -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
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.