Incrementing a 2-Character Alphanumeric Code in RPG Free
Incrementing a 2-Character Alphanumeric Code in RPG Free Today I’m sharing a small but useful RPG Free program to increment a 2-character alphanumeric code using the sequence A..Z, 0..9 . The program also handles wrap-around after "99", restarting at "AA". Source Code You can copy and paste the code directly from the field below: **free // /*! // * @file RAAINCR.RPGLE // * @brief Increment a 2-char alphanumeric code (A..Z,0..9) with wrap-around after '99' -> 'AA' // * @details The sequence order is A..Z then 0..9 (36 positions). If input contains invalid chars, // * errorCode is set to 'INVALIDVAL' and outputValue is blanked. // * // * @param[in] inputValue char(2) const Input code to increment // * @param[out] outputValue char(2) Resulting incremented code // * @param[out] errorCode char(10) Error code (e.g. 'INVALIDVAL') // * // * @return void // * @author Aldo SUCCI // ...