Page 1 of 1

Import error in cff stage for a comp value

Posted: Fri Jul 16, 2010 2:27 am
by anandsh16
Hi
While reading a mainframe file i am getting below error

>##E TOIX 000227 09:10:51(002) <cffRequest,0> Trouble importing field "FILLER_3"; data: {0 { 0 0 { 0 0 { 0 0 { 0 0 {

The filler_3 is defined as
07 FILLER PIC S9(09) COMP VALUE 6380.

record options are
data format = text
character set = EBCDIC

After importing the copybook, FILLER_3

Posted: Fri Jul 16, 2010 2:38 am
by ArndW
Unlike the other COMPutational fields, the simple "COMP" is not standardized and depends upon the compiler writer. It is likely that we have a BCD encoding, so S9(9) COMP would take up 5 bytes. As fillers are usually just placeholders, and in your case contain the same value for each row due to the "VALUE 6380." part of the COBOL PICture, just declare the column as PIC X(5) and see if the file is legible.