home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / jsage / zsus / z3help / c.lbr / CLRCST.HZP / CLRCST.HLP
Encoding:
Text File  |  1991-11-18  |  1.9 KB  |  53 lines

  1. ;
  2.                                   CLRCST.COM                                  
  3.  
  4.              Size (recs) CRC   Version    Author/Latest Issue      Disk
  5.                1k (4)    8A0B  1.0        Dreas Nielsen 6/87       Z3COM2
  6.  
  7.   1- Usage  2- Examples of Use                                                
  8.  
  9.  
  10.  
  11.    CLRCST  can  be  used to improve the utility of custom  shells  created  as 
  12. aliases  and  installed  with SHSET.   Standard ZCPR3 does not  allow  memory-
  13. resident  flow  control commands to be processed properly in  this  situation. 
  14. Rather  than  modifying your ZCPR3 code,  you can use CLRCST  to  remedy  this 
  15. defect. 
  16. :1
  17.  
  18.  
  19.    Usage:  Run CLRCST (Clear-Console-Status) before any flow control 
  20.                 commands are executed in the shell-alias.
  21. :2
  22.  
  23.  
  24. Examples of Use:  
  25.  
  26.    a. Create the following alias called TEST:
  27.  
  28.       ECHO DO IT AGAIN?;IF IN;ECHO OK, AGAIN;ELSE;ECHO DONE;FI
  29.  
  30.       and run it with the command:  SHSET TEST
  31.  
  32.       If your  system is  standard ZCPR3, it should halt with an error message 
  33.       (or  possibly  loop  forever)  upon  encountering  the  ELSE  clause (or 
  34.       possibly the IF clause if IF.COM is not available).  If it does,  insert 
  35.       the command CLRCST at the beginning of the alias and try it again. 
  36.  
  37.  
  38.  
  39. Examples of Use (continued):
  40.             
  41.    b. One application of this feature is with FOR/NEXT processing, 
  42.       as shown by the following example alias:
  43.  
  44.                CLRCST
  45.                NEXT VAR
  46.                RESOLVE IF -%VAR=-
  47.                SHCTRL P
  48.                ELSE
  49.                <additional commands, possibly using the variable>
  50.                FI
  51.  
  52.       This  technique  can be applied wherever definite or indefinite  
  53.       command loops are required.