Processing Cobol file in datastage

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
olopade8425
Participant
Posts: 2
Joined: Wed Sep 14, 2011 8:01 am
Location: Canada

Processing Cobol file in datastage

Post by olopade8425 »

I want to load Cobol file with Copy book and datafile. The file contains packed decimal fields, COMP-3 and COMP. I was able to load the Table definition from the copy book and the structure looks okay. When I tried to veiw the data I got an error "cannot execute binary file".
Abi Olopade
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You are trying to view the data where/how exactly? Also, you should be using the Complex Flat File stage for this, are you?
-craig

"You can never have too many knives" -- Logan Nine Fingers
olopade8425
Participant
Posts: 2
Joined: Wed Sep 14, 2011 8:01 am
Location: Canada

Re: Processing Cobol file in datastage

Post by olopade8425 »

I am using complex flat file stage. I imported the copybook to Table definitions -> COBOL FD, I was able to see the columns after loading the structure. I pointed to the file in the complex flat file stage and got error while trying to view the data in the output tab of the complex flat file stage.
Abi Olopade
Post Reply