× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



>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.

Wow, did I mess that note up.  Yes of course, only auto report sorted the
specs in the right order.  I _should_ have said that modern RPG versions
disregard the spec in column 6, so this compiles:

C/copy qrpglesrc,stdhspec
d smallint        s              5i 0
c                   eval      smallint = 99999

There isn't any sorting happening; the H specs get copied in before the D
specs.  Sorry for that.

>Reeve's underlying problem is, I suspect,
>the P before the /COPY.

Exactly.  The SQL precompiler thinks that the P is out of sequence, but the
RPG compiler disregards the P because it's on a /COPY.

>Why do people do that?

Force of habit I would guess.  I was going to say that older (S/36) RPG
compilers insisted on it and there's a lot of S/36 code that's been
'converted' to S/38 and then to RPG IV.  I was going to say that, but in
lieu of previous comments I've made I'll shut up!

Regards to the antipodeans!
  --buck


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.