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



Shannon,

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

Hope this helps.
Cary Phillips


--------------------------------------------------------
"Shannon ODonnell" <shannondiane27@hotmail.com> wrote:
>This is a multi-part message in MIME format.
>--
>[ Picked text/plain from multipart/alternative ]
>Hi,
>
>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
>or
>GENERIC_ACCESS2      &H2
>
>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!
>
>Thanks!
>
>Shannon O'Donnell
>_______________________________________________
>This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
>To post a message email: MIDRANGE-L@midrange.com
>To subscribe, unsubscribe, or change list options,
>visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
>or email: MIDRANGE-L-request@midrange.com
>Before posting, please take a moment to review the archives
>at http://archive.midrange.com/midrange-l.
>




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.