Create PF for each MSGQ. .....A*. 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6[*]************** Beginning of data ************************** A* File to copy SPOOLS in A R FIRSTR A FIELDS 142A TEXT('MYFIELD')[*]***************** End of data ***************************** Execute the following CL commands: (You can create a little CL program too). DSPMSG MSGQ(QSYSMSG) OUTPUT(*PRINT) CPYSPLF FILE(QPDSPMSG) TOFILE(MYLIB/MYFILE1) SPLNBR(*LAST) MBROPT(*REPLACE) DSPMSG MSGQ(QSYSOPR) OUTPUT(*PRINT) CPYSPLF FILE(QPDSPMSG) TOFILE(MYLIB/MYFILE2) SPLNBR(*LAST) MBROPT(*REPLACE) That's all. The only problem is, that in the file you have the Print File Headers, but with CPYF command or QRYDFN that records can be ommited.
Unconfigured Ad Widget
Collapse
Announcement
Collapse
No announcement yet.
How to port Messages from QSYSMSG and QSYSOPR to DB2
Collapse
X
Comment