Knowledge Base

Blog Faq400

Monitoring QSYSOPR Messages: SQL to Retrieve Messages and Replies

blog
Last Updated on 7 November 2024 by Roberto De Pedrini I take inspiration from a response by Michael Mayer on the Midrange.com mailing lists to someone who asked how to monitor the messages in QSYSOPR and their corresponding replies. With this simple SQL query, it is possible to check the messages from a specific day or a defined period, obtaining a list of the messages and their corresponding replies, along with the timestamp of both; SELECT A.MESSAGE_TIMESTAMP AS "Date/Time of Error Msg", A.MESSAGE_ID AS "Msg ID", A.FROM_JOB AS "Job Generated Error Msg", A.MESSAGE_TEXT AS "Msg Text", B.MESSAGE_TIMESTAMP AS "Reply Date/Time", SUBSTR(B.MESSAGE_TEXT, 1, 10) AS "Reply", A.FROM_USER AS "Reply by …

Riservato agli iscritti

Per leggere l'articolo completo serve un account Faq400: è gratuito e ti dà accesso anche a Willi, l'assistente AI, e a tutta la Knowledge Base.

Prova a chiederlo a Willi

Willi, l'assistente AI della community, risponde a queste domande usando questo articolo e le altre fonti Faq400. È gratuito: iscriviti e ricevi subito la risposta.

Chi legge questo, legge anche