Typing in a Program

About this task

When you type in the following program, use the REXX/CICS editor for files that reside in the REXX File System (RFS).

The name of the program is HELLO EXEC (for now, assume that the file type is exec).
  1. Sign on to a CICS Transaction Server for VSE/ESA terminal by entering CESN and supplying your user ID and password when it is requested.
  2. Clear the screen.
  3. Type:
    edit hello.exec
  4. Type in the program, exactly as it is shown in Figure 1, beginning with /* REXX HELLO EXEC */. Then file it using the EDIT command:
    ====>  file

    Now your program is ready to run.

Figure 1. HELLO EXEC

/* REXX HELLO EXEC     */

/* A conversation      */
say "Hello! What is your name?"
pull who
if who = "" then say "Hello stranger!"
else say "Hello" who

Task Task

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/writpro.html