This repository contains sample SAS programs that use SAS/ACCESS engines to connect to your data source. The samples are divided into two main directories: SAS Foundation and SAS Viya.
- Programs at the top-level platform directory are generic and can be used for any of their corresponding SAS/ACCESS engines.
- Programs that run for a specific SAS/ACCESS interface are found in the folder for that interface.
- Some engines have their own version of the generic programs, and those should be run instead.
Before you can connect to your data source using these programs, you must know the following items:
- User ID and password or authentication domain
- Server host name and port number, if the port is different than the default value.
To load the programs into the editor in SAS Studio:
- Click the download button on the right-hand side of the samples repository page on GitHub.
- Save the project on your computer.
- In the Explorer tab of the left-hand navigation pane, navigate to where you saved the sample files and open them.
To load the programs into the program editor in SAS windowing environment:
- Click the download button on the right-hand side of the samples repository page on GitHub.
- Save the project on your computer
- Click File > Open Program
- Navigate to where you saved the sample files and open them.
To load the sample files using the Git Integration feature in SAS Studio, refer here
To use the sample programs on your machine:
-
The sample files should be executed in the following order:
- createLibname
- createSampleData
- All sample files in your data-base specific directory
- The remaining sample files in the top-level platform directory
-
Replace the comments in the createLibname sample file with the appropriate values for your system.
- For the dbms macro, enter your engine name. For example, if your engine is postgres, type Postgres
- For the CONNOPT macro, enter your database connection information. See CONNOPT.md for engine-specific parameters
This project is licensed under the Apache 2.0 License.
For more information about usage and options that are available for your interface, see this information:
- SAS/ACCESS for Relational Databases
- Blog posts
- SAS Communities