Général

103 Résultats disponibles

Général
Instant Performance Boost: Creating Indexes on the Fly with the INDEX= Data Set Option

Defines one or more indexes for a new output SAS data set.

View code
Général
Mastering table.tableInfo: How to Search, Filter, and Manage CAS Tables Like a Pro

Displays detailed information about a CAS table, including metadata such as structure, number of rows, and other prop...

View code
Général
SAS Merge Without a BY Statement? Avoiding Common Data Step Pitfalls

This document explains how to merge SAS data sets using the MERGE statement without the BY statement, an operation of...

View code
Général
How to Generate and Filter Data Efficiently in a SAS DATA Step

This example shows how to use the FIRSTOBS= and OBS= data set options with the WHERE statement to specify a segment o...

View code
Général
From Local Work to CAS: 4 Essential Scripts for SAS Viya Table Promotion

This feature allows creating a copy of an existing table loaded into memory within a SAS Cloud Analytic Services (CAS...

View code
Général
Automate Your Environment: A Smart Script to Dynamically Load SAS Macro Libraries

Utility macro to dynamically add a path or fileref to the autocall macro search list (SASAUTOS system option).

View code
Général
Sans titre

This SAS script demonstrates the use of the ODBC data connector in SAS Viya 4 to access column metadata for a CAS tab...

View code
Général
Sans titre

Utility script to extract and display the absolute path and name of the currently executing SAS file.

View code
Général
Sans titre

This SAS script shows how to create a partitioned data table in an external database (likely Hadoop via SAS/ACCESS) a...

View code
Général
Sans titre

The SAS script illustrates the use of IF-THEN/ELSE statements for conditional data processing within two distinct DAT...

View code
Général
Sans titre

This script illustrates the use of PROC PRINT to display data and PROC TRANSPOSE to pivot rows and columns of the SAS...

View code
Général
Sans titre

Script performing a survival analysis with automatic generation of graphs exported in HTML format.

View code
Général
Sans titre

This SAS script demonstrates a getting started example for the NLMIXED procedure, fitting a logistic growth curve mod...

View code
Général
Sans titre

Function-style macro to remove duplicates from a space-delimited list of items.

View code
Général
Sans titre

Utility macro to reset page numbering and clear windows in older environments.

View code
Général
Sans titre

Script for dynamic creation of a physical directory and library assignment.

View code
Général
Sans titre

This script tests the creation and operation of a web service named `sendObj` using the `mx_createwebservice` and `mx...

View code
Général
Sans titre

Demonstration of using the IFN function compared to classical IF-THEN/ELSE conditional logic.

View code
Général
Sans titre

SAS sample library script illustrating an ordinal logistic regression on experimental cheese tasting data.

View code
Général
Sans titre

Script automating the creation of personalized PDF certificates and sending them via email.

View code
Général
Sans titre

Educational script illustrating how to dynamically split a table into multiple subtables based on distinct variable v...

View code
Général
Sans titre

This script lists active CAS sessions and exports the results to a local SAS table.

View code
Général
Sans titre

Script illustrating the use of loops and logical conditions within the definition of an ODS Tagset.

View code
Général
Sans titre

Utility macro for executing a SAS code snippet for each item in a defined list.

View code
Général
Sans titre

Demonstration of substring extraction and data export via ODS.

View code
Général
Sans titre

This SAS script generates a box plot of the average power produced by a turbine over several days, using embedded data.

View code
Général
Sans titre

Utility macro that generates and displays IF-THEN-DO instruction blocks in the SAS log for a given variable and list ...

View code
Général
Sans titre

This SAS macro, named _PAD, is designed to generate a repeated character string ('pad') to fill a space up to a speci...

View code
Général
Sans titre

Utility macro for physically deleting SAS datasets, indexes, and catalogs via system (OS) commands.

View code
Général
Sans titre

This SAS script demonstrates how to execute a DATA step directly within the SAS Cloud Analytic Services (CAS) environ...

View code
Général
Sans titre

This example reads a data file into a specified real-time service, and the service's output appears in the indicated ...

View code
Général
Sans titre

Enables data transfer between a PostgreSQL database and SAS Cloud Analytic Services (CAS) in the SAS Viya 4 environment.

View code
Général
Sans titre

Analysis of the association between maternal alcohol consumption and congenital malformations.

View code
Général
Sans titre

This SAS script analyzes teratology data using binomial logistic regression with PROC GENMOD to model the proportion ...

View code
Général
Sans titre

This feature allows loading an existing SAS dataset from the SAS environment into the SAS Viya Cloud Analytic Service...

View code
Général
Sans titre

SAS script performing a one-sided or two-sided Student's t-test on internal data, including the manual calculation of...

View code
Général
Sans titre

This document describes how to download an ASTORE model from a CAS server to the local file system. This allows model...

View code
Général
Sans titre

SAS script to read, clean, and convert weight data with varied units (kg, lbs) into a standardized unit (lbs).

View code
Général
Sans titre

Separates data into valid and invalid sets by checking for the presence of non-alphanumeric characters.

View code
Général
Sans titre

This script performs a survival analysis on data from laryngeal cancer patients. It prepares the data, fits Cox propo...

View code
Général
Sans titre

Example of using the MULTTEST procedure to perform multiplicity adjustments based on bootstrap resampling in toxicolo...

View code
Général
Sans titre

This SAS script demonstrates the use of the MODECLUS procedure for cluster analysis and the SGPLOT procedure for visu...

View code
Général
Sans titre

Macro retrieving the list of available metadata object types on a SAS metadata server (OMR).

View code
Général
Sans titre

Utility macro to determine the SAS user ID based on the session context (Viya Compute, Stored Process, or Workspace S...

View code
Général
Sans titre

Macro to display a message in a standardized JavaScript alert box within a SAS web application.

View code
Général
Sans titre

SAS macro that defines an FCMP function to calculate the minimum display length of a numeric value.

View code
Général
Sans titre

Code skeleton for a standardized system macro, including documentation headers and common parameters.

View code
Général
Sans titre

Macro to list the members of a specified SAS library.

View code
Général
Sans titre

Analysis and forecasting of Southern Hemisphere temperatures from external CSV data, including linear regression, aut...

View code
Général
Sans titre

This SAS script generates several series of random data using different distributions and logic, then visualizes each...

View code
Général
Sans titre

This script illustrates calling a SAS macro (`%puttime`) to display the current time in the log, demonstrating macro ...

View code
Général
Sans titre

This SAS script calculates inbreeding and relationship coefficients for a swine population and identifies the least r...

View code
Général
Sans titre

Defines and uses an 'ifelse' utility macro for conditional evaluation of character strings.

View code
Général
Sans titre

This script illustrates the use of PROC CALIS for Structural Equation Models (SEM) analysis, with several model speci...

View code
Général
Sans titre

Analysis of Major League Baseball (MLB) player salaries from 1986 using the HPREG procedure for model selection.

View code
Général
Sans titre

Macro converting a SAS HLS hexadecimal color code to decimal format.

View code
Général
Sans titre

Documentation example for PROC HPCANDISC using Fisher's (1936) Iris data and visualizing the results.

View code
Général
Sans titre

Canonical discriminant analysis of fish measurement data and visualization of results.

View code
Général
Sans titre

This SAS script demonstrates the use of PROC GLM for analysis of variance with different sums of squares (Type I to I...

View code
Général
Sans titre

This SAS script performs an unbalanced analysis of variance (ANOVA) for a two-factor experimental design with interac...

View code
Général
Sans titre

This SAS script defines a macro to extract the date, time, and size of a specified file by executing a 'dir' system c...

View code
Général
Sans titre

Utility macro that returns all elements of a list, except the last one.

View code
Général
Sans titre

Script performing a permutation (randomization) test to assess the statistical significance of the mean difference be...

View code
Général
Sans titre

Demonstration script generating synthetic data for a Tweedie distribution and fitting generalized linear models.

View code
Général
Sans titre

Example of using the ODS HTMLPANEL tagset to create grouped (paneling) chart layouts.

View code
Général
Sans titre

This SAS script performs a statistical analysis of categorical data from a clinical trial using the PROC FREQ procedu...

View code
Général
Sans titre

Script generating a SAS table containing the first 20 Fibonacci numbers.

View code
Général
Sans titre

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

View code
Général
Sans titre

This script illustrates a principal component analysis and a factor analysis on socio-economic data using the FACTOR ...

View code
Général
Sans titre

Script generating an HTML pie chart from included data.

View code
Général
Sans titre

Uses the chmod command to modify file permissions and authorizations on the operating system.

View code
Général
Sans titre

This script creates individual pie charts by age, saves them as images, and uses them as fill patterns for a final ch...

View code
Général
Sans titre

This SAS script creates an `eg_meta` metadata dataset in the `meta` library from inline data. It defines variable att...

View code
Général
Sans titre

This script initializes a temporary SAS library named `dsSQL`, intended to store temporary views generated during mac...

View code
Général
Sans titre

SAS macro to download Fama-French 3 factors (daily) from an online source and load them into a SAS dataset.

View code
Général
Sans titre

This SAS script offers two main functionalities via macros: analyzing dependencies between SAS macros and verifying t...

View code
Général
Sans titre

Utility macro to define macro variables containing the character strings for NOTE, WARNING, and ERROR messages in the...

View code
Général
Sans titre

This SAS script creates an initial dataset 'b' from in-line data, then transforms this dataset into 'newdata' by addi...

View code
Général
Sans titre

SASUnit macro to create the 'scn' table containing information about test scenarios.

View code
Général
Sans titre

This SAS script creates a dataset containing various representations of dates and times, including a specific date an...

View code
Général
Sans titre

Simple example of using the COUNT function to count occurrences of a substring.

View code
Général
Sans titre

Macro to display the names, types, and formats of variables for one or more datasets.

View code
Général
Sans titre

This SAS script defines and uses FCMP functions to calculate a person's age relative to a given date or the current d...

View code
Général
Sans titre

Functional macro to replace the last occurrence of ', ' (comma-space) in a character string with ' and '.

View code
Général
Sans titre

This SAS script illustrates the use of the CAUSALMED procedure to analyze the effect of smoking on infant mortality, ...

View code
Général
Sans titre

Technique to modify the length of a character variable without altering the column order in the SAS table.

View code
Général
Sans titre

This macro deletes a set of macro variables created according to an 'array' scheme (e.g., prefix1, prefix2, ..., pref...

View code
Général
Sans titre

Test macro verifying that a SAS table contains no observations. It generates an event if the table contains data.

View code
Général
Sans titre

Validation macro that checks for the existence of a fileref and generates an event in case of failure.

View code
Général
Sans titre

SAS macro for sending and recording personalized messages or log information into a specific dataset.

View code
Général
Sans titre

Macro to execute a shell command on a remote server via SAS/CONNECT and retrieve the result into a local macro variable.

View code
Général
Sans titre

Utility macro designed to generate robust WHEN(...) statements containing long lists of values or ranges, used within...

View code
Général
Sans titre

Examples of htmSQL scripts (legacy web technology) integrating SAS SQL results into HTML pages.

View code
Général
Sans titre

This SAS script uses the HTTP procedure to send an HTTP request to a web server. The request body is defined inline w...

View code
Général
Sans titre

Utility macro to retrieve the RCS (head) version of a file.

View code
Général
Sans titre

This SAS macro checks if a given path is absolute or empty. If the path is not absolute and not empty, it prefixes it...

View code
Général
Sans titre

This SAS script creates an internal 'account' dataset from raw data, sorts it by town and company to create 'bytown',...

View code
Général
Sans titre

SAS script performing the creation of internal datasets, their sorting, and conditional merging to analyze student re...

View code
Général
Sans titre

This SAS script implements Tarone's (1979) two-sided Goodness-of-Fit (GOF) test. It evaluates the null hypothesis of ...

View code
Général
Sans titre

Educational script demonstrating SAS code optimization by replacing repetitive instructions with arrays and DO loops ...

View code
Général
Sans titre

Educational script illustrating the optimization of missing value recoding using arrays (ARRAY) and loops.

View code
Général
Sans titre

This SAS script performs a survival analysis to compare two groups of gastric cancer patients (chemotherapy vs. chemo...

View code
Général
Sans titre

Activation of the ODS graphics system for the SAS session.

View code