REXX Scripts
Articles in this part are about programming in REXX, be it on IBM z/OS, be it on Windows, or Linux.
- Details
Looking for a clever way to display purpose and usage information to the caller of your REXX script? What I describe here is a way to use the documentation that may already be there for just this purpose.
A good programmer puts some effort in good documentation of the software. Scripts should be no exception. So, you start your REXX scripts with a couple of comment lines to describe the purpose of the script. You also document any parameters and exit values. Excellent.
Learn how to use this very description at the start of you REXX script to display usage information to the user. You might do this when required parameters are missing, or if there is any error in the parameters provided.