Uppercase – Lowercase

Simple utility to convert uppercase to lowercase and vice versa.

Continue reading »

Date Conversion Procedures

Ah, dates -- some procedures for date stuff. Can use as copysrc or made into a service program. Includes date validation (convert to *ISO and monitor) getting current date in different formats, converting from one format to another, checking for leap year, getting day of week, getting month name or abbreviation, and last day of month. Note that some procedures are dependent on others. Also, always validate 'from' date before trying to convert to a different format.

Continue reading »

Message Handling Utility Program

Easy way to handle messages in an interactive program. Use an existing message file (MSGF) or create a new one. (WRKMSGF)

Continue reading »

Using CL commands in RPG

Sometimes you need to execute CL commands from within an RPG program.

Continue reading »