2.5 KiB
2.5 KiB
| task | version | source | status |
|---|---|---|---|
| Export dataset contents with dssqld | R1.03 | IM 36K10J10-01EN §2.9.2, §5.6; practiced on the test system 2026-09-30 | verified |
Export dataset contents (dssqld)
Read-only. Needs CI Server running. Works from a normal or elevated prompt.
Export a whole dataset
dssqld -e <output>.qli -d <DATASET> -c -l <listing>.lst
-ddataset name (e.g.ITEM_DF,STATUS_DF,LOCAL_NODE_DF,CLASS_DF,OBJECT_DF).-ccomma-separated output: first line is the field names, then one quoted row per record.-lwrites the result summary to a listing file.- Output path ≤ 79 characters: a longer
-epath gives no error, but the file does not appear under that name (verified, ISS-020). -aalso exports hidden fields.
The console (and listing) end with a summary; check Errors is 0:
Data set Recognized Exported Not found Errors
ITEM_DF 184 184 0 0
Find datasets and fields
dssqld -f -l dict.lst
Dumps the data dictionary: every dataset with its description and fields (name, type, length,
description). Search it to find which dataset holds what, e.g. the version fields are in
LOCAL_NODE_DF, HOST_NODE_DF and ENTERPRISE_SERVER_DF.
Useful datasets seen on R1.03
| Dataset | Contents |
|---|---|
LOCAL_NODE_DF |
This node: name, number, version (VERSION_MAJOR/MINOR/PACK), licence state |
ITEM_DF |
Item definitions: full name, section path, description, limits, format, type, station, I/O address |
STATUS_DF |
Item status definitions: name, number, alarm state, priority, colour, mnemonic (e.g. 9 = NORMAL) |
Filtered exports
Export only matching records with a filter file (IM 36K10L50 §3.6, verified 2026-09-30):
@SELECT
'GROUP_NAME = "CIENG_EVENT"'
@HIS_GROUP_DF
dssqld -e <output>.qli <filter>.qli [-c] -l <listing>.lst
@SELECT, then the filter in single quotes with strings in double quotes, then@<DATASET>. The filter applies only to the next dataset. Operators:=,!=,<,>,and.- Some datasets (e.g.
ITEM_HISTORY,ITEM_VAL,ALARM_CHRONO) are not exported unless named explicitly (NO-EXPORTlist indssqld.sup). ITEM_HISTORYreturns nothing unless the filter namesITEM_NAMEand aSAMPLE_TIMErange (seeload-history.md).%TLS_DAT_PATH%\dss_export.qliis Yokogawa's own filter file for exporting all engineering definitions (dssqld -e out.qli dss_export.qli); it also shows@MACROusage.