03-25-2025
DavidHD
SAS Employee
Member since
07-07-2020
- 78 Posts
- 107 Likes Given
- 10 Solutions
- 69 Likes Received
-
Latest posts by DavidHD
Subject Views Posted 984 09-03-2024 08:00 AM 1673 06-10-2024 04:43 AM 5137 02-28-2024 02:08 PM 1593 02-28-2024 01:02 PM 2309 10-20-2023 06:01 AM 6611 08-20-2023 04:47 AM 5925 08-09-2023 03:55 AM 4271 08-07-2023 09:53 AM 4348 08-04-2023 07:38 AM 2192 04-17-2023 05:52 AM -
Activity Feed for DavidHD
- Liked Monitoring Model Fairness in SAS Model Manager for SophiaRowland. 03-25-2025 01:19 PM
- Liked Adventures with State Space Models: Introduction for chwell. 03-25-2025 01:19 PM
- Liked Introducing SAS Compute Server Enhancements for NicolasRobert. 03-25-2025 01:19 PM
- Liked Using SAS with SingleStore – Enhancing Performance with Aggregate Pushdown for NicolasRobert. 03-25-2025 01:19 PM
- Liked Automate SAS Studio Flows Documentation with Azure OpenAI in a Custom Step for Bogdan_Teleuca. 02-25-2025 07:59 AM
- Liked Using FILENAME URL to Access Internet Information for SASJedi. 02-25-2025 07:59 AM
- Liked Keep track of who accessed SAS data sets in a compute server for BrunoMueller. 02-25-2025 07:59 AM
- Liked SAS Visual Analytics: Understanding the AggregateTable Function for Beginners for NithinRamu. 02-25-2025 07:59 AM
- Liked Performance Improvements for Open-Source Model Execution in SAS Model Manager for SophiaRowland. 02-03-2025 08:21 AM
- Liked Execute Score Tests in Python and Enhancements in Automated Python Score Code Generation for SophiaRowland. 02-03-2025 08:21 AM
- Liked Optimizing SAS Event Stream Processing Studio Usage for PeterChristie. 02-03-2025 08:21 AM
- Liked Data-Driven Analytics in SAS Viya – Decision Tree Model Results for AndyRavenna. 02-03-2025 08:20 AM
- Liked Training PyTorch deep learning models in Viya & dealing with multi dimensional tabular data -Part II for PankajAttri. 10-21-2024 03:04 AM
- Liked SAS Viya High Throughput Batch Processing: Part 1 – Reusable Batch Servers for EdoardoRiva. 10-21-2024 03:04 AM
- Liked Data Science and Data Preparation Article Overview by Gerhard for gsvolba. 10-21-2024 03:04 AM
- Liked Training PyTorch deep learning models in Viya & dealing with multi dimensional tabular data - Part I for PankajAttri. 10-21-2024 03:03 AM
- Liked SWAT Code Generation and Execution in SAS Viya with Azure OpenAI and LangChain: Behind the Scenes for Bogdan_Teleuca. 09-25-2024 04:38 AM
- Liked Data-Driven Analytics in SAS Viya – Logistic Regression Model Results Interpretation for AndyRavenna. 09-25-2024 04:38 AM
- Liked Snippets: How to make a repository of Snippets available to all SAS Studio users for BrunoMueller. 09-25-2024 04:38 AM
- Liked SAS Visual Analytics Tips & Tricks Series - Main Page for KalleM. 09-25-2024 04:38 AM
-
Posts I Liked
Subject Likes Author Latest Post 2 2 2 1 3 -
My Liked Posts
Subject Likes Posted 1 04-30-2021 08:24 AM 5 10-20-2023 06:01 AM 3 02-14-2023 01:42 AM 1 01-31-2023 10:24 AM 3 11-06-2022 04:46 AM -
11-06-2022
04:46 AM
3 Likes
Hey,
you can make use of the dataShaping.wideToLong CAS Action. Please note that this action was first introduced in SAS Viya 2021.1.2
proc cas;
dataShaping.wideToLong /
table={caslib='casuser', name='iris'},
id='Species',
casOut={caslib='casuser', name='iris4', replace=true}
;
quit;
Best, David
... View more
01-01-2022
01:57 PM
There is a Viya Trial Version available - check out this blog post for all the information about it.
... View more
09-29-2021
03:18 PM
Yes this can be done by utilizing the proc olapoperate - see the documentation: https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/olapug/n0rh9rcu3ucqzon1o9cb47zbzytj.htm
... View more
Oh okay, I'm sorry I guess I miss understood the use case. Going around the login of SAS Viya is of course dangerous because then the link can be shared with anyone in your organization and they can open up the report and if there is row level security on the table this gets even worse.
Just a reminder I'm sure you know what you are sharing with the users. You have to ensure that Guest Access is enabled for your SAS environment, then Copy Link of the VA report you want to be accessible through your application and enable guest access (see Screenshot). Clicking on that link should open the report directly without a login.
... View more
Hi @smallajyosula ,
You pass the token in the header of your Request:
Authorization: 'Bearer <your-token>'
Please be advised that by default Accept-Tokens in Viya have a validity of 12 hours so you will either implement a token refresh or have your Viya admins issue a token that has a longer lifetime.
I'm no C# programmer but it should look a little something like this:
var client = new RestClient("https://sasviya.test.com/SASJobExecution/?_program=/Projects/MyOrg/ExpenseReport");
client.Timeout = -1;
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <your-token>");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);
Cheers,
David
... View more
07-20-2021
07:06 AM
Hi @Eitan123 ,
in the SMC UI inside of the flow editor there should be button for an and logic object. Then you connect the paths in the manner you would like into it and only if all of the completed successfully it will trigger the next thing after the and object.
When you connect objects it should prompt you for the condition on which you want the following step to be executed.
Hope this helps - Cheers
David
... View more
06-10-2021
04:33 AM
2 Likes
@Manoj07k I believe that in the libname statement you need aclspecial=yes and of course the user that you use to connect to the lib needs to be the same. When you connect using EG these might not be the same as on the server when you have pre-assigned libs.
Hope this helps,
David
... View more
06-08-2021
11:51 AM
Hi @danewt ,
there is a revised version of that paper available see here: https://support.sas.com/resources/papers/proceedings16/SAS6201-2016.pdf
The paper also contains some amazing links to additional resources.
Hope this helps,
David
... View more
06-04-2021
08:22 AM
1 Like
Check that you can reach the DB Server from the SAS Server (e.g. ping it) - if this doesn't work check with the Firewall/DNS-Team.
Validate your user credentials with the DB Team
Submit via code libname statement with this works move the SMC
If you get errors search for that error online and fix as appropriate - you might need to get in contact with the DB admins again
... View more
06-04-2021
03:00 AM
What happens if you submit the libname statement in code from EG? Do the tables then show up?
... View more
05-28-2021
08:46 AM
2 Likes
Hi @SasStatistics ,
1. The latest SAS Viya version is 2021.1 for the LTS cadence and 2021.1.1 for the Stable cadence
2. There are no substantial differences between the version, and more importantly no breaking changes. Newer versions get more features, bug fixes, etc. So some content in Programming for SAS Viya 2020.1 might not be available in SAS Viya 3.5. But the majority is the same.
On the cadence and versioning of SAS Viya take a look at this community entry: https://communities.sas.com/t5/SAS-Viya/Back-to-the-Future-with-SAS-Viya-Releases/td-p/703510
I hope this answers your questions.
Best,
David
... View more
04-30-2021
11:09 AM
1 Like
If you are collaborating on the code, doing a lot of changes or it is a business critical process then I would recommend using Git. Here is a great paper describing the integration of Git and SAS Studio: https://www.sas.com/content/dam/SAS/support/en/sas-global-forum-proceedings/2020/4197-2020.pdf
JSF can be really great, but as far as I'm aware it currently only supports time based triggers, but that might be all you need depending on your use case - take a look at this blog post: https://communities.sas.com/t5/SAS-Communities-Library/Go-with-the-Job-Flow-in-SAS-Viya-3-5/ta-p/612925
I hope this is helpful.
... View more
04-30-2021
08:24 AM
1 Like
Hi @elisehoo1 ,
SAS Content does not exist on a physical path.
Take a look at https://go.documentation.sas.com/doc/en/calcdc/3.5/calfolders/titlepage.htm to learn how you can interact with the SAS content via a CLI or take the URI from your screenshot.
What are you trying to achieve?
Best,
David
... View more
01-15-2021
11:51 AM
Hi @Katrin1606 ,
habe mal eine Lösung auf der Basis von RegEx und den SAS-Funktionen scan & count entwickelt. Für die erste beiden Fälle habe ich Lösungen entwickelt die mit beliebig vielen verbundenen "Wörtern" umgehen kann. Für den letzten Fall habe ich bisher noch keine Lösung die mit n Wörtern umgehen kann - solltest du das benötigen sag Bescheid. Zu RegEx in SAS empfehle ich immer das Cheat-Sheet. Der Code ist nicht wirklich kommentiert, ich hoffe er spricht für sich.
data work.aaa(drop=p1 p2 p3 c1 c2 i j l);
length w1 w2 w3 $256.;
* Sonderzeichen;
str2 = "ERF!RSA";
p2 = prxparse('/\W/');
c2 = countw(str2, '', 'P') ;
do j = 1 to c2;
w2 = scan(str2, j, '', 'P');
output;
end;
* camelCase-Worttrennung;
str1 = "PostWichtigeTest";
p1 = prxparse('/[A-Z]/');
c1 = countw(str1, "", 'U');
*w1 = substr(str1, 1, prxmatch(p1, substr(str1, 2)));
do i = 1 to c1;
if i = 1 then l = 1;
w1 = substr(str1, l, prxmatch(p1, substr(str1, l + 1)));
l = l + length(w1);
output;
end;
* Zahlen-Worttrennung;
str3 = "225,00Freitext";
p3 = prxparse('/\d[A-Z]/');
w3 = substr(str3, 1, prxmatch(p3, str3));
output;
w3 = substr(str3, prxmatch(p3, str3) + 1);
output;
run;
Viele Grüße
David
... View more
01-07-2021
01:47 AM
Hey @anguraj1 ,
Happy new year!
Have you taken a look at https://communities.sas.com/t5/Administration-and-Deployment/SSL-certificate-renewal-for-sas-9-4-webserver/td-p/256898 ?
Hope that helps you.
Kind Regards,
David
... View more