Case Selection Structure


Case statement:

 DO CASE of variable   case1:     statement     BREAK   case2:     statement   other:     statement ENDDO 

The PDL DO CASE construct is modified with the addition of a BREAK. This allows cases to fall through to the next case if there is no BREAK.

Example:

 DO CASE of days overdue   30:     Send nice letter     BREAK   60:     Send not nice letter     BREAK   90:     Send nastygram     BREAK   120:     Refer to collection agency   other:     Mourn ENDDO 


Using XML with Legacy Business Applications
Using XML with Legacy Business Applications
ISBN: 0321154940
EAN: 2147483647
Year: 2003
Pages: 181

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net