home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / rgiserv.zip / rgi_t5.cmd < prev    next >
OS/2 REXX Batch file  |  1996-05-16  |  2KB  |  43 lines

  1. /* Test the HTML Subcommand */
  2. Call RGIUtils '-ct text/html'
  3. Address HTML
  4. '<html><head><title>'       /* Introduce the document */
  5. 'RGI Installation Test'     /* as part of the RGI */
  6. '</head></title>'           /* Installation Test */
  7. '<body>'
  8. '<em>This screen is brought to you by RGI_T5.CMD</em>'
  9. '<p>This document tests the HTML Subcommand environment Handler.'
  10. '<p>First we issue the Rexx Statement:'
  11. '<p><ce>'
  12. '<tt>Address HTML'
  13. '</tt></ce>'
  14. '<p>From this point on, till we want to request services from another subcommand'
  15. 'handler such as OS/2, we do not need to use the Say statement or the LineOut'
  16. 'function to send text to the browser.'
  17. '<p>All statements that cannot be handled by Rexx are passed to the HTML Subcommand'
  18. 'Handler which sends the entire string to the web browser through STDOUT.'
  19. '<p>Rexx statements may be interspersed. For example, the lines:'
  20. '<p><tt>'
  21. "<br>timenow=left(time(),5)"
  22. "<br>'Today is' date() and the time is' timenow'.'"
  23. "<br>'We are running now in the' address() 'environment.'"
  24. "<br>Address CMD"
  25. "<br>Say 'After issuing the Address CMD command, we are routing literals again to OS/2'"
  26. "<br>Say 'through the' Address() 'Environment Handler.'"
  27. '</tt><p>will display as:'
  28. '<p><tt>'
  29. timenow=left(time(),5)
  30. '<br>Today is' date() 'and the time is' timenow'.'
  31. '<br>We are running now in the' address() 'environment.'
  32. Address CMD
  33. Say '<br>After issuing the "Address CMD" command, we are routing literals again to OS/2'
  34. Say '<br>through the' Address() 'Environment Handler and we must use Say to send to the browser.'
  35. Address HTML
  36. '</tt>'
  37. '<p>Well... If you have come this far, RGI is working as advertized.'
  38. '<p>If you have any problems or suggestions, send a message to me at'
  39. '<address>mdd01@ibm.net</address>'
  40. '<p><strong>Good luck!</strong>  Albert'
  41. '</body>'
  42. '</html>'
  43.