1 Commits
Author SHA1 Message Date
blog-dev 1eb048bae4 feed: full table search - any value, any column, no query 2026-09-15 17:16:37 +00:00
2 changed files with 63 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

+63
View File
@@ -0,0 +1,63 @@
---
title: 'Full Table Search: Find Any Value in Any Table'
description: Type a value into the search box and Data Controller scans every column for it - no query, no WHERE clause. Demonstrated on a one million row CAS table.
date: '2026-09-15 17:00:00'
author: 'Data Controller'
authorLink: https://www.linkedin.com/showcase/data-controller-for-sas
tags:
- Announcements
previewImg: './full-table-search.jpeg'
---
# Full Table Search: Find Any Value in Any Table
Finding a value in a large table usually means writing a query first: guess which column it lives in, write a WHERE clause, run it, and try again when you guess wrong. Data Controller's **full table search** removes that step. Choose a library and table in the Viewer, type a value into the search box and press Enter - every column in the table is scanned for it, and the matching rows come straight back into the grid.
## How it works
The search box sits in the Viewer toolbar, next to a **Numeric** checkbox:
- **Text search** matches part of a value, so `smith` finds `Smithson` and `Goldsmith`. The comparison is case sensitive, using the SAS `CONTAINS` operator.
- **Numeric search** (tick the box) matches the number exactly against every numeric column in the table.
Whichever you use, the results are ordinary rows in the Viewer, with the rest of the screen behaving exactly as it does for a normal view.
## Any database, not just SAS datasets
The scan runs inside SAS, against whichever libname engine the table is assigned to - so it is not limited to SAS datasets. The demonstration below is a **one million row CAS table**.
## Built on open source
This feature, like most of Data Controller, is built on the [SASjs Macro Core](https://github.com/sasjs/core) library, using the [`%mp_searchdata()`](https://core.sasjs.io/mp__searchdata_8sas.html) macro. The macro assembles a single DATA step with one `OR` clause per column - a `CONTAINS` test for character columns, an equality test for numeric ones - and writes out only the matching records. It is MIT licensed, so you can read, test and audit the code that is running against your data.
A few things worth knowing:
- The search respects your current filter, Row Level Security and Column Level Security - it scans the view you are entitled to see, not the raw table.
- Full table search is available in ViewBoxes as well, so the related tables lined up beside your main grid can be searched the same way.
- Nothing is shipped to an external index or search service: the scan happens on your own SAS platform.
See it in action:
<iframe title="Full Table Search" width="560" height="315" src="https://vid.4gl.io/videos/embed/niqkfdZkJ465gr7oDXDM6h" style="border: 0px;" allow="fullscreen" sandbox="allow-same-origin allow-scripts allow-popups allow-forms"></iframe>
More detail in the [Viewer documentation](https://docs.datacontroller.io/dcu-tableviewer/).
<!--
Source LinkedIn post:
Data Controller for SAS® has a plethora of features to make Data Discovery easier
Here we demonstrate "full table search". No need to formulate a query - just type a value and hit enter!
It works on all databases - here with a 1 million row CAS table
This feature, like most others, is built on our open-source #SASjs library - using the `mp_searchdata()` macro (https://lnkd.in/gxZZq76j).
#sas #sasapps #sasviya
video: https://vid.4gl.io/w/niqkfdZkJ465gr7oDXDM6h
-->
<!-- Image prompt:
Flat vector illustration on a dark slate (#314351) background with a faint dot grid: a stylised data table across the lower half (rounded header bar plus eight rows of rounded cells), with the fourth row highlighted in brand green (#90c445). A large magnifying glass with a thick green rim and diagonal handle overlaps the table on the right, and inside its dark lens the highlighted row appears magnified with two white value blocks. Headline "FULL TABLE SEARCH" in bold white uppercase, subheading "any value, every column - no query required" in brand green. 1200x627 landscape, no other text. Composed programmatically with PIL in the Data Controller brand palette rather than generated by an image model.
-->