SAS Viya Copilot for Code Assistance in SAS Data and AI Studio
Recent Library Articles
In this post, we’ll take a look at how SAS Viya Copilot for Code Assistance can help with some of those everyday tasks: understanding code, improving it, and making changes more confidently—all without leaving the SAS Data and AI Studio environment.
Already a SAS Viya user? Then you know you’ve got a wealth of capabilities at your fingertips. We’ll explore those together, giving you access to all the insights you’ll need. Join us on December 10 at 11 a.m. ET.
Are you aware of the Inside SAS 9 Newsletter? Below is one copy of the newsletter. Scroll to the bottom of the newsletter and subscribe to future versions of the newsletter. dsqjvx52uljvw.cloudfront.net/f/cisasusp/fba13848-508f-4bd5-8aa0-9e8ecff01eab.html
... View more
I am a beginner training a small neural network and I am watching the training loss and the validation loss as it learns. At first both losses go down together but after a while the training loss keeps failing while validation loss starts to rise again. I have read that this is a sign of overfitting, but I am not sure I really understand what is happening inside the model. Why would the model keep getting better on the training data while getting worse on new data? What should I do when I see this pattern — stop training, change something about the model, or get more data?
... View more
Hello how do i calculate percentage of the below ,per field. using proc freq or proc sql PROC SQL;
TITLE 'NPS_2022101';
CREATE TABLE DATA_QUALITY_202210 AS
SELECT COUNT (*) AS COUNT
, COUNT (CASE WHEN CELLPHONE_NO IS NULL THEN 1 END)AS BLANKS
, COUNT (CASE WHEN CELLPHONE_NO = '00' THEN 1 END) AS DOES_NOT_COMPLY
, COUNT (CASE WHEN CELLPHONE_NO ^= '00' AND CELLPHONE_NO ^= '' THEN 1 END) AS COMPLY_WITH_RULE
FROM VIEWS;
QUIT; desired outcome.
... View more
When it comes to responsible use of AI, organisations are always striving to ensure the data used for analytical workloads
meets their pre-defined quality criteria
curated within governed pipelines and
can be traced back to trusted sources
These initiatives are invariably complemented by robust access controls as it ensures that all workloads are executed in compliance with the security policies laid down by the organisation to prevent any downstream regulatory compliance or reputation risk.
Access controls in modern data landscape
Lakehouse and cloud data architectures combine identity providers, data platforms, governance tools, analytics services and operational applications. A typical environment might include SAS alongside platforms such as Snowflake, Databricks or SQL Server.
The practical question is not, "Which product does everything?" It is, "Which system should enforce each type of access?"
With SAS widely trusted as a data agnostic platform to execute analytics workload, let’s understand the approach to authentication, identity management, and access management in the SAS Viya platform.
Access controls with SAS Viya
Let’s first consider SAS Viya, the platform, before reviewing the approach taken by SAS industry solutions, which are built on top of its robust foundation. SAS Viya integrates with widely adopted third-party tools to authenticate users. Many functions that are required to prevent unauthorised access to SAS user interfaces are performed by a customer-provided identity provider. For example, security features such as password lockout policies or multi-factor authentication are handled by external identity providers.
When it comes to authorisation, SAS Viya platform applies a layered authorisation plus governance model. This separates authorisation for content resources from authorisation for analytical data. Platform’s governance capabilities sit above that to address metadata, lineage and accountability.
Figure1: SAS Viya applies access controls at the enforcement point appropriate to each resource
SAS applies a least-privileges model to each role, giving minimum access that is required to deploy and run the application. Configuring identity management involves setting up and maintaining the connection between the SAS Viya and a Lightweight Directory Access Protocol (LDAP) identity provider or an identity and access management (IAM) system that uses System for Cross-domain Identity Management (SCIM). When the connection is established, the Identities microservice of SAS Viya retrieves information about users and groups from the identity provider.
User Groups
User groups are required to make shared resources available to multiple users. Creating groups greatly simplifies the management of user access permissions as administrators can assign permissions to groups once rather than assigning them to many users individually. Administrators can also create “parent” groups that include subgroups of users who require access to similar resources. That way, they can grant access to the parent group instead of granting access to each subgroup individually.
Custom Groups
Custom groups effectively implement a role within the SAS Viya platform. Members of these groups have access to privileges associated with the role, which can be viewed from the rules page associated with the group. Certain custom groups, such as SAS Administrators, are provided out of the box with SAS Viya deployment. Members of the SAS Administrators group can create domains, groups, and add credentials for other users on their behalf. They can also manage access to resources and secure content. However, access to underlying data is not included by default for SAS Admins. They can create, run, and view reports only if they have been explicitly granted access to the underlying data.
Authorisation Rules
Through user and group IDs, the SAS Viya administrator ensures that all user access to SAS functionality and data remains compliant with prevailing policies. The SAS Environment Manager interface can be used for most identity management tasks within SAS Viya. For example, administrators can apply a set of authorisation rules to principals for the chosen object and implement the desired effective access result.
Access granted, but can the data leave?
Access control does not end when a user is granted access to data. You also need to consider what a user can subsequently do with the data, particularly when data can be downloaded or exported from the governed environment. For example, a user working in SAS Data and AI Studio may have legitimate access to governed data for analysis, but the ability to download or export that data beyond the governed environment may need to be restricted. SAS Administrators can restrict the ability to download, export or copy-paste data for users through configuration in SAS Environment Manager.
Access controls with SAS Industry Solutions
SAS industry solutions such as Risk Management and Fraud and Financial Crime compliance extend SAS Viya’s capabilities by adding pre-defined roles that come with a specific set of permissions. These include a defined list of things a user can do and cannot do.
For example, see Who controls what? A simple guide to user access roles in ALM on Viya
How SAS fits alongside other governance and security platforms
SAS Viya doesn’t need to become the security system of record for every database, lakehouse or cloud service. When data remains in an external platform, that source system should continue to enforce its own roles and policies.
Where the architecture supports identity propagation or appropriate credential mapping, organisations can retain controls in systems such as Snowflake or SQL Server instead of recreating every database privilege in SAS.
SAS applies authorisation at the appropriate enforcement point - protecting SAS content and functionality, securing data managed in CAS, organising users and groups, and supporting governance with metadata, lineage and accountability.
The result is not one product replacing another. It is a set of controls that work together.
Related resources
Security with SAS Viya Platform - concepts, rules, permissions and interfaces
For more information on SAS Data Management capabilities in SAS Viya visit the software information page here.
For more information on SAS Risk Management Solutions visit the software information page here.
For more information on SAS Fraud and financial crime compliance solutions visit the software information page here.
A practical example of how SAS Viya enables secure and scalable access to data stored in Cloud Object Storage using DuckDB
... View more
What can students build over the weekend? Quite a lot, especially when creativity, technical skills and AI come together.
This autumn, SAS supported two student hackathons in Glasgow, continuing its close to decade-long involvement with the University of Glasgow hackathon and supporting a University of Strathclyde hackathon for the first time. Together, the events attracted around 450 students, with approx. 300 attending the University of Glasgow hackathon and 150 the Strathclyde event.
SAS developers and Glasgow graduates Stewart Brown and Luke Poutney have been actively involved in the event in recent years. Here, they share insight into SAS's involvement with hackathons and other student events in Scotland.
Two universities, two very different challenges
Both hackathons took place in October 2026 and were organised by student technology societies: StrathHack26 by Strathclyde Students’ Union Coding and Technology Society (CATS), followed a week later by Do You Have the GUTS?, organised by Glasgow University Tech Society (GUTS).
It’s incredible to think that the teams tackled all these challenges in just 24 hours! Take a look at what they were working on.
At Strathclyde, students tackled BothyBound, a challenge to develop an application for planning multi-day expeditions across Scotland.
The winning team created a solution that divided journeys into manageable stages, provided accommodation discovery (bothies, campsites, and more), analysed terrain & elevation details to understand route difficulty, estimated journey duration based on walking pace and distance, suggested water sources, included built-in offline route access, added a community space for sharing adventures, and an AI-powered wild-camping suitability tool evaluating images on areas found online tagged to locations.
The runner-up team concentrated on the intelligence behind the route planning, developing a neural-network-based algorithm that could learn from previous expeditions and adapt recommendations to a hiker’s experience.
At the University of Glasgow, the challenge had a very different storyline: someone was plotting to set off fireworks at the campus, in the Boyd Orr Building, one of the buildings at the University of Glasgow. Students received data on people, buildings, and movements across campus and had to identify suspicious behaviour, including the mastermind behind the plot.
The winning team combined a timeline, map, and network graph to uncover inconsistencies in student movements and testimonies. They even created a “story mode” that walked users through the day hour by hour, highlighting suspicious activity as the story unfolded.
What happens when AI joins the hackathon?
This year also showed how quickly AI is changing what students can achieve in a limited amount of time.
Students were free to use AI tools, and the SAS team noticed a difference. Instead of spending hours building the foundations of an application, teams could get started much faster and devote more time to ideas, algorithms, and user experience. Many projects therefore felt far more complete than in previous years.
But AI did not replace critical thinking. The strongest teams used the extra time to question approaches, experiment, and solve the more difficult parts of their challenge.
As Luke Poutney put it: “AI maybe ups the floor of what students are capable of doing, and it also ups the ceiling. If you give very gifted students these tools, they can spend less time on what is time-consuming and more time being creative.”
From hackathon to SAS
Hackathons also give students something a traditional careers event rarely can: the opportunity to spend a weekend solving problems alongside people who actually develop SAS technology.
“There’s a certain level of fun that comes with it,” Stewart Brown explained. “At more networking-focused events, there can be that corporate overtone. A hackathon gives you the chance to get beyond that." Luke Poutney adds: "When you're in the room with the same group of people over a weekend, you can break down those barriers a little bit. They can learn more genuinely about your company, about you and about what you offer.”
That connection continued when the winning and runner-up teams were invited to the SAS Glasgow office.
SAS VP of Applications Sebastien Charrot welcomed the students before they presented their successful projects to SAS colleagues. The visit finished with conversations over pizza with employees and a tour of the office. Students were especially curious about what working at SAS is really like.
It was refreshing to speak with the students in an environment which felt relaxed, away from the competitive and tiring nature of the hackathon or the intensity of a busy tech fair. The conversations, sharing of experiences in software development, curiosity about how AI had impacted the way we work and study, and celebration of the fantastic projects made the day feel valuable for both the students and the SAS employees who took part.
None of this would happen without SAS volunteers giving their time and expertise.
At the University of Glasgow: Luke Poutney, David Luyt, Gary Curran, Harry Singh, Srijith Seetharaman, Gianmarco Cornacchia and Aiden Dewar supported the event.
At the University of Strathclyde: Stewart Brown, Luke Poutney, Mark Turnbull, Will Rodgers, Youssef Ramadan and Aiden Dewar were involved.
Both experiences show what these hackathons are really about: giving students the space to experiment, allowing SAS colleagues to see emerging talent in action, and building relationships between universities, students and industry that can continue well beyond a single weekend.
More than a weekend collaboration
The relationship with the University of Glasgow goes well beyond the hackathon.
For the past four years SAS has participated as a 'customer' in the University of Glasgow’s mandatory third-year team project, where students spend six months working in teams on a real-world company challenge, with regular customer check-ins.
At the University of Strathclyde, SAS is working with the MSc Data Analytics programme, particularly its experiential Data Analytics in Practice module.
These activities can also open doors beyond the classroom. Two students who took part in a SAS team project two years ago went on to complete internships at SAS and now work here as Associate Software Developers. Additionally, one of the winners of last year’s Glasgow hackathon also completed a SAS internship this summer.
... View more