Parameterizing Attached file path in DSSendmail routine
Posted: Thu Aug 28, 2008 6:29 am
Hi,
I want to attach a file in mail which I am sending from Datastage.I am using DSsendmail Routine.
There When I am explicitly giving Attached file path then the file is going in mail.
But when I am using Parameter in file path it is showing Cannot open file.
Arg:
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:test/reject/AFile.txt\nBody:Line1"
when I am giving this the file is attached with mail,
But when I am giving the Argument in below foramts it is showning error Cannot open file
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:$para_Rej/AFile.txt\nBody:Line1"
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:#$para_Rej#/AFile.txt\nBody:Line1"
Can't it be parameterized.
Please suggest.
Thanks
Shaonli
I want to attach a file in mail which I am sending from Datastage.I am using DSsendmail Routine.
There When I am explicitly giving Attached file path then the file is going in mail.
But when I am using Parameter in file path it is showing Cannot open file.
Arg:
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:test/reject/AFile.txt\nBody:Line1"
when I am giving this the file is attached with mail,
But when I am giving the Argument in below foramts it is showning error Cannot open file
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:$para_Rej/AFile.txt\nBody:Line1"
"From:me@here\nTo:you@there\nSubject:Hi ya\nAttach:#$para_Rej#/AFile.txt\nBody:Line1"
Can't it be parameterized.
Please suggest.
Thanks
Shaonli