AS/400 CL program – MSGW status

5 pts.
Tags:
AS/400 Control Language
CL
CL/400
Message Waiting status
MSGW status
My requirement is I want to ensure that CL program enter into MSGW status after processing all the statements. What are the easiest ways to achieve this? (Without calling any programs from the CL)

Answer Wiki

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

Hi,

I’m not sure exactly what you mean. If you want your CL program to crash with an error message, you could just try to delete a file which doesn’t exist in your QTEMP library :-

DLTF QTEMP/NOFILE

Then your program should wait until you answer the message “file not found”.

Or do you want to send a message and wait for a reply?

Regards,

Martin Gilbert.

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
  • bvining
    Assuming that DSPW is just as good as MSGW, try: SNDPGMMSG MSG('Press Enter to Continue') TOPGMQ(*EXT) MSGTYPE(*INQ) Otherwise please provide more information on your requirement.
    6,495 pointsBadges:
    report
  • ArunMohapatra
    Does "Copy From Stream File (CPYFRMSTMF)" command support mixed DBCS and SBCS on AS/400 V5R4. The requirement is to copy the data having english and chinese characters using CPYFRMSTMF command. Please reply on urgent basis..
    10 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