Generating Flat File of 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
rkumar28
Participant
Posts: 43
Joined: Tue Mar 30, 2004 9:39 am

Generating Flat File of Fixed Width

Post by rkumar28 »

Hi,

I am trying to generate a fixed width flat file from pipe delimited flat file. Basically, I am extracting from pipe delimited flat file, perfoming transformations and loading into the fixed width flat file.
The fixed width file has 15 columns and the width of all the column adds up to 925. But when I load the data into this file I get row length of 8205 in fixed width file instead of 925.

Once this file is generated, I do the FTP to MVS enviroment from unix.

Will appreciate any help to fix this problem.

Thanks
Raj
ds_developer
Premium Member
Premium Member
Posts: 224
Joined: Tue Sep 24, 2002 7:32 am
Location: Denver, CO USA

Post by ds_developer »

Have you verified that the Length and Display values of the 15 columns in the sequential file are the same? DataStage is going to use the Display values to write the record. Also, your numbers don't look right - 925 isn't evenly divisible by 15 even if you're including a line terminator.

John
Post Reply