COBOL COPYBOOK IMPORT ERROR FOR COMP-3

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

COBOL COPYBOOK IMPORT ERROR FOR COMP-3

Post 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.
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post 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.
-craig

"You can never have too many knives" -- Logan Nine Fingers
jwiles
Premium Member
Premium Member
Posts: 1274
Joined: Sun Nov 14, 2004 8:50 pm
Contact:

Re: COBOL COPYBOOK IMPORT ERROR FOR COMP-3

Post 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.
swapnilverma
Participant
Posts: 135
Joined: Tue Aug 14, 2007 4:27 am
Location: Mumbai

Post 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:
Thanks
Swapnil

"Whenever you find whole world against you just turn around and Lead the world"
Post Reply