I receive data from a table with USAGE National. I need to move this into a pic x field.
When i code: move ObjectProperties-Identifier to alp-field
the Errormessage: Wrong combination of data-types.
How can i solve this problem.
Copy created by SQL Wizard:
EXEC SQL DECLARE
"ObjectProperties" TABLE
( "ObjectPropertyGuid" uniqueidentifier(36)
NOT NULL
,"ContainerGuid" uniqueidentifier(36)
NOT NULL
,"Identifier" ntext(41823)
,"Value" ntext(41823)
,"GroupGuid" uniqueidentifier(36)
) END-EXEC.
*> --------------------------------------------------------------
*> COBOL DECLARATION FOR TABLE ObjectProperties
*> --------------------------------------------------------------
01 DCLObjectProperties.
03 ObjectProperties-001 PIC X(36).
03 ObjectProperties-ContainerGuid PIC X(36).
03 ObjectProperties-Identifier PIC N(32000)
USAGE NATIONAL.
03 ObjectProperties-Value PIC N(32000)
USAGE NATIONAL.
03 ObjectProperties-GroupGuid PIC X(36).
*> --------------------------------------------------------------
*> COBOL INDICATOR VARIABLES FOR TABLE
*> --------------------------------------------------------------
01 DCLObjectProperties-NULL.
03 ObjectProperties-003-NULL PIC S9(04) COMP-5.
03 ObjectProperties-Value-NULL PIC S9(04) COMP-5.
03 ObjectProperties-005-NULL PIC S9(04) COMP-5
Alphanumeric field:
01 alp-field pic x(100).




