Articles in category

Administration

94 Résultats disponibles

CODE SAS
SAS Viya Platform File Service

The SAS Viya Platform File Service allows storing, retrieving, and deleting files kept in the SAS...

Lire la suite
CODE SAS
Revert a Table to Inherited Access

This feature allows you to remove all direct access controls applied to a CAS table, thus reverti...

Lire la suite
CODE SAS
Generate a Job Status Data Set

This example generates a data set that provides information about tasks currently running or exec...

Lire la suite
CODE SAS
Describe a SAS Data Set

This example illustrates the output of the CONTENTS statement for the Group data set. The output ...

Lire la suite
CODE SAS
Add an Oracle Caslib

This feature allows adding a caslib to connect to an Oracle database in SAS Viya 4, making data a...

Lire la suite
CODE SAS
Add a File System Path Caslib

This feature allows adding a caslib (CAS library) based on a file system path, facilitating acces...

Lire la suite
CODE SAS
Extracting database library information from metadata

This script extracts information about database management system (DBMS) type libraries defined i...

Lire la suite
CODE SAS
Extracting Deployment Directories from SAS Metadata

This SAS script extracts the list of deployment directories defined in SAS metadata, along with a...

Lire la suite
CODE SAS
Orphan Foreign Key Cleanup in Metadata

Identifies and, optionally, deletes foreign keys (ForeignKey) that do not have a 'PartnerUniqueKe...

Lire la suite
CODE SAS
Unlock a SAS Dataset

Utility macro to remove the lock on a SAS dataset.

Lire la suite
CODE SAS
Netezza Database Schema Modification for CI360

This script modifies the structure of the Common Data Model (CDM) for CI360 on a Netezza database...

Lire la suite
CODE SAS
SAS/CONNECT and CAS Session Management

This SAS script establishes and manages SAS/CONNECT and CAS sessions on a SAS Viya environment. I...

Lire la suite
CODE SAS
CAS Session and Connect Management and Data Creation

This SAS script configures and manages a CAS session and a SAS/CONNECT session for code execution...

Lire la suite
CODE SAS
Copying Members Between SAS 9 Metadata Groups

SAS 9 script to extract members from one metadata group and add them to another. This script is s...

Lire la suite
CODE SAS
Updating Server Contexts for SAS Libraries

Administration script for SAS 9 that associates an application server context (e.g., SASSTP) with...

Lire la suite
CODE SAS
Configuring OneDrive Authentication via OAuth2

One-time setup script to obtain the OAuth2 authentication tokens required for interacting with Mi...

Lire la suite
CODE SAS
Session Options and Memory Configuration Overview

Script to view the current SAS session options and specifically inspect the memory configuration.

Lire la suite
CODE SAS
List available ODS styles

This SAS script lists the ODS styles available in the SAS environment using both PROC TEMPLATE an...

Lire la suite
CODE SAS
Displaying SAS System Options

Displays the complete list of SAS system options and their current values in the log.

Lire la suite
CODE SAS
Orchestrating and Testing SAS Viya Job Flows

This SAS script demonstrates the creation, configuration, and execution of job flows in SAS Viya,...

Lire la suite
CODE SAS
Extracting Metadata Deployment Directories

This script extracts and lists deployment directories and their associated files directly from SA...

Lire la suite
CODE SAS
Extracting File Paths from Metadata

