home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 18 REXX / 18-REXX.zip / REXXSAMP.ZIP / REXXSAMP.DOC < prev   
Text File  |  1989-12-12  |  2KB  |  42 lines

  1. These are 3 REXX samples for OS/2. I tried to demonstrate
  2. a variety of features and functions so that someone new to the REXX
  3. language can see enough to get an idea what its about. They should
  4. run under the 1.2 EE version of REXX but I don't know if they work
  5. for any other versions.
  6.  
  7. REXXRAND.CMD       Creates a set of random numbers and displays
  8.                    in groups of 2. Extensive error checking for
  9.                    parameters. Type REXXRAND <CR> for help.
  10.  
  11. REXXDIR.CMD        A REXX DIR assist. You give it the file name
  12.                    and the number of lines you can display on your
  13.                    terminal and it handles the scrolling. Type
  14.                    REXXDIR <CR> for help.
  15.                    ( Creates a file REXXDIR.TXT when it runs )
  16.  
  17.  
  18. REXXBEEP.CMD       A REXX Music ( sound is more like it) program.
  19.                    It reads a file and plays the notes in the file
  20.                    on the speaker. Type REXXBEEP ? <CR> for help.
  21.                    ( Uses REXXBEEP.MUS as a default infile )
  22.  
  23.  
  24. REXX in OS/2 does create a tokenized version that it appends to
  25. the file after the CTRL-Z ( EOF ) mark. This happens the first time
  26. you run the program. If you make no changes, it runs the tokenized
  27. version. If you copy or edit, the tokenized version is deleted.
  28.  
  29. Reading external files uses the SAA features. LINEIN for instance
  30. replaced EXECIO on VM and READ on a real old version of REXX I have.
  31. ( If LINEIN isn't recognized, try READ)
  32.  
  33. As I get some more examples done I will pass them along. If you have
  34. any suggestions for new commands send them thru the IBM board to
  35. Bill DICKENSON
  36.  
  37. Thanks
  38.  
  39. P.S.
  40. I did this without a manual. My IBM rep has promised me a manual
  41. "REAL SOON NOW". When I get it I'll write some more ambitious stuff.
  42.