home *** CD-ROM | disk | FTP | other *** search
/ Gold Fish 3 / goldfish_volume_3.bin / files / fish / disks / d1037.lha / Programs / JACOsub / rexx / begintime.jsrx < prev    next >
Encoding:
Text File  |  1994-01-08  |  533 b   |  20 lines

  1. /* JACOsub BEGINTIME command demonstration.
  2.    This command changes the begin time for playing a script.
  3.  
  4.    BEGINTIME returns RESULT=0 if successful, or RESULT=1 if the time
  5.    string had a bad format, or 2 if there was a resolution conflict.
  6. */
  7.  
  8. if ~arg() then do ; say 'Need arguments H:MM:SS.FF and [counts/sec]' ; exit 1 ; end
  9. parse arg starttime secunits .
  10. options results
  11.  
  12. address 'JACOsub'
  13. 'BEGINTIME' starttime secunits
  14.  
  15. if result > 0 then
  16.     say 'error setting begin time'
  17. else
  18.     say 'begin time set successfully'
  19. exit result
  20.