0 pts.
 Question on CL program
Hi. Is there a way to terminate a CL program abnormally when a certain condition is met? Here's the flow of the program: 1. read a txt file 2. if record = '1', end program normally 3. if record = '0', end program abnormally I need suggestions on how to do step 3. Thanks!

Software/Hardware used:
ASKED: February 14, 2005  8:53 PM
UPDATED: February 15, 2005  8:24 AM

Answer Wiki:
SNDPGMMSG MSGID(aaannnn) MSGTYPE(*ESCAPE) By sending an escape message you end your program immediately and the previous program receives your message as an error, which it has to handle. Joep Beckeringh
Last Wiki Answer Submitted:  February 15, 2005  3:07 am  by  Joepbeckeringh   0 pts.
All Answer Wiki Contributors:  Joepbeckeringh   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Additional additive is to dump the cl program. This will cause the generation of dump logs which should attract the attention of the operator.

 0 pts.

 

you can use the return statements taht will return
from your current program on the specific condition met.

 0 pts.