home *** CD-ROM | disk | FTP | other *** search
/ What the Doctor Required - The Freshest December / December.iso / utils / zoc.306 / install.fil / SCRIPT / RXSAMPLE / TUTORIAL / 1_FIRST.ZRX next >
Encoding:
Text File  |  1996-08-27  |  477 b   |  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.