|
OS/400 option 13 (Openness Includes) does provide the structure definitions for the system APIs in RPG, COBOL, and C. They can be found in the library QSYSINC. In the case of RPG, source files are provided for both QRPGSRC and QRPGLESRC though includes for "ILE only" functions are not supplied for QRPGSRC (how would one use them without going through some ILE based language as an intermediate?). These structures however are not BASED in the case of QRPGLESRC. The RPG names are a bit awkward due to their historic length limitations and the desire that a given application developer could /COPY any given set of API includes and not get a compile failure due to name reuse across APIs. For that reason the names start with a 'Q' and are followed by a 2 character component identifier. Names are then further restricted by not generating vowels so as to hopefully avoid any embarrassing letter sequences; not using EBCDIC variant characters so as to minimize National Language Support CCSID considerations; and the like. The names may not be as easily read/understood as ones you can come up with, but they do take into consideration some things that you may not have to worry about (or care about). Bruce Vining > >I thought these were available on the system somewhere already. I know our >shop hasn't installed them, but I know I've heard people speak of them. The >only problem is the variable names are IBM, so if it's something like file >name, the variable will be similar to QFJFLANAME.. ;) > >What we do is simply only code the variables we want to use using FROM and >TO posistions, and name them whatever we want... like "FileName". I think >it's easier in the long run. > >Bradley V. Stone >Taylor Corporation - OASIS Programmer/Analyst >bvstone@taylorcorp.com > > >> -----Original Message----- >> From: Michael Calabro/commsoft [SMTP:mcalabro@commsoft.net] >> Sent: Wednesday, November 18, 1998 3:04 PM >> To: MIDRANGE-L@midrange.com >> Subject: Re: Binary vs. Integer Parameters >> >> I'd like to second David's motion. It'd be exquisite to have structures >> for every API! >> Buck Calabro >> > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.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.