Macros for SAS Application Developers
https://github.com/sasjs/core
Loading...
Searching...
No Matches
mm_createdataset.sas File Reference

Create an empty dataset from a metadata definition. More...

Go to the source code of this file.

Detailed Description

This macro was built to support viewing empty tables in https://datacontroller.io

The table can be retrieved using LIBRARY.DATASET reference, or directly using the metadata URI.

The dataset is written to the WORK library.

Usage:

%mm_createdataset(libds=metlib.some_dataset)

or

%mm_createdataset(tableuri=G5X8AFW1.BE00015Y)

SAS Macros

Parameters
[in]libds=library.dataset metadata source. Note - table names in metadata can be longer than 32 chars (just fyi, not an issue here)
[in]tableuri=Metadata URI of the table to be created
[out]outds=(work.mm_createdataset) The dataset to create. The table name needs to be 32 chars or less as per SAS naming rules.
[in]mdebug=(0) Set to 1 to enable DEBUG messages
Version
9.4
Author
Allan Bowe

Definition in file mm_createdataset.sas.