|
I have written a quick little app to list the fields in a physical file, using the QUSCRTUS, QUSPTRUS, QUSLRCD and QUSLFLD APIs. The fields are placed in a subfile, and listed for the user. It's basically like DSPFFD, without all the extra 'stuff' that I don't usually need to see at a glance. Neato. I would like to also indicate which fields are key fields, and what order these key fields are in. I can't see which API would help me with this detail. I don't see any option on the QUSLFLD API to show this, nor on the QUSLRCD API. Also, I don't see a way of knowing how many fields are returned from the QUSLFLD API. I currently have a DS based on a POINTER to the user space, and I increment the pointer after each field retrieval to the subfile. I test the first character of the field name for containing an alpha character, and if it does not, I assume I have reached the end of the loop. Kind of messy, but it works. Is there a better way? TIA Tony Carolla, Programmer/Analyst MedAmerica Billing Services, Inc. -- "Enter any 11-digit prime number to continue..."
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.