Previous Topic: Arithmetic OperationsNext Topic: Assignment Operations


Conditional Operations

Purpose

Conditional operations define test conditions that compare values held by different fields.

Syntax

►►─┬─ IF boolean-expression ─┬──┬─ result-action ─┬───────────────────────────►◄
   ├─ if EOF ─┬┬─ Eq ─┬┬─────┤  └─ sequence ──────┘
   │          │└─ = ──┘│     │
   │          └┬─ Ne ─┬┘     │
   │           └─ # ──┘      │
   └┬─ B ────┬───────────────┘
    └─ GOTO ─┘

Syntax Rules

boolean-expression

For expanded syntax see SELECT / BYPASS — Overview.

For database access, the following reserved words can replace field-name-expression in the syntax:

PATH-ID

REC-NAME

IDMS-STATUS

LR-STATUS

DBKEY

DBKEY-PAGE

DBKEY-LINE

DBKEY-ALPHA

TABLE-ID

TABLE-NAME

SUBSCHEMA-NAME

result-action

For database access, DB-EXIT is a possible value for result-action except in the case of an end-of-file (EOF) test operation. DB-EXIT instructs CA Culprit to pass processing control to CA IDMS/DB; CA IDMS/DB retrieves a requested database record and returns it to the CA Culprit input buffer.

More information:

Database Field Name References

The DB-EXIT Facility