|
ˆ Hello Phil, You wrote: >Having the external structure in a living breathing #include file created >by the GENSRC is better than having to do: #mapinc, compile, then cut & >paste from the spoolfile generated from the compile into your source them >modify the structure... What am I missing? #pragma mapinc builds a struct directly in the code based on the external definition of a database file. Thus changing the file definition means a simple recompile of the source keeps things synchronized. Why would I ever want to modify the file mapping structure directly? I have never had to perform the cut-and-paste method you describe when using DB files and C. The GENCSRC requires an additional step: modify the DB file, GENCSRC, compile programs. Yuck! So much for one advantage of externally described files. It strikes me that this is another move to remove AS/400 stuff from the C compiler so IBM can maintain a single compiler for all platforms. Didn't they try that with SAA RPG and all we got was RPG II? The new C++ compiler requires PASE, I can see the C compiler doing the same thus forcing a lowest common demoninator approach -- If it ain't in Unix/Linux then it won't be in the compiler. I think I'll take David up on his request for a IMHO (although not-so-humble in my case). 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 / \ «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
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.