# sassoftware/ci360-download-client-sas architecture

> Architecture diagram of the GitHub repository sassoftware/ci360-download-client-sas, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-01). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sassoftware/ci360-download-client-sas
- Repository: https://github.com/sassoftware/ci360-download-client-sas

## Overview

This is a SAS Customer Intelligence 360 download client: a SAS user configures and runs the download macro to retrieve cloud data locally. Documented options include mart, category, schema, time range, sub-hourly partitions, test-mode data, and reset data; download history is kept under data/dsccnfg. The tree suggests separate SAS macros for request, schema, file, range, reset, and version tasks, but their call relationships cannot be verified from the supplied excerpts, so those links are omitted. Only generatejwt.py was sampled.

Main entry points: [`macros/dsc_download.sas`](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download.sas) (Download entry), [`data/dsccnfg`](https://github.com/sassoftware/ci360-download-client-sas/tree/master/data/dsccnfg) (Download history)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_run["Download runtime"]
  node_download["Download entry<br/>[dsc_download.sas]"]
  node_http_request["HTTP requests"]
  node_download_urls["Download URLs"]
  node_file_download["File download"]
  node_data_download["Data download"]
  node_extract["File extraction"]
end

subgraph group_features["Download capabilities"]
  node_schema["Schema retrieval<br/>[dsc_get_schema.sas]"]
  node_schema_sync["Schema sync"]
  node_range["Range processing"]
  node_reset_urls["Reset URLs"]
  node_reset_mart["Mart reset<br/>[dsc_reset_mart.sas]"]
  node_reset_records["Reset records"]
  node_nonpartitioned["Nonpartitioned data"]
  node_partitioned["Partitioned data<br/>[dsc_download.sas]"]
  node_version_update["Version update"]
  node_cdm_version["CDM version"]
end

subgraph group_state["Configuration and history"]
  node_download_history[("Download history")]
  node_table_config["Table configuration<br/>[cdm_table_list.txt]"]
  node_jwt["JWT generator<br/>[generatejwt.py]"]
end

node_sas_user(("SAS user"))
node_local_data[("Local data")]
node_ci360["CI360 cloud"]
node_gateway["Access point"]

node_sas_user -->|"runs"| node_download
node_download -->|"downloads data"| node_ci360
node_download -->|"writes downloads"| node_local_data
node_download -->|"uses history"| node_download_history

click node_download "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download.sas"
click node_http_request "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_httprequest.sas"
click node_download_urls "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_download_urls.sas"
click node_file_download "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_file.sas"
click node_data_download "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_data.sas"
click node_extract "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_extract_file.sas"
click node_schema "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_schema.sas"
click node_schema_sync "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_schema_sync.sas"
click node_range "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_processrange.sas"
click node_reset_urls "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_reset_urls.sas"
click node_reset_mart "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_reset_mart.sas"
click node_reset_records "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_reset_records.sas"
click node_nonpartitioned "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_non_partitioned.sas"
click node_partitioned "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download.sas"
click node_version_update "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_version_update.sas"
click node_cdm_version "https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_cdm_version_update.sas"
click node_download_history "https://github.com/sassoftware/ci360-download-client-sas/tree/master/data/dsccnfg"
click node_table_config "https://github.com/sassoftware/ci360-download-client-sas/blob/master/data/dsccnfg/cdm_table_list.txt"
click node_jwt "https://github.com/sassoftware/ci360-download-client-sas/blob/master/data/dsccnfg/generatejwt.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_download,node_http_request,node_download_urls,node_file_download,node_data_download,node_extract,node_sas_user toneBlue
class node_schema,node_schema_sync,node_range,node_reset_urls,node_reset_mart,node_reset_records,node_nonpartitioned,node_partitioned,node_version_update,node_cdm_version,node_local_data toneAmber
class node_download_history,node_table_config,node_jwt toneMint
class node_ci360,node_gateway toneIndigo
```

## Components

### Download runtime

- [Download entry](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download.sas): `macros/dsc_download.sas`
- [HTTP requests](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_httprequest.sas): `macros/dsc_httprequest.sas`
- [Download URLs](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_download_urls.sas): `macros/dsc_get_download_urls.sas`
- [File download](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_file.sas): `macros/dsc_download_file.sas`
- [Data download](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_data.sas): `macros/dsc_download_data.sas`
- [File extraction](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_extract_file.sas): `macros/dsc_extract_file.sas`

### Download capabilities

- [Schema retrieval](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_schema.sas): `macros/dsc_get_schema.sas`
- [Schema sync](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_schema_sync.sas): `macros/dsc_schema_sync.sas`
- [Range processing](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_processrange.sas): `macros/dsc_processrange.sas`
- [Reset URLs](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_get_reset_urls.sas): `macros/dsc_get_reset_urls.sas`
- [Mart reset](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_reset_mart.sas): `macros/dsc_reset_mart.sas`
- [Reset records](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_reset_records.sas): `macros/dsc_reset_records.sas`
- [Nonpartitioned data](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download_non_partitioned.sas): `macros/dsc_download_non_partitioned.sas`
- [Partitioned data](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_download.sas): `macros/dsc_download.sas`
- [Version update](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_version_update.sas): `macros/dsc_version_update.sas`
- [CDM version](https://github.com/sassoftware/ci360-download-client-sas/blob/master/macros/dsc_cdm_version_update.sas): `macros/dsc_cdm_version_update.sas`

### Configuration and history

- [Download history](https://github.com/sassoftware/ci360-download-client-sas/tree/master/data/dsccnfg): `data/dsccnfg`
- [Table configuration](https://github.com/sassoftware/ci360-download-client-sas/blob/master/data/dsccnfg/cdm_table_list.txt): `data/dsccnfg/cdm_table_list.txt`
- [JWT generator](https://github.com/sassoftware/ci360-download-client-sas/blob/master/data/dsccnfg/generatejwt.py): `data/dsccnfg/generatejwt.py`

### Other components

- **SAS user**
- **Local data**
- **CI360 cloud**
- **Access point**

## Connections

- SAS user → Download entry: runs (evidence: `README.md`)
- Download entry → CI360 cloud: downloads data (evidence: `README.md`)
- Download entry → Local data: writes downloads (evidence: `README.md`)
- Download entry → Download history: uses history (evidence: `README.md`)
