I have a copy command in my CL program.
I have specified tofile and tomember parameters. I have given CRTFILE(*NO) so that I don't want to create a source file if it is not existing.
I want to show a message "Sourcefile is invalid" when the source file is
not an existing one. I want to show the message directly at the bottom of the screen(not as a BRK message or onto the log). How can I achieve this?
Capturing the MONMSG and showing the message using SNDPGMMSG shows the message on the log.
Here is the CPYF command:
CPYF FROMFILE(QTEMP/SRCTMP) + TOFILE(&LIBRARY/&SRCFILE) TOMBR(&MEMBER) + MBROPT(*REPLACE) CRTFILE(*NO) FMTOPT(*NOCHK)
April 19, 2013 5:27 AM
April 19, 2013 12:01 PM