1. Creating a Rexx program Many programmers start by writing a program which displays the message "Hello world!". Here is how to do that in Rexx... I Write a file called "hello.rexx" containing the following text. Use any I text editor or simply `cat' the text into the file. O Write a file called "hello.cmd" containing the following text. Use any O text editor (for example, E). Note that the text, as with all example text in this guide, starts at the first indented line and ends at the last. The four spaces at the start of each line of text should not be entered. /* This program says "Hello world!" */ say "Hello world!" This program consists of a comment saying what the program does, and an instruction which does it. "say" is the Rexx instruction which displays data on the terminal. The method of executing a Rexx program varies greatly between implementations. I Here is how you execute that file using REXX/imc: I I rexx hello I I Notes about this command: rexx is the name of the interpreter. In order I for this command to work, the interpreter must lie on your current PATH. I If you require more information about this then you should contact the I person who installed REXX on your system. I I The word "hello" which comes after the command "rexx" is the name of your I program. Ordinarily, the interpreter adds ".rexx" to the name you give in I order to construct the name of the file to execute. I O Here is how you execute that file on OS/2: O O hello O When you execute your first Rexx program using the method detailed above, you should see the message "Hello world!" appear on the screen.