I believe this is the big-endian vs little-endian problem.

If I remember right, the pc stores numbers in little-endian format but the 
as/400 stores in big-endian format.

I think what you need is:

D GENERIC_ACCESS    C      x'000000008'
D GENERIC_ACCESS2  C       x'2'

I am trying to remember this off the top of my head, because I know i've seen 
it before, so I might be wrong on the RPG side.  But it is something to that 

Hope this helps.
Cary Phillips

"Shannon ODonnell" <> wrote:
>This is a multi-part message in MIME format.
>[ Picked text/plain from multipart/alternative ]
>Can someone (a VB Someone) tell me how to define the equivalent constant in 
>RPGIV for a VB Constant.
>For example, if I have a VB constant defined like:
>GENERIC_ACCESS       &H80000000
>How do I define those equivalents in RPGIV?  I thought it might be
>D GENERIC_ACCESS    C      x'800000000'
>D GERERIC_ACCESS2  C       x'02'
>But that doesn't seem to be correct.
>Hoping someone can help!
>Shannon O'Donnell
>This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
>To post a message email:
>To subscribe, unsubscribe, or change list options,
>or email:
>Before posting, please take a moment to review the archives

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