home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / zow311.exe / INSTALL.FIL / SCRIPT / RXSAMPLE / TUTORIAL / 1_FIRST.ZRX next >
Text File  |  1996-08-26  |  477b  |  22 lines

  1. /* REXX */
  2. /* ^^^^^^ REXX programs always begin with /* REXX */ on the first line */
  3.  
  4. /* clear the screen */
  5. CALL ZocCls
  6.  
  7. /* set a variable */
  8. WHO= "World"
  9.  
  10. /* output text and variable via string concatenation operator: || */
  11. CALL ZocWriteln "Hello "||WHO||"!"
  12.  
  13. /* Ask user for his/her name */
  14. who= ZocAsk("What is your name")
  15.  
  16. /* print some text to the ZOC window */
  17. /* (this time we're using REXX's internal SAY command) */
  18. SAY "Hello "||WHO||"!"
  19.  
  20. EXIT
  21.  
  22.