home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / db22re.zip / HELLO.CMD < prev    next >
OS/2 REXX Batch file  |  1993-03-09  |  1KB  |  30 lines

  1. /*
  2.  ┌──────────────────────────────────────────────────────────────────┐
  3.  │  Name       : hello.cmd                                          │
  4.  │  Purpose    : an elementary rexx program                         │
  5.  │  Platform   : DB2/2                                              │
  6.  │  Author     : Jeff Fisher                                        │
  7.  │               IBM Toronto Development Lab                        │
  8.  │  Disclaimer : This "sample" code is for demonstrations only, no  │
  9.  │               warrenties are made or implied as to correct       │
  10.  │               function. You should carefully test this code in   │
  11.  │               your own environment before using it.              │
  12.  │                                                                  │
  13.  └──────────────────────────────────────────────────────────────────┘
  14. */
  15.  
  16.  
  17. Start:
  18.     say
  19.     say 'A conversation!'
  20.     say
  21.  
  22. Begin:
  23.     say 'Hello! What is your name?'
  24.     pull who
  25.  
  26.     if who = ' ' then say 'Hello Stranger'
  27.     else say 'Hello' who
  28.  
  29.     exit
  30.