Previous Topic: The Set Where StatementNext Topic: Clear Statements


Set Where Syntax
├── SET WHEre ─ ¤ ─┬──────────────┬─ ¤ ─ . ────────────────────────────────────┤
                   ├─┤ CCID ├─────┤
                   ├─┤ GENERATE ├─┤
                   ├─┤ ARCHIVE ├──┤
                   ├─┤ SPEC ├─────┤
                   └─┤ PRO ├──────┘

Expansion of CCID

                                                     ┌─ , ────┐
├── CCId ─┬──────────────────────┬─┬───────────┬─ ( ─▼─ ccid ─┴─ ) ────────────┤
          └─ OF ─┬─ CURrent ◄ ─┬─┘ ├─ EQual ◄ ─┤
                 ├─ ALL ───────┤   └─ = ───────┘
                 └─ RETrieve ──┘

Expansion of GENERATE

├── GENerate ─┬─ FAIled ───────────┬───────────────────────────────────────────┤
              ├─┤ DATE ├───────────┤
              ├─┤ FROM ├───────────┤
              ├─┤ THROUGH ├────────┤
              └─┤ FROM - THROUGH ├─┘

Expansion of ARCHIVE

├──┬─┤ DATE ├───────────┬──────────────────────────────────────────────────────┤
   ├─┤ FROM ├───────────┤
   ├─┤ THROUGH ├────────┤
   └─┤ FROM - THROUGH ├─┘

Expansion of DATE

├── DATe ─┬─ EQ ─┬─ date ─┬────────────────────────┬───────────────────────────┤
          └─ = ──┘        └─ TIMe ─┬─ EQ ─┬─ time ─┘
                                   └─ = ──┘

Expansion of FROM

├── FROm ─ DATe ─┬─ EQ ─┬─ date ─┬────────────────────────┬────────────────────┤
                 └─ = ──┘        └─ TIMe ─┬─ EQ ─┬─ time ─┘
                                          └─ = ──┘

Expansion of THROUGH

├──┬─ THRough ─┬─ DATe ─┬─ EQ ─┬─ date ─┬────────────────────────┬─────────────┤
   └─ THRu ────┘        └─ = ──┘        └─ TIMe ─┬─ EQ ─┬─ time ─┘
                                                 └─ = ──┘

Expansion of SPEC

├──┬─ TEXt ─┬─ text-spec ───────────────────────────────────────┬─┬────────────┤
   │        │     ┌─ , ─────────┐           ┌─ , ─────────┐     │ │
   │        └─ ( ─▼─ text-spec ─┴─┬─ AND ─┬─▼─ text-spec ─┴─ ) ─┘ │
   │                              └─ OR ──┘                       │
   └─ ACM ─┬─ comp-spec ───────────────────────────────────────┬──┘
           │     ┌─ , ─────────┐           ┌─ , ─────────┐     │
           └─ ( ─▼─ comp-spec ─┴─┬─ AND ─┬─▼─ comp-spec ─┴─ ) ─┘
                                 └─ OR ──┘

Expansion of PRO

                                  ┌─ , ──────────┐
├── PROcessor GROup ─┬─ EQ ─┬─ ( ─▼─ group name ─┴─ ) ─────────────────────────┤
                     └─ = ──┘
SET WHERE CCID

The SET WHERE statement applies to each element action that uses-but does not contain all or part of-a WHERE clause, and remains in effect until the system encounters another SET WHERE statement or a CLEAR statement, or processing ends. There are two forms of WHERE CCID SCL:

WHERE CCID ccid-Limits processing to only those elements that match one of the CCIDs coded.

WHERE CCID OF ccid-Also limits the processing to those elements that match one of the supplied CCIDs. With this SCL, however, you can indicate where you want CA Endevor SCM to look for the CCID(s):

You can use a name-mask with the CCID.

If you need to select elements identified under more than one CCID, you can specify multiple CCIDs by enclosing the CCIDs with parentheses and separating them with commas. The CCIDs may extend over multiple lines if necessary.

The examples below illustrate the two forms of WHERE CCID SCL.

Example 1: WHERE CCID EQ PROJ00*
Example 2: WHERE CCID OF CURRENT (PROJ001, PROJ002, PROJ004)
Example 3: WHERE CCID OF ALL (PROJ00*)

SET WHERE GENERATE

WHERE GENERATE SCL allows you to set a generation date and, optionally, time as a selection criterion. There are five possible forms for this clause:

The date(s) must be in mm/dd/yy format (leading zeros are not required). The time(s) must be in hh:mm format. If you enter a time in this clause, you must enter a date.

SET WHERE ARCHIVE

WHERE ARCHIVE SCL allows you to set an archive date and, optionally, time as a selection criteria. There are four possible forms for this clause:

The date(s) must be in mm/dd/yy format (leading zeros are not required). The time(s) must be in hh:mm format. If you enter a time in this clause, you must enter a date.

SET WHERE TEXT

WHERE TEXT SCL limits a list to elements that contain (or do not contain) one or more specified 1- to 70-character text strings.

For example:

Note: The WHERE TEXT EQUAL clause cannot be used withthe WHERE ACM clauses.

SET WHERE ACM

WHERE ACM SCL limits a list to component lists containing (or not containing) the designated component name. Wildcards are acceptable in the component name specification.

There are four clauses:

Additional selection criteria for the component includes the following clauses.

WHERE ACM comp spec {AND/OR} comp spec

This clause allows you to provide compound component selection criteria, using the same options as described above.

Note: The WHERE ACM clauses cannot be used with the WHERE TEXT clause.

WHERE PROCESSOR GROUP

WHERE PROCESSOR GROUP SCL allows you to select elements according to a specified processor group. You can use a name-mask when specifying the processor group name.

If you need to select elements identified under more than one processor group, you can specify multiple distinct processor group selectors by enclosing the processor groups with parentheses and separating them with commas. The processor groups may extend over multiple lines if necessary.

The examples below illustrate the use of this clause.

Example 1: WHERE PROCESSOR GROUP (COBVS, COBII)
Example 2: WHERE PROCESSOR GROUP (COBV)