SQL0969N エラー・メッセージで報告される SQLCODE と関連のトークンの解釈方法は?
DB2® for Linux®、UNIX、および Windows で使用されるクライアント・サポートは、同等のコードがないホスト SQLCODE およびトークンを報告すると、メッセージ SQL0969N を返します。
以下はメッセージ SQL0969N の例です。
SQL0969N There is no message text corresponding to SQL error
"-7008" in the Database Manager message file on this workstation.
The error was returned from module "QSQOPEN" with original
tokens "TABLE1 PRODLIB1 3".コードとトークンを解釈するには、 Display Message Description (DSPMSGD) コマンドを使用します。
DSPMSGD SQL7008 MSGF(QSQLMSG)オプション 1 (メッセージ・テキストの表示) を選択すると、 システムは「定様式メッセージ・テキストの表示」画面を表示します。 メッセージの中の 3 つのトークンは、 画面では、&1、&2、および &3 によって表されます。 この例のメッセージの理由コードは 3 で、 これは、画面に示されているコード 3 を指し示します。
Display Formatted Message Text
System: RCHASLAI
Message ID . . . . . . . . . : SQL7008
Message file . . . . . . . . : QSQLMSG
Library . . . . . . . . . : QSYS
Message . . . . : &1 in &2 not valid for operation.
Cause . . . . . : The reason code is &3. A list of reason codes follows:
-- Code 1 indicates that the table has no members.
-- Code 2 indicates that the table has been saved with storage free.
-- Code 3 indicates that the table is not journaled, the table is
journaled to a different journal than other tables being processed under
commitment control, or that you do not have authority to the journal.
-- Code 4 indicates that the table is in a production library but the user
is in debug mode with UPDPROD(*NO); therefore, production tables may not be
updated.
-- Code 5 indicates that a table, view, or index is being created into a
production library but the user is in debug mode with UPDPROD(*NO);
therefore, tables, views, or indexes may not be created.
More...
Press Enter to Continue.
F3=Exit F11=Display unformatted message text F12=Cancel