Page 1 of 1

COBOL COPYBOOK IMPORT ERROR FOR COMP-3

Posted: Sun Dec 26, 2010 12:33 am
by swapnilverma
Hi am trying to import cobol copybook.
Import showing error for all comp-3 fileds.

05 Branch_Number PIC S9(3) COMP-3.

error 'COMP-' unrecognized syntax.

If I change COMP-3 to COMP it is going thrugh but fails again for column having decimal field like below.

05 Potential_Loss_SC PIC S9(11)V99 COMP.


Please advise how to import the copybook.

I havelots of column like as below :-
9_Day_Customer_Float PIC S9(11)V99 COMP-3.

Posted: Sun Dec 26, 2010 9:12 am
by chulett
What are you using to do this import? The only thing that will understand a COBOL copybook would be the Complex Flat File (CFF) stage, as far as I know.

Re: COBOL COPYBOOK IMPORT ERROR FOR COMP-3

Posted: Sun Dec 26, 2010 8:39 pm
by jwiles
Check to see if there are any spaces between the - and the 3 in COMP-3. I was able to import the definitions you show below into 8.1 FP1 without problem. If I forced a space, such as "COMP- 3" I received the error you show.

Posted: Mon Dec 27, 2010 1:03 am
by swapnilverma
thanks for replies...

it is resolved now ... the problem was with record length...

The max record length allowed is 72 . After making it 72 it works fine...

but now facing another issue which I will post after searching old posts here ..


:twisted: :twisted: