|
Waaaaaaaaayyyyy back when (S/3 days) we used bit flag fields to conserve disk space also. Joel Fritz <JFritz@xxxxxxxxxxxxxxxx> wrote: I've really never thought about it till today, but RPG didn't have an integer data type until RPGIV. Languages that use bit ops a lot use integers as an array of flags or for something else where the value of particular bits might be useful. Often it's for conserving space. Using bit ops without an integer data type is painful. I've seen biton and bitoff used for one thing in RPG code that I've worked on. It was someone's idea of a good way to conserve disk space in a single field nearly twenty years ago. Because it happened to be in a file that was important to many different facets of the business the methods for assigning the value and retrieving it have been copied over and over again to different programs. > -----Original Message----- > From: rpg400-l-bounces@xxxxxxxxxxxx > [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Campin > Sent: Monday, June 13, 2005 3:05 PM > To: RPG programming on the AS400 / iSeries > Subject: RE: Do you use BITOF? > > I took the same test. I thought it was a joke and it was > better than some I have taken lately. Everyone of the test I > have taken lately have been called ILE RPG or RPG IV and all > they were about was RPG III and some of them looked like > tests for RPG II. > > The only good test I ever took was the IBM RPG certification > several years ago and I was surprised how much ILE RPG it > had. I had been doing ILE for 2 years already so it was easy for me. > > Used BITON and BITOFF in RPG III to set Hex values years ago. > IBM had example of how to do without BITON and BITOFF so have > functions that do that now. That is only use I ever found for > them. Like I said, half the questions on the Brainbench > should never been on the test. > ***************************** NOTICE: All e-mail sent to or from this e-mail address will be received or otherwise recorded by The Sharper Image corporate e-mail system and is subject to archival, monitoring, and review by and/or disclosure to Sharper Image security and other management. This message is intended only for the use of the addressee and may contain information that is privileged and confidential. The contents of this message may contain personal views which are not the views of The Sharper Image. If you are not the intended recipient, dissemination of this communication is prohibited. *****************************
As an Amazon Associate we earn from qualifying purchases.
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.