Delimited file with fixed width

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

Post Reply
rcil
Charter Member
Charter Member
Posts: 70
Joined: Sat Jun 05, 2004 1:37 am

Delimited file with fixed width

Post by rcil »

What is the easiest way to create a pipe delimited file where the length of the columns should not exceed the declared size?

Example: source column is char(50) and in the target file I am declaring char(40).

In the above example DataStage is writing all 50 characters to the target as it is not a fixed width file. I know I can use substring but my source has more than 180 columns.

Appreciate your time. Please let me know if my question is not clear.
Thanks,
RCil
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Substring.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Study one of the productivity aids in the Transformer stage, namely Derivation Substitution.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply