DataTypePicComp

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

(Just saw that Ray posted before me - how did he manage to sneak in there?)

JezT,

No, nothing so complicated. Go to the column definitions and change the value of "Contains Terminators" to "Yes" (you usuually need to page the column definition window to the right to see it). For more information, call up help in the designer and search for the keywords "contains terminator".
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Hello again JezT,

the data contains <LF>, your viewing program is looking at the data as text and is displaying the <LF> the way it is supposed to - by showing the data on the next line. Do you have a Hex or Binary editor on your host? This would show the data the way it is really stored. Remember that this is binary data and is not meant for your run-of-the-mill text editor.

Since you are having trouble with the COMP fields, can you have your COBOL programmer just change the definitions to PIC 9(9) fields for this run? Then you would not need the conversion and reconversion and could use a text editor on the UNIX or Host side to see your data?
JezT
Participant
Posts: 75
Joined: Wed Sep 15, 2004 1:52 am

Post by JezT »

Arnd

Unfortunately the file is required in Binary format so is there any way round this problem of the line terminating ?

Why did the "Contains Terminators = YES" work before we made the field EBCDIC but after it had already been converted by your routine ?

Is it likely that the problem is being caused by our file transfer and not within DataStage ?

JezT
JezT
Participant
Posts: 75
Joined: Wed Sep 15, 2004 1:52 am

Post by JezT »

For further information, we are sending this file via Connect Direct which appears to be corrupting the file with regards to the line terminators.

Does anyone have any ideas what we can do with regards to Connect Direct to remove this issue ?

JezT
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

ArndW wrote:(we are just doing this to boost our points in this forum, so that we can surpass Ray and get a free <something> :roll: )
You guys are... well on your way. :lol:
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Craig - our method lies in the use of sparse one-liners. :D
Post Reply