Strovent SystemsSign in
Reference

DSNE345I in SPUFI: terminal CCSID is not the same as the SPUFI CCSID

DSNE345I means the 3270 emulator's code page differs from the CCSID Db2 SPUFI was bound with. Set the emulator code page to the SPUFI CCSID before you go on.

SPUFI shows this warning before it runs your SQL:

DSNE345I WARNING: DB2 DATA CORRUPTION CAN RESULT FROM THIS SPUFI SESSION
BECAUSE THE CCSID USED BY THE TERMINAL IS NOT THE SAME AS THE CCSID USED
BY SPUFI. TERMINAL CCSID 1047. SPUFI CCSID: 37.
NOTIFY THE DB2 SYSTEM ADMINISTRATOR.

The two numbers are the whole story. Your 3270 terminal (the emulator) uses one EBCDIC code page, and SPUFI on that Db2 subsystem expects another. Characters that sit at different byte values in the two code pages, such as [, ], !, |, ^ and currency signs, can be stored wrongly in Db2.

What to do

Press END to quit, not Enter. Enter continues the session, and IBM warns that continuing can corrupt data stored by Db2.

Set the emulator to the SPUFI CCSID. Change the 3270 code page in your emulator to the number shown after SPUFI CCSID. The CCSID and code page numbers line up for the common pages: CCSID 37 is code page 037, CCSID 1140 is 1140, CCSID 1047 is 1047. Then log on again, so ISPF reads the new value, and start SPUFI.

Tell the Db2 administrator if you are not sure which code page your site uses. IBM's advice to the system programmer is to configure the user's terminal to the SPUFI CCSID and to check the data in any tables changed during a session that ran with the mismatch.

Why the terminal has a CCSID

ISPF asks the terminal which code page and character set it uses. A TN3270 emulator answers with the code page you configured. SPUFI compares that answer with the CCSID it was bound with on the local Db2. If they differ, DSNE345I appears.

A common cause is an emulator left at a default that differs from the site standard, for example 1047 in the emulator while Db2 uses 37, or 037 when the site uses the euro page 1140.

TERMINAL CCSID is blank

A blank terminal CCSID means ISPF could not ask the terminal, or the answer is not one ISPF supports. IBM lists these causes:

  • The emulator has no code page (CCSID) setting configured.
  • The VTAM logmode for the session does not have the extended data stream (EDS) bit on in PSERVIC, so the terminal is never queried. The system programmer sets this.
  • Very old 327x hardware that cannot answer the query.

Only for a blank terminal CCSID, the SPUFI defaults panel can turn the message off. You cannot suppress it when a terminal CCSID is shown.

SPUFI CCSID is blank

SPUFI could not read the application encoding scheme and got an unexpected SQLCODE. The SQLCODE details follow DSNE345I on the same panel; handle that SQLCODE first.

Sources

Spotted a mistake? Email [email protected].