I need to sort a fixed length sequential file by 2 columns and tried using the sort stage. When reviewing the output through the data viewer in DS, the data appears OK. When reviewing the output in a text editor (TextPad), any fields that contained no data were replaced with #'s (though fields that have trailing spaces retain the spaces). So a 5 char field with no data comes across as #####. The data coming into the sort stage doesn't have the #'s. Any ideas why this is occurring and how to stop it?
Thanks!
Sort stage writes #'s in place of null in output to seq file
Moderators: chulett, rschirm, roy
-
jmryan2000
- Participant
- Posts: 5
- Joined: Mon May 01, 2006 7:23 am
-
jmryan2000
- Participant
- Posts: 5
- Joined: Mon May 01, 2006 7:23 am
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Diagnostician Note
Don't be in too much of a hurry to attribute blame to a particular stage type.
Here the subject line suggests a problem with the Sort stage, which may mislead future searchers. The problem wasn't. DataStage did exactly what it was programmed to do - via the pad character property in the Sequential File stage.
Don't be in too much of a hurry to attribute blame to a particular stage type.
Here the subject line suggests a problem with the Sort stage, which may mislead future searchers. The problem wasn't. DataStage did exactly what it was programmed to do - via the pad character property in the Sequential File stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
