|
Hello Mark, You wrote: >Does anyone remember these two wonderful little APIs, >QSCMATPG, and QSCCRTPG? The first one materializes the >OPM MI binary template, and returns it as 80-byte card images in a >"flat file". (From the name, it issues the MATPG MI instruction.) Yep. >The second one, QSCCRTPG, reads 80-byte card images in a >"flat file", and re-creates the *PGM object. (Again, from the name, >this one issues the CRTPG instruction). >However, they are not documented in the OS/400 Systems Programmers >API Reference Manuals (for any releases that I could find). And yet, these >have been "public" APIs for many years, perhaps all the way back to the >System/38. I don't think they were ever public in the true sense and they were removed from the system early on (V2R?M?). I didn't realise they had been reinstated. >Does anyone out there know why they are (still) not documented? Or, >perhaps a better question might be, does anyone know how or where to >obtain documentation of these routines? Obviously because Rochester don't want anyone to know about them unless they have a need to know. There are a few interesting things one can do with these programs. Still, I doubt much harm will come from documenting them since I got the information from a public article by Bruce Lesnick many moons ago. A Web search may turn up the original source. (Besides, they are not much use without a good understanding of the program template.) QSCMATPG 1 Program name Input CHAR(10) 2 Library name Input CHAR(10) 3 File name Input CHAR(10) 4 File library Input CHAR(10) 5 Member name Input CHAR(10) 6 Member option Input CHAR(8) The Materialize Program (QSCMATPG) API retrieves the program template for an OPM program and places it in the specified file member. Program name: The name of the program to materalize. Library name: The name of the library containing the program. Special values are not supported. File name: The name of the output file. This is a physical file with a record length of 80 bytes. The file must exist before the API is called. File library: The name of the library containing the output file. Member name: The name of the member to receive the program template. Special values are not supported. Member option: *ADD or *REPLACE QSCCRTPG 1 Program name Input CHAR(10) 2 Library name Input CHAR(10) 3 File name Input CHAR(10) 4 File library Input CHAR(10) 5 Member name Input CHAR(10) The Create Program (QSCCRTPG) API creates a program from the program template retrieved by the Materialise Program (QSCMATPG) API. Program name: The name of the program to create. Library name: The name of the library to contain the program. Special values are not supported. File name: The name of the file containing the program template. This is a physical file with a record length of 80 bytes. The file must exist before the API is called. File library: The name of the library containing the file. Member name: The name of the member containing the program template. Special values are not supported. Regards, Simon Coulter. FlyByNight Software AS/400 Technical Specialists Eclipse the competition - run your business on an IBM AS/400. Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / X ASCII Ribbon campaign against HTML E-Mail / \ +--- | This is the MI Programmers Mailing List! | To submit a new message, send your mail to MI400@midrange.com. | To subscribe to this list send email to MI400-SUB@midrange.com. | To unsubscribe from this list send email to MI400-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: dr2@cssas400.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.