creating a fixed width file with different header size

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
reshma11
Premium Member
Premium Member
Posts: 25
Joined: Mon Oct 13, 2008 7:52 am

creating a fixed width file with different header size

Post by reshma11 »

Need to create a fixed width file with a header record, followed by detail records and followed by a trailer record in a same file with different header size. Ex:- header record should be with of 120, detail records size should be 80 and trailer record width of 80. These all should go to same file.
Thank you.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Build them separately and then concatenate them together afterwards in the proper order. You may also be able to build the records manually as one varchar field and make sure they write out in the proper size and format.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply