History log Message Queue in AS400

History log Message Queue in AS400
History log Message Queue in AS400, QHST, History log message queue, history log msgq, qhst msgq, msgq, message queue, types of message queue, types of msgq, as400, ibmi, introduction, what, what is, how, about
History log Message Queue in AS400

History log Message Queue

History Log Message Queue (QHST) is used for any job in the system to have a record of high-level system activities.

                              Work with Objects                               
                                                                              
Type options, press Enter.                                                    
  2=Edit authority        3=Copy   4=Delete   5=Display authority   7=Rename  
  8=Display description   13=Change description                               
                                                                              
Opt  Object      Type      Library     Attribute   Text                       
     QHST        *MSGQ     QSYS                                               
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                              
                                                                        Bottom
Parameters for options 5, 7 and 13 or command                                 
===> WRKOBJ QHST                                                              
F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F11=Display names and types  
F12=Cancel   F16=Repeat position to   F17=Position to                         

Example for sending a message to the History Log(QHST) Message queue

Specify QHST in the TOMSGQ parameter.

SNDMSG   MSG('Hello This is AS400andSQLTricks.com')  TOMSGQ(QHST)

To see the messages received at the QHST message queue. Use the following command

DSPLOG PERIOD(('12:08:30' '12/21/21') ('12:08:31' '12/21/21'))  

prompt above command using the F4 key

                             Display Log (DSPLOG)          
                                                           
Type choices, press Enter.                                 
                                                           
Log  . . . . . . . . . . . . . . LOG            QHST       
Time period for log output:      PERIOD                    
  Start time and date:                                     
  Beginning time . . . . . . . .              > '12:08:30' 
  Beginning date . . . . . . . .              > '12/21/21' 
  End time and date:                                       
  Ending time  . . . . . . . . .              > '12:08:31' 
  Ending date  . . . . . . . . .              > '12/21/21' 
Output . . . . . . . . . . . . . OUTPUT         *          
                                                           
                         Display History Log Contents                         
                                                                              
*SIGNON server job 368945/QUSER/QZSOSIGN processing request for user AASHIK o 
User AASHIK from client 165.225.104.59 connected to job 368376/QUSER/QZDASOIN 
*SIGNON server job 368945/QUSER/QZSOSIGN processing request for user AASHIK o 
User AASHIK from client 165.225.104.59 connected to job 368687/QUSER/QZDASOIN 
User AASHIK from client 165.225.104.59 connected to job 368375/QUSER/QZDASOIN 
Session to device QPAD120907 ended normally.                                  
Job 369044/QTCP/QPAD120907 started on 12/21/21 at 12:09:21 in subsystem QBATC 
Vary off completed for device QPAD120907.                                     
Hello This is AS400andSQLTricks.com                                           
Description for device QPAD120907 deleted.                                    
Job 369044/QTCP/QPAD120907 ended on 12/21/21 at 12:09:22; 0,007 seconds used; 
Job 368902/USRVEDAN/DMVEOPEN ended on 12/21/21 at 12:09:25; 0,097 seconds use 
                                                                                                                  

Related Post

Post a Comment

© AS400 and SQL Tricks. All rights reserved. Developed by Jago Desain