Email notification - Issue - Unable to use '\\' in the body

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
clmhwyfe
Premium Member
Premium Member
Posts: 42
Joined: Mon Jun 18, 2012 1:39 pm

Email notification - Issue - Unable to use '\\' in the body

Post by clmhwyfe »

Hi All,

I have a job that needs to send out a notification with the location of the file in the Email body.

The job runs fine and sends the notification but if specifies only a single '\' rather than '\\' as mentioned in the body.

I tried to have the same in double quotes but still it sends out only a single '\' due to which the users are unable to access that location.

Please let me know if am missing something on the same.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

The backslash is a typical unix escape character used to treat the escaped (i.e. following) character as just a normal character.

To get 2 backslashes, give \\\\ a try (i.e. 2 "escaped" backslashes).

Mike
clmhwyfe
Premium Member
Premium Member
Posts: 42
Joined: Mon Jun 18, 2012 1:39 pm

Post by clmhwyfe »

Thanks Mike , This resolved the issue (\\\\)
Post Reply