The SAS Output Delivery System and reporting techniques

Conditionally Email to respective email ID's with in Data set

Reply
Occasional Contributor
Posts: 13

Conditionally Email to respective email ID's with in Data set

Hi All,

 

I have a data set called "Order placed",

 

There are 5 Variables

"Order Creator Email ID"

 "Delivery lead Approval email ID",

"Qnty",

"Requested Price".

"Actual Price"

 

Requirement:- I need to send an automated email to "Delivery lead" to "Approve" by  copying "Order Creator "

If i have 10 orders, each mail to be triggred automaticaly to the respective approver.

 

Can we include Hyper link for each Order Number where it opens directly the some link to approve?

 

Any help would be appreciated.

 

Regards,

Naresh

Super User
Posts: 7,868

Re: Conditionally Email to respective email ID's with in Data set

First of all, convert your dataset to a data step for posting with the macro found in https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat...

So we have something to play around with.

 

And post an example how the emails should look like.

 

From where do you get the data for the hyperlink/URL?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 13

Re: Conditionally Email to respective email ID's with in Data set

Posted in reply to KurtBremser

Hi All,

 

Can anyone tell me how to pick email ID automatically in SAS when i execute code.

 

i have one variable has email address i need to send each observation via email.

 

Data Test;

set Test;

run;

 

Regards,

Naresh

Super User
Posts: 7,868

Re: Conditionally Email to respective email ID's with in Data set

Read my post again.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Occasional Contributor
Posts: 13

Re: Conditionally Email to respective email ID's with in Data set

Posted in reply to KurtBremser

Hi All,

 

Can anyone tell me how to pick email ID automatically in SAS when i execute code.

 

i have one variable has email address i need to send each observation via email.

 

Data Test;

set Test;

run;

 

Regards,

Naresh

Super User
Posts: 7,868

Re: Conditionally Email to respective email ID's with in Data set

Until you have posted example data as requested (data step!), and an example of the wanted mail, I'm out of here.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 5 replies
  • 229 views
  • 0 likes
  • 2 in conversation