{"id":23331145,"url":"https://github.com/sassoftware/ci360-cdm-loader-sas","last_synced_at":"2026-01-31T23:03:17.236Z","repository":{"id":54711809,"uuid":"297714305","full_name":"sassoftware/ci360-cdm-loader-sas","owner":"sassoftware","description":"This utility loads previously downloaded Common Data Model (CDM) SAS data sets into an on-prem 3rd party database.","archived":false,"fork":false,"pushed_at":"2024-07-30T15:22:41.000Z","size":336,"stargazers_count":12,"open_issues_count":0,"forks_count":3,"subscribers_count":18,"default_branch":"main","last_synced_at":"2025-06-10T19:06:49.837Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"SAS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sassoftware.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":"SUPPORT.md","governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-09-22T16:53:40.000Z","updated_at":"2024-09-05T09:48:29.000Z","dependencies_parsed_at":"2024-06-07T16:25:02.169Z","dependency_job_id":"b6525f72-1ab3-417c-885f-9d3c1f321c0c","html_url":"https://github.com/sassoftware/ci360-cdm-loader-sas","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sassoftware/ci360-cdm-loader-sas","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sassoftware%2Fci360-cdm-loader-sas","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sassoftware%2Fci360-cdm-loader-sas/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sassoftware%2Fci360-cdm-loader-sas/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sassoftware%2Fci360-cdm-loader-sas/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sassoftware","download_url":"https://codeload.github.com/sassoftware/ci360-cdm-loader-sas/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sassoftware%2Fci360-cdm-loader-sas/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28959697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-31T22:20:19.638Z","status":"ssl_error","status_checked_at":"2026-01-31T22:18:07.061Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-20T22:31:31.369Z","updated_at":"2026-01-31T23:03:17.193Z","avatar_url":"https://github.com/sassoftware.png","language":"SAS","funding_links":[],"categories":[],"sub_categories":[],"readme":"#  SAS Customer Intelligence 360 CDM Loader - SAS\n\n## Overview\nThis is a sample client that loads data sets from the Common Data Model (CDM) for SAS Customer Intelligence 360 \ninto a third-party database.\n\n\u003c!--- ## What's New --\u003e\n\n## Prerequisites\nBefore you can run the program, complete these steps:\n1. Install Base SAS. The version depends on the database that you are loading data into:\n      * For the Snowflake database, install Base SAS 9.4M7 (with Unicode Support).\n      * For all other databases, install Base SAS 9.4M4 (with Unicode Support).\n2. Enable SAS to use the XCMD System Option. For more information, see the \n  [Help Center for SAS 9.4](https://go.documentation.sas.com/?cdcId=pgmsascdc\u0026cdcVersion=9.4_3.4) and search for the \n  XCMD option.\n\n## Installation\nDownload the CDM loader program from this repository and save it to the machine where it will run (your local machine, \nfor example).\n\n## Getting Started\nBefore you set up the CDM loader to run, familiarize with the database setup and some best practices.\n\n### Setting up the On-Premises Database Tables\nBefore you can load CDM data into the third-party database, the tables must be created in the database using\nan appropriate DDL file.e.g for Oracle database use ./ddl/ci_cdm3_ddl_oracle.sas\n\nThe /ddl folder contains DDL macros to create the tables in many third-party databases. If a DDL macro  \ndoes not exist for a specific database, use an existing DDL as a template to start from.\n\nThe /ddl folder also contains corresponding macros to delete (DROP) the tables from a database. These \nmacros can be used to remove the existing tables if necessary.\n\nYou only need to run the DDL macros once to create the tables in your database. However, if you delete the tables you will need \nto run the DDL macros again.\n\n**Note:** Your database credentials are needed to create or delete the tables. These credentials are defined in the \n/macros/cdm_launch.sas file. For information on how to set your credentials, see [Examples](#examples).\n\nThis program (the CDM loader) does not download the CDM data sets. This program uses data sets that\nwere already downloaded through the download API (or with the \n[ci360-download-client-sas program](https://github.com/sassoftware/ci360-download-client-sas) on GitHub).\n\n### Best Practice for Loading Data Sets\nWhen you download data sets that are used with the CDM loader, you should delete previously downloaded \ndata sets before you download new data with the ci360-download-client-sas program. Data is appended to some data sets, \nso the size of those sets continues to grow.\n\nBy deleting previously downloaded data before a new download attempt, you can improve performance by ensuring that \nonly new or updated data is loaded into the database.\n\nHowever, if you are using other utilities to process the downloaded data, you should evaluate whether you need to delete \nthe existing data sets between downloads.\n\n## Running the CDM Loader\n\n1. Open BASE SAS 9.4M4 (with Unicode Support).\n2. Open the cdm_launch.sas macro from the /macros folder\n3. Set the required variables in the cdm_launch.sas macro.\n\n\n## Examples\n\nThese examples show how to set the variables in cdm_launch.sas.\n\n1. Define variables for file locations and the file system:\n   * the location where the CDM loader is installed\n   * the location where the download client is installed\n   * the \"Slash\" character, which is the directory separator for your file system. Set this appropriately for either\n     a Microsoft Windows or Unix platform.\n     \n   ```\n   %let CDMHome=/dev/sassoftware/ci360-cdm-loader-sas;\n   %let CDMMart=/dev/sassoftware/ci360-download-client-sas;\n   %let Slash = /;\n   ```\n\n2. Define the third-party database name and the credentials to access the database:\n   ```\n   %let dbname=oracle;\n   %let dbpath=orapath\n   %let dbschema=myschema;\n   %let dbuser=myuser;\n   %let dbpass=\"mypass\";\n   ```\n\n### Migrating to Schema 16\nIf you are using CDM loader with schema 10. please update your database  to schema 16 using alter ddl file  ./ddl/ci_cdm3_alter_ddl_\u003cdbname\u003e.sas .\ne.g. if you are using oracle as databasee alter file is ci_cdm3_alter_ddl_oracle.sas .\nPlease run the alter ddls and then run the cdm loader program.\nUse updated SAS download client for schema16.\n\n\n### Troubleshooting\nThe Postgres DDL, including Aurora Postgres, need to be run as a superuser to avoid permission error while executing disable trigger code:\n\n## Contributing\n\nWe welcome your contributions! Please read [CONTRIBUTING.md](CONTRIBUTING.md) for details on how to submit contributions to this project.\n\n## License\n\nThis project is licensed under the [Apache 2.0 License](LICENSE).\n\n## Additional Resources\nFor more information, see the [Learn Page](https://support.sas.com/en/software/customer-intelligence-360-support.html) for SAS Customer Intelligence 360.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassoftware%2Fci360-cdm-loader-sas","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsassoftware%2Fci360-cdm-loader-sas","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsassoftware%2Fci360-cdm-loader-sas/lists"}