Question on CL program

0 pts.
Tags:
Development
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!
ASKED: February 14, 2005  8:53 PM
UPDATED: February 15, 2005  8:24 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Fanbot
    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 pointsBadges:
    report
  • DATABASESQL2000
    you can use the return statements taht will return from your current program on the specific condition met.
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following