Information Systems:Error messages on IBM i

From uniWIKI
Revision as of 15:22, 26 October 2015 by Sheilav (talk | contribs) (Created page with "Email message received, with subject ‘CPA0701’ – &3 received by &1 at &4. (C D I R) RUNQRY SHEILAUSER696377QCLXERR 000011...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Email message received, with subject ‘CPA0701’ –

&3 received by &1 at &4. (C D I R) RUNQRY SHEILAUSER696377QCLXERR

                                    00001140401133127           554007

The text may be truncated, and parameters the system has included with the error message (&3, &1, &4) are missing.

Look at the operator message queue to get more information (DSPMSG QSYSOPR).

                              Work with Messages                               

Messages in: QSYSOPR System: BART

Type options below, then press Enter.                                          
  5=Display details and reply                                                  
                                                                               
Opt   Message                                                                  
                           Messages needing a reply                            
 5    CPF2817 received by ASSET01 at 1900. (C D I R)                           
                                                                               
                         Messages not needing a reply                          
 _    Job message queue for 693634/QTMHHTTP/WEBSMART has been wrapped.         
 _    Job message queue for 693543/EODJOB/FTP_ORDERS has been wrapped.         
 _    Service Agent is analyzing your system product activity log entries.     
                                                                               

Key ‘5’ in front of the message and press enter.

                        Additional Message Information                         
                                                                               
Message ID . . . . . . :   CPA0701       Severity . . . . . . . :   99         
Message type . . . . . :   Inquiry                                             
Date sent  . . . . . . :   04/01/14      Time sent  . . . . . . :   13:31:27   
                                                                               
Message . . . . :   CPF2817 received by ASSET01 at 1900. (C D I R)             
Cause . . . . . :   Control language (CL) program ASSET01 in library XX2480BP  
  detected an error at statement number 1900. Message text for CPF2817 is:     
  Copy command ended because of error.                                         
Recovery  . . . :   This inquiry message can be avoided by changing the        
  program. Monitor for the error (MONMSG command) and perform error recovery   
  within the program. To continue, choose a reply value.                       
Possible choices for replying to message . . . . . . . . . . . . . . . :       
  C -- Cancel the CL program.                                                  
  D -- Dump the CL program variables and cancel the CL program.                
  I -- Ignore the failing command.                                             
  R -- Try the failing command again.                                          
                                                                               

Type reply below, then press Enter.

Reply  . . . .  ____________________________________________________                                                               

Press F9 –

                           Display Message Details                             
                                                                               
Message ID . . . . . . :   CPA0701       Severity . . . . . . . :   99         
Date sent  . . . . . . :   04/01/14      Time sent  . . . . . . :   13:31:27   
Message type . . . . . :   Inquiry                                             
From . . . . . . . . . :   SHEILAUSER    CCSID  . . . . . . . . :   65535      
                                                                               
From job . . . . . . . . . . . :   RUNQRY                                      
  User . . . . . . . . . . . . :     SHEILAUSER                                
  Number . . . . . . . . . . . :     696377                                    
                                                                               
From program . . . . . . . . . :   QCLXERR                                     
                                                                               
To message queue . . . . . . . :   QSYSOPR                                     
  Library  . . . . . . . . . . :     QSYS                                      
                                                                               
Time sent  . . . . . . . . . . :   13:31:27.554007                             

This tells that user SHEILAUSER ran program ASSET01, which had an error copying something. Because the message came to QSYSOPR, the job was running in batch; if it was running in interactive, the message would have gone to the user.

To look at the job, key in WRKACTJOB and press enter. Press page down until you come to the subsystem QBATCH. Find a job in status MSGW (message wait)

                            Work with Active Jobs                     BART     
                                                            04/01/14  13:31:31 
CPU %:    30.9     Elapsed time:   02:33:05     Active jobs:   570             
                                                                               
Type options, press Enter.                                                     
  2=Change   3=Hold   4=End   5=Work with   6=Release   7=Display message      
  8=Work with spooled files   13=Disconnect ...                                
                    Current                                                    
Opt  Subsystem/Job  User        Type  CPU %  Function        Status            
 _     OMSPOSTPRD   EODJOB      BCH      .0  DLY-120          DLYW             
 _   QASE5          QSYS        SBS      .0                   DEQW             
 _   QBATCH         QSYS        SBS      .0                   DEQW             
 5     RUNQRY       SHEILAUSER  BCH      .0  PGM-ASGC900      MSGW             
 _     SUM_REPORT   JEREMYM     BCH      .3  PGM-ASGC900      RUN              
 _   QCMN           QSYS        SBS      .0                   DEQW             
 _     EXODUS       CATPULTADM  EVK      .4                   DEQW             
 _     EXODUS       CATPULTADM  EVK      .0                   SELW             
 _   QCTL           QSYS        SBS      .0                   DEQW             
                                                                               

Key a 5 in front of this job, and press enter. Key in 10 and press enter to display the job log. Press F10 to see all messages, and press F18 to go to the end.

                             Display All Messages                              
                                                            System:   BART     
Job . . :   RUNQRY        User . . :   SHEILAUSER    Number . . . :   696377   
                                                                               
    Member DSPDBR added to output file DSPDBR in library QTEMP.                
    1 records added to member DSPDBR in file DSPDBR in QTEMP.                  
    File SROQYIFC in library QTEMP not found.                                  
    Object SROQYIFC in QTEMP type *FILE created.                               
    1 objects duplicated.                                                      
    End of file detected for file DSPDBR in QTEMP.                             
    Object DSPDBR in QTEMP type *FILE deleted.                                 
    File ASSET01 in QTEMP was created.                                         
    File system error occurred.  Error number 3025.                            
    Copy command ended because of error.                                       
    Function check. CPF2817 unmonitored by ASSET01 at statement 1900,          
      instruction X'0023'.                                                     
    CPF2817 received by ASSET01 at 1900. (C D I R)                             
                                                                               

Position your cursor on the line that first mentions an error, and press F1 (help).

                        Additional Message Information                         
                                                                               
Message ID . . . . . . :   CPFA0D4       Severity . . . . . . . :   40         
Message type . . . . . :   Diagnostic                                          
Date sent  . . . . . . :   04/01/14      Time sent  . . . . . . :   13:31:27   
                                                                               
Message . . . . :   File system error occurred.  Error number 3025.            
Cause . . . . . :   File system experienced an unexpected error. Error number  
  3025 was received.                                                           
Recovery  . . . :   If there are previously listed messages in the job log,    
  perform the recovery for those messages.                                     
    If the error number is a value other than 0, determine the meaning of      
  error number and perform the appropriate recovery for that error. See the    
  Technical Description for how to determine the meaning of the error number.  
    Then try the operation again.                                              
    If the problem continues or cannot be corrected, use the Work with Problem 
  (WRKPRB) command to work with any system detected problems that may have     
  been logged. If there was not a system detected problem, use the Analyze     
  Problem (ANZPRB) command to report the problem.                              
Technical description . . . . . . . . :   Error Number 3025 was received. To   
  determine the meaning of the error number, do one of the following:          
    - Use DSPMSGD CPExxxx, where xxxx is the error number to display an error  
  message containing more information about this error number.                 
    - Display the following file that contains descriptions of error numbers:  
  QSYSINC/SYS, member ERRNO.                                                   
                                                                               

On a command line, key in DSPMSGD CPE3025, and press enter.

                           Select Message Details to Display                        
                                                            System:   BART     
Message ID . . . . . . . . . :   CPE3025                                       
Message file . . . . . . . . :   QCPFMSG                                       
  Library  . . . . . . . . . :     QSYS                                        
Message text . . . . . . . . :   No such path or directory.                    
                                                                               
                                                                               
Select one of the following:                                                   
                                                                               
     1. Display message text                                                   
                                                                               
     5. Display message attributes                                             
                                                                               
    30. All of the above                                                       

Now we know that SHEILAUSER ran ASSET01, which tried to copy a file to or from a directory that didn’t exist. Using the information ‘Control language (CL) program ASSET01 in library XX2480BP detected an error at statement number 1900’, we can see exactly what the program was trying to do.

On a command line, key in WRKMBRPDM and press F4.

                    Work with Members Using PDM (WRKMBRPDM)                    
                                                                               
Type choices, press Enter.                                                     
                                                                               
File . . . . . . . . . . . . . .   qclsrc        *PRV, name                    
  Library  . . . . . . . . . . .     xx2480bp    *PRV, name, *LIBL, *CURLIB    
Member . . . . . . . . . . . . .   asset01       *ALL, name, *generic*...      
Member type  . . . . . . . . . .   *ALL          *ALL, type, *generic*...      
                                                                               
                                                                                                                                                                                                                                                                                                                                                                              

Press enter. Then key 5 in front of the program, and press enter again.

Columns . . . : 1 80 Browse XX2480BP/QCLSRC

SEU==>                                                                                                                     ASSET01 
FMT **  ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5 ...+... 6 ...+... 7 ...+... 8                                            
       *************** Beginning of data *************************************************************   

0001.00 /****************************************************************************/ 050302 0002.00 /* ASSET01 - BUILD CSV FILE OF ASSET MANAGEMENT INVENTORY, AND COPY TO IFS */ 091109 0003.00 /* */ 091109 0004.00 /* 2009NOV SV */ 091109 0005.00 /****************************************************************************/ 050302 0006.00 050302 0007.00 PGM 050302 0008.00 050613 0009.00 DCL VAR(&FILE) TYPE(*CHAR) LEN(60) 050613 0010.00 DCL VAR(&USER) TYPE(*CHAR) LEN(10) 050613 0011.00 050613 0012.00 RTVJOBA USER(&USER) 050613 0013.00 CHGVAR VAR(&FILE) VALUE('uwd staging/' || &USER + 091109 0014.00 *TCAT '/asset01.csv') 091109 0015.00 050302 0016.00 RUNQRY QRY(ASSET01) QRYFILE((*LIBL/AAOABI) + 091109 0017.00 (*LIBL/SRONAM) (*LIBL/AAOLOC) (*LIBL/AAOATI)) 091109 0018.00 050302 0019.00 CPYTOIMPF FROMFILE(UP1480BFVA/ASSETHDR01) + 131003 0020.00 TOSTMF(&FILE) MBROPT(*REPLACE) + 131003 0021.00 STMFCODPAG(*PCASCII) RCDDLM(*CRLF) + 131003 0022.00 DTAFMT(*FIXED) 131003 0023.00 091109 0024.00 CPYTOIMPF FROMFILE(QTEMP/ASSET01) TOSTMF(&FILE) + 091109 0025.00 MBROPT(*ADD) STMFCODPAG(*PCASCII) + 091109 0026.00 RCDDLM(*CRLF) 091109 0027.00 ENDPGM 050302

       ****************** End of data *****************************************************************   
                                                                                                                                   

The folder ‘uwd staging/sheilauser’ does not exist. That is what caused this error. Create the folder, then go back to the original message in DSPMSG QSYSOPR, and respond with a ‘R’ to retry. This time, the copy will succeed.