|
Thanks for the answers, but I already knew the fix and using %parms works great. I was just asking if someone knew the reason for the difference between the compilers. I should have read more post about the SQL precompiler and its unique problems and that the issue should have been expected. Thank you, Matt Tyler Mattt@wincofoods.com -----Original Message----- From: Simon Coulter [mailto:shc@flybynight.com.au] Sent: Tuesday, September 10, 2002 17:36 To: rpg400-l@midrange.com Subject: Re: CRTRPGSLQI says "specs out of order" Hello Buck, You wrote: >Then somebody decided that auto-report was rarely used, but the /COPY >function was popular, so the /COPY function got included in the base RPG >compiler. But the first versions of that compiler didn't sort the specs >into the right order. Modern versions do. Your statements are usually correct but this one is news to me. When did RPG compilers start sorting specs? As far as I know they don't. The only thing that did was CRTRPTPGM. Reeve's underlying problem is, I suspect, the P before the /COPY. Why do people do that? The '/' indicates a compiler directive. Compiler directives do not have specs so why put P, or C, D, or anything else in front of the slash? Just because the RPG IV compiler tolerates characters before the slash doesn't mean you should do it. As we have previously discovered the SQL precompilers are extremely literal in their parsing of source code. It's only the stupid precompilers that require a spec for /EXEC statements. P.S. Has anyone else noticed that /free is an oxymoron? Free-form statements must be between column 8 and column 80, and columns 6 and 7 must be blank. That doesn't sound like free-form to me. The compiler directive should be /almost-free, or /not-quite-free, or /half-arsed-free, or /free-within-limits, or /free-but-read-the-fine-print. What's so special about column 6 and 7 in free form? Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists http://www.flybynight.com.au/ 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 RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.