;
                                  CLRCST.COM                                  

             Size (recs) CRC   Version    Author/Latest Issue      Disk
               1k (4)    8A0B  1.0        Dreas Nielsen 6/87       Z3COM2

  1- Usage  2- Examples of Use                                                



   CLRCST  can  be  used to improve the utility of custom  shells  created  as 
aliases  and  installed  with SHSET.   Standard ZCPR3 does not  allow  memory-
resident  flow  control commands to be processed properly in  this  situation. 
Rather  than  modifying your ZCPR3 code,  you can use CLRCST  to  remedy  this 
defect. 
:1


   Usage:  Run CLRCST (Clear-Console-Status) before any flow control 
                commands are executed in the shell-alias.
:2


Examples of Use:  

   a. Create the following alias called TEST:

      ECHO DO IT AGAIN?;IF IN;ECHO OK, AGAIN;ELSE;ECHO DONE;FI

      and run it with the command:  SHSET TEST

      If your  system is  standard ZCPR3, it should halt with an error message 
      (or  possibly  loop  forever)  upon  encountering  the  ELSE  clause (or 
      possibly the IF clause if IF.COM is not available).  If it does,  insert 
      the command CLRCST at the beginning of the alias and try it again. 



Examples of Use (continued):
            
   b. One application of this feature is with FOR/NEXT processing, 
      as shown by the following example alias:

               CLRCST
               NEXT VAR
               RESOLVE IF -%VAR=-
               SHCTRL P
               ELSE
               <additional commands, possibly using the variable>
               FI

      This  technique  can be applied wherever definite or indefinite  
      command loops are required.