Files
docs.datacontroller.io/docs/dcu-tableviewer.md
T
dc d95f440c4f docs(viewer): document full table search semantics with a screenshot
The "Full Table Search" section said only that a search box exists. It now
states the behaviour that users actually hit:

- the search covers every column at once, character columns by case sensitive
  CONTAINS and numeric columns by exact match
- the Numeric toggle switches to exact numeric matching
- an applied filter scopes the search
- results are capped by DC_MAXOBS_WEBVIEW (linked to the options page), and the
  row count next to the table name reports the match count
- a search with no matches shows the "No data found with given conditions"
  panel

Adds a screenshot of the search in action (docs/img/full-table-search.png),
captured from a running instance via the Cypress suite in the dc repo.
2026-09-16 00:52:12 +00:00

3.3 KiB

Data Controller for SAS: Viewer

The viewer screen provides a raw view of the underlying table. Choose a library, then a table, and click view to see the first 500 rows. A filter option is provided should you wish to view a different section of rows.

The following libraries will be visible:

  • All libraries available on startup (session autoexec)
  • Any libraries configured in the services/public/[Data_Controller_Settings/settings] Stored Process / Viya Job
  • All libraries available to the logged in user in metadata (SAS 9 only)

Row and Column level security can also be applied in VIEW mode, as can additional table-level permissions (MPE_SECURITY table).

A single search box can be used to make a full table search on any character or numeric value, using this macro.

The search covers every column of the table at once, so you do not need to know which column holds the value you are looking for:

  • Character search (the default) is a case sensitive CONTAINS match against every character column, so smith finds Smithson and Goldsmith, but not Smith.
  • Numeric search (tick the Numeric box) is an exact match against every numeric column, so 42 will not find 420 or 4210.
  • If a filter is applied, the search runs within the filtered rows rather than the whole table.
  • The result set is capped by the DC_MAXOBS_WEBVIEW option (500 rows by default). The row count shown next to the table name is the number of rows the search matched, which can be higher than the number of rows displayed.
  • A search that matches nothing shows a "No data found with given conditions" panel rather than an empty grid.

Full table search

Options

This button shows a range of options. If the table is editable, you will also see a EDIT option.

Download

The Download button gives several options for obtaining the current view of data:

  1. CSV. This provides a comma delimited file.

  2. Excel. This provides a tab delimited file.

  3. SAS Datalines. This provides a SAS program with data as datalines, so that the data can be rebuilt as a SAS table.

  4. SAS DDL. A download of a DDL file using SAS flavoured syntax.

  5. TSQL DDL. A DDL download using SQL Server flavoured syntax.

Note - if the table is registered in Data Controller as being TXTEMPORAL (SCD2) then the download option will prefilter for the current records and removes the valid from / valid to variables. This makes the CSV suitable for DC file upload, if desired.

Note that all the above items are exported from backend. There is also a frontend context menu that can be used in the VIEW screen (right click menu) for quick export into CSV or Excel formats.

Web Query URL

This option gives you a URL that can be used to import data directly into third party tools such as Power BI or Microsoft Excel (as a "web query"). You can set up a filter, eg for a particular month, and refresh the query on demand using client tooling such as VBA.