attachment in notification

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
reachmexyz
Premium Member
Premium Member
Posts: 296
Joined: Sun Nov 16, 2008 7:41 pm

attachment in notification

Post by reachmexyz »

Hello all

It looks i have a weird Problem. I am attaching a file name xxx.csv in the notification email stage. Job will send the notification along with attachment xxx.csv.
In the sequential file stage, my formatting is 'quote=double" "delimiter=comma".
When i open the xxx.csv on unix, i can see a field data as "8-10". But when i check the xxx.csv in attachement i see 10-Aug. Whats happeining is varchar is being converted to data in the attachment. how can i solve this. Please reply.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Excel.
-craig

"You can never have too many knives" -- Logan Nine Fingers
reachmexyz
Premium Member
Premium Member
Posts: 296
Joined: Sun Nov 16, 2008 7:41 pm

Post by reachmexyz »

chulett wrote:Excel.
Yes.

I am getting the attachment as excel and varchar like "8-12" is converted to 12-Aug.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Right, that's what it does and there isn't a good way to stop it. Open the attachment in something like Notepad to see the 'real' source data. Change the extension if you want to prevent the file from being automatically associated with Excel.
-craig

"You can never have too many knives" -- Logan Nine Fingers
anbu
Premium Member
Premium Member
Posts: 596
Joined: Sat Feb 18, 2006 2:25 am
Location: india

Post by anbu »

You can add a space(" 8-10") or add single quotes ('8-10'), if it is acceptable to avoid conversion
You are the creator of your destiny - Swami Vivekananda
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

You can certainly do that, as long as you don't mind the extra characters in the data and you keep in mind the fact that the moment someone 'fixes' them it will revert back to the date it thinks it is.
-craig

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

Post by ray.wurlod »

Format Cells in Excel to govern the display characteristics. Dates are actually stored in a binary format.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Sure... after the fact.
-craig

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