Skip to Content
0
Jun 02, 2006 at 11:35 AM

Datatype convertion

21 Views

Hello

i have a structure A with 3 fields.

- Field A is of type DATS length 8.

- FIELD B is of type DEC length 5.

- FIELD C is of type CHAR length 7.

The problem is with datatypes of DATS the internal value is '0000000' when the value is initial.

Now i need to move the entries of the structure A to a structure B with 3 fields as well

- FIELD A is of type CHAR length 8.

- FIELD B is of type CHAR length 5.

- FIELD C is of type CHAR length 7.

I do have 2 problems now:

1.) when the value field A of structure A is emtpy, 0000000 gets move to field A of structure B. This shouldnt happen, or at least i need to clear it afterwards.

2.) When the value of field A of structure is not emtpy, the internal date format yyyymmdd gets moved to field A of structure b and not the extrenal layout.

Anyone has an idea how to solve the problem?

regards,

Markus

When the data is empty in these fields they have the internal value of '00000000'. Now i do want to