BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Santt0sh
Lapis Lazuli | Level 10

Hi,

 

I am trying to create files for each user, which will have details of the task. I am unable to achieve this.

 

Please find the attached code and suggest me what can i do, in order to achieve the results. currently the code which i am using is giving me the result below.

 

Current output.

--------------------------------

2 tasks assigned to user1

taskid= AA1000123

2 tasks assigned to user1

taskid=aa10052346

 

I would need some input to achieve the desired results.

 

Desired Output.

--------------------------------

2 tasks assigned to user1

taskid= AA1000123

taskid=aa10052346

 

 

PFA the sas code i am using.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Santt0sh
Lapis Lazuli | Level 10
Thank you for all your help, I have figured it out to send emails for each user.

View solution in original post

3 REPLIES 3
Urban_Science
Quartz | Level 8

I think all that you need to do is add an IF statement to only output "2 tasks assigned to user1" only when printing the first taskid.

 

%IF &i = 1 %THEN %DO;
     %PUT RECORDS ====>> &&RC&i.;
     %PUT "************************&&RC&i. CASES ASSIGNED TO &&USRid&i.*****************";
%END;
%PUT "************************&&tsID1&i.*****************";

Let me know if that helps!

 

Santt0sh
Lapis Lazuli | Level 10

Hi,

 

Thank you for your quick response.

Unfortunately the solution you have provided doesn't work as expected.

 

The If condition will not be true, hence the results are not changed.

 

 

Regards...

 

Santt0sh
Lapis Lazuli | Level 10
Thank you for all your help, I have figured it out to send emails for each user.

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 789 views
  • 0 likes
  • 2 in conversation