Datacom SQLCA field SQLCA-LUWID internal
search cancel

Datacom SQLCA field SQLCA-LUWID internal

book

Article ID: 70365

calendar_today

Updated On:

Products

Datacom

Issue/Introduction

After upgrading to Datacom/DB Version 14.0 or above, compile of an existing COBOL SQL user application program receives error

 IGYPS2121-S   "SQLCA-LUWID" was not defined as a data-name.  The statement was discarded.

on "DISPLAY SQLCA-LUWID"  .

This worked prior to Datacom/DB Version 14.0.

Environment

Datacom 14.0 , 15.0 and 15.1 . 

Cause

SQLCA-LUWID is no longer present in the generated SQLCA. 

Starting with Datacom/DB Version 14.0, the following fields replaced SQLCA-LUWID: 

  05 SQLCA-STAMP PIC X(4). 
  05 SQLCA-FLAG1 PIC X(1). 
  05 SQLCA-FLAG2 PIC X(1). 
  05 SQLCA-FLAG3 PIC S9(4) COMP. 

Resolution

The SQLCA fields are internal fields so there is no need for an application program to reference them.
The user program must be modified. 

Additional Information

Refer to Datacom Core 15.1 section "SQL Communication Area (SQLCA)".