5 pts.
 AS/400 CL program – 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)

Software/Hardware used:
ASKED: November 30, 2008  6:54 PM
UPDATED: March 3, 2011  11:41 AM

Answer Wiki:
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.
Last Wiki Answer Submitted:  December 1, 2008  10:31 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

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,055 pts.

 

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 pts.