Sending a file in email in incorrect format

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
marpadga18
Premium Member
Premium Member
Posts: 96
Joined: Fri Aug 20, 2010 8:51 am

Sending a file in email in incorrect format

Post by marpadga18 »

I have requirement to send a reject file as attanchment in email which is running fine. But when comes tio sending email it is sending in in-correct format.
for example my reject file on unix box is correct format
this format which is correct format

US |2738101 |2063190 ONTARIO INC (JULIE SMETHURST)|xxx |xxx|..
like that 18 columns are there.. with "|"delemiter

but when sending reject file in email in incorrect format say in one line all the reject records are comming i when i open reject file whihc send by email.. in below format which is not correct
US |2738101 |2063190 ONTARIO INC (JULIE SMETHURST)|xxx |xxx|..US |2738101 |2063190 ONTARIO INC (JULIE SMETHURST)| US |2738101 |2063190 ONTARIO INC (JULIE SMETHURST)|
like that 18 columns are there..
Thanks,
M
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Create the file with DOS record delimiters, Windows needs a CR/LF pair rather than just the LF that UNIX uses.
-craig

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