OUTPUT CREATE
The OUTPUT CREATE
command provides options for creating
custom tables, charts, and other output items from user-entered JSON or from an external
*.json file.
OUTPUT CREATE
[/SPEC [SOURCE = {INLINE}]]
{STATJSONFILE("json_file_name")}
This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.
Release History
Release 28.0.1
- Command introduced
Examples
SOURCE=INLINE
example
OUTPUT CREATE
/SPEC SOURCE=INLINE.
BEGIN STATJSON
{
"procedure": {
"name": "Pie Test",
"items": [
{
"graph": {
"name": "Count by Gender",
"title": "Pie Chart",
"type": "Pie",
"X": {
"data": ["male", "female"],
"label": "Gender"
},
"Y": {
"data": [100, 200],
"label": "Count"
}
}
}
]
}
}
SOURCE=STATJSONFILE
example
OUTPUT CREATE
/SPEC SOURCE=STATJSONFILE("/statjson/examples/pie.json").