Here’s an example of our shop’s RPG code :

IF wCstTy = ‘TEA’ ;

Means if the customer type indicates a teacher. Cst for customer, Ty for
type, w for local variable.

I would write this way, using a globally defined constant :


I proposed that we create a copybook for such constants so that everyone
would use the same names and to avoid seeing this kind of thing :


My wish was granted, and a copybook has been created. But now, I can’t use
the constant in my example above. I now have to write :

IF wCstTy = gCSTTY_TEA ;

I feel like I’m bashing my head against a brick wall.

Any comments to make me see the error of my ways would be more than welcome.

This thread ...


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

This mailing list archive is Copyright 1997-2020 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].