Google Cloud Storage Data Source

Specifies a Google Cloud Storage directory for loading and saving files with SAS Cloud Analytic Services.

Valid in:CASLIB Statement
PROC CASUTIL: DELETESOURCE, LOAD, and SAVE Statements
See:For the supported file types, see Path-Based Data Source Types and Options.

Syntax

CASLIB caslib-reference-name
PROC CASUTIL;
DELETESOURCE CASDATA="file-name” <INCASLIB="caslib"> <deletesource-statement-options>;
PROC CASUTIL;
LOAD CASDATA="file-name" CASOUT="table-name"
<DATASOURCEOPTIONS=(...options...)> <load-statement-options>;
PROC CASUTIL;
SAVE CASDATA="table-name" CASOUT="file-name"
<DATASOURCEOPTIONS=(...options...)> <save-statement-options>;

Options for Google Cloud Storage Data Source

AUTHDOMAIN="authentication-domain"

specifies a pre-defined authentication domain to use when you connect to your data source.

An administrator defines an authentication domain. The authentication domain returns the credentials that are needed to access your data source. For more information, see Credentials Domain: How to (CLI) in SAS Viya Platform: External Credentials.

Valid inCASLIB statement

BUCKET="string"

specifies the URI for your Google Cloud Storage bucket.

Valid inCASLIB Statement
PROC CASUTIL: DELETESOURCE, LOAD, and SAVE Statements

GCSAUTHFILE="string"

specifies the path for your Google Cloud Storage authentication file for your Google service account credential file.

Valid inCASLIB Statement
PROC CASUTIL: DELETESOURCE, LOAD, and SAVE Statements

Details

Support for Google Cloud Storage in the SAS Viya Platform

For system requirements, see System Requirements for the SAS Viya Platform.

The SAS Viya platform can access data that is stored in Google Cloud Storage by providing two main components:

The following resource might also be helpful: The Parquet LIBNAME statement enables you to connect SAS Compute Server with Parquet tables in Google Cloud Storage or in Amazon S3.

Example: Add a Google Cloud Storage Caslib

cas auto;

caslib gcs
   datasource=(
     srctype="gcs"
     bucket="mybucket"
     gcsauthfile="myGCSauthfile"
     );
Last updated: September 15, 2026