Strangely enough I just helped someone out in a similiar situation (converting C to RPG with bit shifts, masking, etc.). Feel free to contact me offline if you're in need of some help. One little RPG procedure took care of most of it.
Lim Hock-Chai <Lim.Hock-Chai@xxxxxxxxxxxxxxx> wrote:
Not by choice. The engineer that created the application to store our
paging info has left the company. The engineer team has decided to no
longer support this application (Most of them are AIX programmers. They
are not interesting in getting into iseries). I happen to be the one
that got assign to take care of this application. My plan is to convert
it into RPG. However, this application stores data in iseries file in
bit format and as you know, RPG is not every good at that. A 4 bytes
field in the file might be divided into 6 different pieces of info where
the first bit might represent a flag, the next 3 bit might represent a
Behalf Of Simon Coulter
Sent: Wednesday, June 11, 2008 5:20 PM
To: C programming iSeries / AS400
Subject: Re: [C400-L] basic c question about char *
If only C understood fixed-length or varying character data life would
be so much easier. Why use a compiler that does so little for you?
As an Amazon Associate we earn from qualifying purchases.