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.
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!
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...
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.
Ready to level-up your skills? Choose your own adventure.