Message CPF3311 Received for CPYSPLF Because of DBCS

Technote (troubleshooting)


Problem(Abstract)

This document discusses an issue where the Copy Spooled File (CPYSPLF) command receives error message CPF3311, Copy request failed for file &6 in &7, is received because the physical file specified in the TOFILE parameter is not a DBCS file.

Resolving the problem

When using the Copy Spooled File (CPYSPLF) command, the error message CPF3311 - Copy request failed for file &6 in &7 is received. The Cause for message CPF3311 indicates that the copy request failed because the physical file specified in the TOFILE parameter is not a double-byte character set (DBCS) file.

This can occur when copying a spooled file that was generated using an externally described printer file, in other words a printer file generated using Data Description Specifications (DDS), with certain DDS keywords that allow for DBCS.

When this occurs, the resulting spooled file will have spooled file attributes that allow for DBCS. For example:

User specified DBCS data . . . . . . :   Y
DBCS Capable . . . . . . . . . . . . :   Y
DBCS extension characters  . . . . . :   Y

This issue can be resolved using one of the following options:

o Change the DDS specifications to not use DBCS data, including specifying text fields with a Data Type of A (character) instead of O (DBCS-Open), then recreate the printer file and generate a new spooled file, or
o Use the Create Physical File (CRTPF) command with the User specified DBCS data (IGCDTA) parameter set to *YES to create a physical file that can accept DBCS data, for example:

CRTPF FILE(QGPL/CPYDBCS) RCDLEN(133) IGCDTA(*YES)
      TEXT('Physical file for CPYSPLF with IGCDTA(*YES)')
      MAXMBRS(*NOMAX)

Historical Number

21521314

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM i
Print

Software version:

4.3.0, 4.4.0, 4.5.0, 5.1.0, 5.2.0, 5.3.0, 5.3.5, 5.4.0, 5.4.5, 6.1, 6.1.0, 6.1.1, 7.1, 7.1.0, Version Independent

Operating system(s):

IBM i

Reference #:

N1017577

Modified date:

2012-10-04

Translate my page

Machine Translation

Content navigation