Previous Topic: Define TIME Record to SDTNext Topic: Remove Fields From SDT Records


Replace SDT Data Elements

You can replace any record elements you defined to the SDT with TSS REPLACE(SDT). The same keywords used to define each record element on the TSS ADDTO(SDT) command are used to replace the values.

Examples: replace SDT data elements

This example replaces an existing CALENDAR record with new dates:

TSS REPLACE(SDT) CALENDAR(cal‑name)
                 YEAR(yyyy) DAYS(days,...)
                 EXCLUDE(mm/dd,mm/dd,...) 
                 INCLUDE(mm/dd,mm/dd,...)

This example replaces an existing MAP definition with a single new field:

TSS REPLACE(SDT) MAPREC(map‑name) 
                 MAPDATA(field‑definition)

This example replaces an existing MASK definition with a single new field:

TSS REPLACE(SDT) MASKREC(mask‑name)
                 MASKDATA(field‑definition)

This example replaces an existing RLP RECORD definition with a single new field:

TSS REPLACE(SDT) RECORD(rlp‑name)
                 RECDATA(field‑definition)

This example replaces an existing SELECT record with a new field:

TSS REPLACE SELECT(sel‑name)
            SELDATA(‘IF seldata‑fld \{logical operator\} “value”
            [AND|OR] seldata‑fld \{logical operator\}”value”‘)

This example replaces an existing TIME definition with a single new range:

TSS REPLACE(SDT) TIMEREC(time‑name)
                 RANGE(hhmm,hhmm,...)

Any keywords, such as DESCRIPTION, that are not part of the Replace, are removed.