Administration script querying the metadata server to list all registered file paths (Directory a...

Lire la suite
CODE SAS
Extracting extended library attributes (SAS 9 Metadata)

Script extracting extended attributes of a LASR library by querying a SAS 9 Metadata Server.

Lire la suite
CODE SAS
Stored Process Source Code Extraction via Metadata

Script to extract and potentially modify the source code of Stored Processes stored in the SAS me...

Lire la suite
CODE SAS
Extracting Stored Process Source Code (SAS Metadata)

This program retrieves the source code of Stored Processes registered in the SAS 9 Metadata Serve...

Lire la suite
CODE SAS
Extracting User IDs by Group (SAS 9 Metadata)

Script listing user IDs for each member of a given group via the SAS 9 metadata server.

Lire la suite
CODE SAS
CAS Disk Cache Monitoring

Script for monitoring and displaying CAS disk cache information.

Lire la suite
CODE SAS
Deleting Users from Metadata

Program that deletes a defined list of users and their associated logins from the metadata server.

Lire la suite
CODE SAS
File Backup to H: with Timestamp

Macro performing a backup copy of a file to a drive (default H:) by adding the date to the file n...

Lire la suite
CODE SAS
Macro AHGtoLocal - File copy to local

Utility macro to copy a file from a source location to a local destination directory via system c...

Lire la suite
CODE SAS
System File Creation Macro

Utility macro to create a text file containing a specific string using system commands (X command).

Lire la suite
CODE SAS
View effective access to a table

Analyzes effective (net) access to a table or caslib in SAS Viya using the `accessControl.whatIsE...

Lire la suite
CODE SAS
Simple Row-Level Filtering

This document explains how to define a simple row-level filter to control user access to data in ...

Lire la suite
CODE SAS
Remove a Direct Access Control

This example explains how to remove a direct access control on a CAS table, allowing access to be...

Lire la suite
CODE SAS
Promote a Format Library

Explains how to make a user-defined SAS format library available to all CAS sessions or promote i...

Lire la suite
CODE SAS
Make a new global CAS library available

This example makes the data in a new global CAS library available to a specific group. To provide...

Lire la suite
CODE SAS
SAS License Verification

Displays information related to the SAS software license.

Lire la suite
CODE SAS
List files in a caslib data source

This feature allows listing files present in a data source associated with a CAS caslib, displayi...

Lire la suite
CODE SAS
Hide a column for most users

This example illustrates how to modify access controls on a specific column of a CAS table to hid...

Lire la suite
CODE SAS
Designating CAS Superuser

This document describes concepts and methods for designating or managing superuser privileges in ...

Lire la suite
CODE SAS
Text Search by Unix System Command

Utility script to search for character strings in server files via Unix system commands.

Lire la suite
CODE SAS
DMS Tasks and Logs Cleanup

This functionality allows generating a report on DataFlux Data Management Server tasks, then usin...

Lire la suite
CODE SAS
Staging Git Files

This macro allows you to stage files from a local Git repository for the next commit.

Lire la suite
CODE SAS
Recursive Folder Deletion Macro

SAS macro to recursively delete a folder and all its subfolders and files.

Lire la suite
CODE SAS
Macro for deleting table constraints

This macro dynamically deletes constraints (primary, unique, not-null keys) from SAS tables by ge...

Lire la suite
CODE SAS
Update Stored Process Server Type

This macro updates the server type (Workspace or Stored Process) of a SAS Viya 4 stored process b...

Lire la suite
CODE SAS
Creating a Metadata Folder

SAS macro to create a folder in the SAS metadata repository. It uses system calls to execute an e...

Lire la suite
CODE SAS
Deleting a Stored Process via Metadata

SAS macro for deleting a Stored Process using its metadata path as a reference. It interacts dire...

Lire la suite
CODE SAS
Deleting a Library via SAS Metadata

SAS macro to delete a library definition from the metadata server (OMR) using its name.

Lire la suite
CODE SAS
Delete a Metadata Document

SAS macro for deleting a 'Document' type object from the SAS metadata repository using its full p...

Lire la suite
CODE SAS
Extracting User IDs from DefaultAuth Domain

This SAS script connects to the SAS metadata server to extract a list of all user IDs defined und...

Lire la suite
CODE SAS
Managing user-defined formats in CAS for Viya

This SAS script demonstrates how to create, save, promote, and make user-defined formats accessib...

Lire la suite
CODE SAS
Killsess - SAS Windows Session Termination

Utility macro to terminate a specific SAS session on Windows via the taskkill system command.

Lire la suite
CODE SAS
Automatic Launch of Excel via DDE

Script checking if Excel is open via DDE protocol and launching it via Windows system commands if...

Lire la suite
CODE SAS
Environment Configuration and Dependency Loading

Configuration script defining the working directory, initializing a library, and loading several ...

Lire la suite
CODE SAS
List and locate SAS VA reports via REST API

This script uses the SAS Viya REST API to retrieve the list of SAS Visual Analytics reports, then...

Lire la suite
CODE SAS
Extracting Extended Library Attributes via Metadata

Administration script querying the metadata server to extract extended attributes of a specific S...

Lire la suite
CODE SAS
Extracting Stored Process Prompts (Metadata API)

Retrieves the list of prompts associated with Stored Processes by querying the metadata server.

Lire la suite
CODE SAS
Extracting Database Library Metadata

Retrieves detailed information about database libraries defined in the metadata server.

Lire la suite
CODE SAS
Querying SAS Workload Orchestrator Job Information

This script queries the SAS Workload Orchestrator API to retrieve job information, then formats a...

Lire la suite
CODE SAS
Querying SAS Workload Orchestrator jobs via API

This script queries the SAS Workload Orchestrator API to retrieve information about jobs, then pr...

Lire la suite
CODE SAS
Extracting Job Source Paths from Metadata

Script retrieving the full source file path for each Job defined in the SAS metadata server (SAS ...

Lire la suite
CODE SAS
Retrieving Metadata Libraries

SAS macro retrieving the list of libraries defined in the SAS metadata server (SAS 9) and generat...

Lire la suite
CODE SAS
Extraction of Stored Process Source Paths (SAS 9 Metadata)

Administration script (legacy SAS 9) to extract the source file paths of Stored Processes from th...

Lire la suite
CODE SAS
Metadata Server Port and Service Extraction

Script retrieving the list of servers and connection ports configured in the SAS metadata server.

Lire la suite
CODE SAS
Rename a CAS table

This SAS script demonstrates how to rename an existing CAS table in a SAS Viya 4 environment usin...

Lire la suite
CODE SAS
Managing SAS Session Options

Saving, temporarily modifying, and restoring SAS system options.

Lire la suite
CODE SAS
Fileref and File Manipulation

This SAS script demonstrates the use of file I/O functions to check existence, assign, open, retr...

Lire la suite
CODE SAS
Extracting file information via OS command

This SAS macro executes an operating system command to get information about a file and stores th...

Lire la suite
CODE SAS
Opening FSP help via Windows system command

Retrieves system environment variables to attempt opening a specific help file via an external co...

Lire la suite
CODE SAS
Remote SAS Session Management and System Command

This SAS script manages the initiation and termination of a remote SAS session via SAS/CONNECT, w...

Lire la suite
CODE SAS
Managing SAS Formats in CAS

This SAS script demonstrates comprehensive management of user-defined formats in the SAS Viya CAS...

Lire la suite
CODE SAS
Displaying operating system information

Displays the current operating system identifiers in the SAS log.

Lire la suite
CODE SAS
Using PROC SCAPROC for Flow Analysis

Script illustrating the use of PROC SCAPROC to record the inputs/outputs of a DATA step.

Lire la suite
CODE SAS
System Environment Management via Macro

Use of the %sysexec command to modify the working directory and environment variables of the unde...

Lire la suite
CODE SAS
Checking system options and macro variables

This SAS script checks a system option (`SASAUTOS`) and displays the values of environment or mac...

Lire la suite
CODE SAS
Definition and Management of User-Defined CAS Actions

This SAS script defines and manages User-Defined Actions (UDAs) for SAS Cloud Analytic Services (...

Lire la suite
CODE SAS
Listing System Drives via DRIVEMAP

This script attempts to list the drives accessible to the operating system using the specific DRI...

Lire la suite
CODE SAS
External File Deletion Macro

SAS macro to delete an external file if it exists, using the system functions filename and fdelete.

Lire la suite
CODE SAS
File Listing via System Pipe (Windows)

Execution of a system command to list files in a directory and loading the result into a SAS table.

Lire la suite
CODE SAS
SAS Viya CAS Environment Information

This SAS Viya script provides detailed information about the Cloud Analytic Services (CAS) enviro...

Lire la suite
CODE SAS
Creation of SAS Viya role via DATA step and Metadata functions

This SAS DATA step script creates a new role in SAS Viya using Metadata functions. It adds attrib...

Lire la suite
CODE SAS
Adding Deployment Directories to SAS Metadata

This script adds a list of deployment directories to a specific application context (e.g., SASApp...

Lire la suite
CODE SAS
Creation of Authentication Domains

This SAS script creates authentication domains on the SAS metadata server using PROC METADATA.

Lire la suite
CODE SAS
Windows Temporary Directory Cleanup

SAS macro to delete a specific temporary directory (`c:\tempwork`) and its contents on a Windows ...

Lire la suite
CODE SAS
Re-associating File Objects via SAS 9 Metadata

Administrative script designed to reassign file objects from an old directory to a new one in the...

Lire la suite
CODE SAS
Updating Windows Login Domains

This script searches for logins associated with a specific Windows domain and updates them by rep...

Lire la suite
CODE SAS
System File Copy Macro (AHGtoSDD)

Utility macro to copy a physical file from one directory to another using system commands.

Lire la suite
CODE SAS
Dynamic SAS Environment Configuration

This macro dynamically configures SAS session options, including search paths for autocall macros...

Lire la suite
CODE SAS
Management and Connectivity to the SAS/SHARE Server

This document describes examples of managing a SAS/SHARE server (starting, stopping) and accessin...

Lire la suite
CODE SAS
Lilly Macro Library Refresh

This SAS macro, named AHGrefreshlilly, is designed to automate the refreshing and backup of a SAS...

Lire la suite
CODE SAS
System write macro via XCMD

Macro writing a value to a text file via a system command.

Lire la suite
CODE SAS
Massive addition of groups in SAS 9 metadata

Administration script to add all existing user groups to a target parent group via the metadata s...

Lire la suite
CODE SAS
Automatic Server Context Assignment (SAS 9 Metadata)

Administration script interacting with a SAS 9 metadata server to assign an application server co...

Lire la suite