DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
This topic has been marked "Resolved."
Author Message
Paul M
Participant



Joined: 13 Nov 2006
Posts: 19

Points: 138

Post Posted: Thu Aug 22, 2019 3:07 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
I'm reading a EBCDIC coded COBOL file that has a binary field S9(9) comp, using the CFF stage. As as record delimiter the UNIX LF is used. Everything works fine until a record is encountered where the binary field contains a hex 0A value which is interpreted a a LF.
How can I circumvent this error? Because whatever hex value I use for a record delimiter, this value will appear in the binary field some day.
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 43011
Location: Denver, CO
Points: 221947

Post Posted: Sat Aug 24, 2019 4:27 pm Reply with quote    Back to top    

I seem to recall having a similar problem many (many) moons ago when the packed field was the last one in the record. Is that the case here or does it not matter where in the record the comp field is?

_________________
-craig

The muffin man is seated at the table in the laboratory of the Utility Muffin Research Kitchen reaching for an oversized chrome spoon
Rate this response:  
Not yet rated
Paul M
Participant



Joined: 13 Nov 2006
Posts: 19

Points: 138

Post Posted: Sun Aug 25, 2019 12:58 am Reply with quote    Back to top    

Thanks for your reply, Craig, and yes, the comp field is the last field in the record. Of course I looked for a similar problem in this forum, but didn’t find one. Can you point me to the right post?
Rate this response:  
Not yet rated
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 43011
Location: Denver, CO
Points: 221947

Post Posted: Sun Aug 25, 2019 7:59 am Reply with quote    Back to top    

Sorry, didn't mean to imply it had been discussed here although it could very well have been. Been too long for me to recall that or whatever in the heck we did to get around that but it would have been with Server jobs and not using the CFF stage. Sad

Hopefully that added bit of detail will spur some other PX folks with CFF experience to chime in.

_________________
-craig

The muffin man is seated at the table in the laboratory of the Utility Muffin Research Kitchen reaching for an oversized chrome spoon
Rate this response:  
Not yet rated
Paul M
Participant



Joined: 13 Nov 2006
Posts: 19

Points: 138

Post Posted: Wed Aug 28, 2019 9:21 am Reply with quote    Back to top    

No problem, Craig. Just solved the problem, I shouldn't have used a lifefeed at all to read the file, I can read the EBCDIC file now.
This post can be closed.
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours