Previous Topic: Examples: SEGMENT KeywordNext Topic: Example: SELDATA keyword


SELDATA Keyword—SDT SELDATA Field

Valid on z/OS and z/VSE.

Use the SELDATA keyword to add, remove, or replace a SELDATA field in the SELECT record of the SDT Record. SELDATA allows the administrator to specify a (compound) logical condition to decide whether RLP or Screen Level Protection is applicable for an associated SELECT.

This keyword has the following format:

TSS ADDTO(SDT) SELECT(selname)
               DESCRIPT(desc‑name)
               SELDATA('IF [NOT] selexpression AND|OR] selexpression')
IF

Signals the beginning of a select expression. Specify IF, and the entire SELDATA must be enclosed in a single quote.

NOT

Specifies a negative relationship for the following sel‑expression.

sel‑expression

Specifies the logic behind which records the user is restricted to. The sel‑expression is coded in a Boolean logic format, which must contain a left‑hand side (LHS) field name, a relational operator, and a right‑hand side (RHS) comparison data value.

A sel‑expression consists of Boolean expressions modified by NOT, surrounded by parentheses, and joined by the conjunctions AND and OR. Parentheses are used to determine the order of evaluation. There is no priority applied to AND, OR, and NOT when parentheses are not supplied. The expression consists of:

AND/OR

Used to link multiple sel‑expressions together. Use the AND when both sel‑expressions are true; use OR when either statement is true.

This keyword is used with: