Problem:

The following error occurs when emailing a DBCS-enabled report:
 
CPYSPLF FILE(QPMHAMI) TOFILE(QTEMP/TEST) JOB(853505/CAUDILLT/QUSCASD01J) CTLCHAR(*PRTCTL)
 
Message:
 
ATTRIBUTES OF FILE QPMHAMI NOT SUPPORTED BY CPYSPLF (G C)
 
Second Level Error Message Text:
 
             ADDITIONAL MESSAGE INFORMATION                     PAGE     1
5722SS1 V5R1M0  010525                            PEI400    01/06/04  11:09:47 
 
MESSAGE ID . . . . . . :   CPA3312       SEVERITY . . . . . . . :   99
DATE SENT  . . . . . . :   01/06/04      TIME SENT  . . . . . . :   11:07:38
MESSAGE TYPE . . . . . :   INQUIRY
 
FROM PROGRAM . . . . . . . . . :   QSPCPYF
 FROM LIBRARY . . . . . . . . :     QSYS
 INSTRUCTION  . . . . . . . . :     0769 
 
TO PROGRAM . . . . . . . . . . :   *EXT
 
CODED CHARACTER SET ID . . . . :   65535 
 
MESSAGE . . . . :   ATTRIBUTES OF FILE QPMHAMI NOT SUPPORTED BY CPYSPLF (G C).
CAUSE . . . . . :   THE COPY SPOOLED FILE (CPYSPLF) COMMAND FOUND SPECIAL
 DEVICE REQUIREMENTS OF FILE QPMHAMI NUMBER 1 JOB 853505/CAUDILLT/QUSCASD01J.
 ATTRIBUTES THAT ARE NOT COPIED BY THE CPYSPLF COMMAND ARE DEFINED
 CHARACTERS, TRANSPARENCY, VARIABLE CHARACTERS PER INCH (CPI), VARIABLE LINES
 PER INCH (LPI), VARIABLE FONT, VARIABLE CHARACTER IDENTIFIER (CHRID),
 SUBSCRIPT AND SUPERSCRIPT, GRAPHICS FUNCTIONS, VARIABLE PAGE ROTATION,
 ENHANCED 3812 FONTS, BAR CODES, INTELLIGENT PRINTER DATA STREAM (IPDS)
 TRANSPARENT DATA, SOME FINAL FORM TEXT FUNCTIONS, ROTATED DOUBLE-BYTE
 CHARACTERS, DOUBLE-WIDE CHARACTERS, SOME IGC CHARACTERS PER INCH (IGCCPI)
 VALUES, AND IGC SHIFT-OUT AND SHIFT-IN SPACING SPECIFIED AS IGCSOSI(*NO),
 AND IGC SHIFT-OUT AND SHIFT-IN CHARACTERS SPECIFIED AS IGCSOSI(*RIGHT).
 ATTRIBUTES THAT ARE SIMULATED ARE:  HIGHLIGHT, AND SOME FINAL FORM TEXT
 FUNCTIONS.
RECOVERY  . . . :   TYPE G TO CONTINUE OR C TO CANCEL THE COPY FUNCTION. IF G
 IS ENTERED, THE RESULTS MAY NOT BE WHAT IS ACCEPTABLE BECAUSE:
 -- DEFINED CHARACTERS BELOW X'40' WILL BE CHANGED TO X'40'.
 -- VARIABLE LINES PER INCH OR DOUBLE-BYTE CHARACTERS MAY CAUSE EXTRA PAGES
 TO BE PRINTED.
 -- THE DEVICE ATTRIBUTES WHICH CONTROL VARIABLE CPI, VARIABLE FONT,
 VARIABLE CHRID, SUBSCRIPT AND SUPERSCRIPT, GRAPHICS FUNCTIONS, VARIABLE PAGE
 ROTATION, ENHANCED 3812 FONTS, BAR CODES, IPDS TRANSPARENT DATA, SOME FINAL
 FORM TEXT FUNCTIONS, ROTATED DOUBLE-BYTE CHARACTERS, DOUBLE-WIDE CHARACTERS,
 SOME IGCCPI VALUES, IGCSOSI(*NO), AND IGCSOSI(*RIGHT) WILL NOT BE COPIED.
 -- THE DEVICE ATTRIBUTES WHICH CONTROL HIGHLIGHT AND SOME FINAL FORM TEXT
 FUNCTIONS WILL NOT BE SIMULATED IF THE CONTROL CHARACTER IS SPECIFIED AS
 *NONE.
POSSIBLE CHOICES FOR REPLYING TO MESSAGE . . . . . . . . . . . . . . . :
 G -- PROCESS FILE.
 C -- CANCEL CPYSPLF.
 
REPLY  . . . :   G
 

Solution:

When CPYSPLF generates a CPA3312 error message, it needs the response G before continuing. Set up the CPA3312 error message to auto-reply with G when an error occurs. 
 
To add an auto-reply entry:
 
  1. Run the WRKRPYLE command. The following screen displays:
        WORK WITH SYSTEM REPLY LIST ENTRIES
                                                            SYSTEM:   PEI400
    TYPE OPTIONS, PRESS ENTER.
    2=CHANGE   4=DELETE
    
     SEQUENCE  MESSAGE                                              COMPARE
    OPT   NUMBER   ID       REPLY       COMPARE VALUE                    START
        150    CPA58D9  C           *NONE
        160    CPA58EE  G           *NONE
        290    CPA5902  C           *NONE
        300    CPD5960  C           *NONE
        955    CPA5737  C           'Q1PLIN    Q1PCTL    '              6
       9998    CPA3312  G           *NONE
       9999    CPA4062  G           *NONE
    
    
                                                                        BOTTOM
    PARAMETERS OR COMMAND
    ===> 
    F3=EXIT   F5=REFRESH   F6=ADD   F11=DISPLAY ENTIRE REPLY   F12=CANCEL
    F24=MORE KEYS
  2. Press F6 to add a new entry.
  3. Enter the following for the new reply list entry:

    Sequence number  . . . . . . . .   9998          1-9999                       
    Message identifier . . . . . . .   CPA3312       Character value, *ANY        
    Compare data:                                                                 
    Comparison data  . . . . . . .   *NONE                                      
    Message data start position  .   *NONE         1-999, *NONE                 
    Message reply  . . . . . . . . .   G                
  4. Press Enter to save the new reply-list entry.

Now when MAILSPLF or CPYSPLF are called and a CPA3312 error occurs, the OS/400 automatically replies, and the commands will finish running.


Still have questions? We can help. Submit a case to Technical Support.

Last Modified On: December 10, 2016