docs.datacontroller.io/docs/formats.md

21 lines
1.2 KiB
Markdown
Raw Normal View History

2022-01-27 19:59:42 +00:00
---
layout: article
title: API
2022-02-27 21:59:51 +00:00
description: Viewing and Modifying SAS Format Catalogs in Data Controller
2022-01-27 19:59:42 +00:00
---
# Formats
2022-02-27 21:59:51 +00:00
Data Controller allows formats to be viewed and edited directly from the web interface - avoiding the need to create and maintain parallel 'CNTLIN' datasets.
2022-01-27 19:59:42 +00:00
Formats are displayed with a special icon (`bolt`), in the same library as other tables (in both the VIEW and EDIT screens):
2022-01-27 19:59:42 +00:00
2022-02-27 21:59:51 +00:00
![formats](img/formats.png)
2022-01-27 19:59:42 +00:00
Viewing or editing a format catalog will always mean that the entire catalog is exported, before being filtered (if filters applied) and displayed. For this reason, it is recommended to split a large format catalog over several catalogs, if performance is a consideration.
2022-01-27 19:59:42 +00:00
The usual export mechanisms can also be applied - you can downlad the DDL, or export the catalog in CSV / Excel / Datalines formats.
2022-01-27 19:59:42 +00:00
2022-02-27 21:59:51 +00:00
When adding a format to MPE_TABLES, the `DSN` should contain the format catalog name plus a `-FC` extension. The LOADTYPE should be `FORMAT_CAT` and the BUSKEY should be `FMTNAME START`. HOOK scripts can also be applied (ie, run some DQ after an edit, or re-run a batch job after an approval).
2022-01-27 19:59:42 +00:00
2022-02-27 21:59:51 +00:00
Just like regular table edits, all changes to formats may also be logged in the `MPE_AUDIT` table.