CICS: CICS/6000 application writing to the console.msg file

ITEM: RTA000049941



Q:  Question:                                                                   
                                                                                
    Can a user application write to the console.msg file?  We                   
    have tried to do this with an echo in the program which does                
    write to the message file but then CICS overlays the user                   
    text with its subsequent messages.  Can you explain how we                  
    should do this.                                                             
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
R:  Response:                                                                   
                                                                                
    The CICS/6000 product logs its messages to a file called                    
    "console.msg" in the /var/cics_regions/"region"/ directory.                 
    This file may be written to by CICS/6000 applications as a                  
    means for debugging or logging information.                                
                                                                                
    Any data written by a CICS/6000 transaction to its AIX                      
    standard error output destination (stderr) will result in                   
    the data being written to the console.msg file.                             
                                                                                
    From a C language application, this may be coded as follows:                
                                                                                
       #include                                                        
                                                                                
    Other C commands                                                            
                                                                                
       fprintf(stderr, "Data to be written ....");                              
                                                                                
    From a COBOL application, the coding is as follows:                         
                                                                               
       DISPLAY "Data to be written ...." UPON SYSERR.                           
                                                                                
    Relevant AIX and COBOL documentation should be consulted for                
    specific parameters of the "DISPLAY" and "fprintf"                          
    commands.                                                                   
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
 *====================================================*                    
 | This entry has been edited for Library/INFO status.|                    
 *====================================================*                    
 NK ( upgrader: D73FA09                                                    
                                                                                
---------- ---------- ---------- --------- ---------- ----------                
                                                                                
                                                                               
This item was created from library item Q673270      CWLXX                      
                                                                                
Additional search words:                                                        
APPLIC APPLICATION CICS CICS6000 CONSOLE.MSG CWLXX DASYS FILE FILES             
NK NOV94 OZNEW WRITING 6000                                                     
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                               


WWQA: ITEM: RTA000049941 ITEM: RTA000049941
Dated: 09/1996 Category: KIX6000
This HTML file was generated 99/06/24~12:43:19
Comments or suggestions? Contact us