Contents - Index


 

Use ProcEndIf within a procedure to end the current ProcIfThen or ProcElse "truth" condition and restore "truth" condition to a "TRUE" state for subsequent processing.

 

ProcEndIf has no operands.

 

Return Codes

 

OK Successful.

 

Examples

 

The following example shows the ProcElse command used within a procedure.

 

 ------------------------------------------------------------------------

 DECLARE MEM,CHAR,33,V

 DECLARE DEST,CHAR,4,V

 PARSE MEM,DEST

 IFTHEN DEST,EQ,'LIBR'

     -

     -

 ELSE

     IFTHEN SIBUSER EQ LARS

        SET MEM ACCT1

        -

     ENDIF

     -

     -

 ENDIF

 ------------------------------------------------------------------------