I want to get the QSYSOPR messages for a purpose like whenever a message comes in QSYSOPR msgq it should get stored in a file with a date and time. Like for example when a job comes in a MSGW it also reflects in a QSYSOPR MSGQ with waiting for reply. it should stored in a file and when we reply that message then also it should stored in a file.
Can anyone help?
here's a save file with a program i use to monitor for messages in QSYSOPR. it uses MMAIL to email messages to sys admins. it only looks for inquiry messages which it seems you're asking for. you should be able to mod the code to suit your needs. the save file is at v5r2m0.
I'm not anti-social, I just don't like people -Tommy Holden
Please try with RCVMSG command.
Thanks for your reply.
They are really valuable for me but I need some automation in which whenever an inquiry message (MSGW) comes to the QSYSOPR queue it should also be stored somewhere from where I can access it at day end. I dont want to run any program side by side which will monitor for MSGW in particular period of time and store (that would be resource heavy).