Previous Topic: Package Action StatementsNext Topic: Element Action Examples


Statements and Clauses

References are made to statements and clauses throughout this manual. For SCL purposes, these terms are defined as follows:

Example: Using Statements and Clauses

In this example, Lines 1-7 form a statement. Line 1 begins with an action (MOVE) and line 7 ends with a period. Lines 2-5 constitute a single clause (a FROM clause). Lines 6 and 7 are individual clauses. Each of these clauses provide information essential to the statement.

1.MOVE ELEMENTS COPY01
2.     FROM       ENVIRONMENT        DEMO
3.                SYSTEM             FINANCE
4.                SUBSYSTEM          ACCTPAY
5.                TYPE               COBOL
6.     WHERE CCID EQ          FIX'
7.     OPTIONS                WITH HISTORY.

When you use statements and clauses, you must enter the action clause first. You can enter the remaining clauses in any order. Within each clause, however, you must code the sub-clauses in the order in which they are shown in the syntax.

In the previous example, you might code the FROM clause last and the OPTIONS clause immediately after the MOVE ELEMENTS clause. Within the FROM clause, though, you must enter ENVIRONMENT first, followed by SYSTEM, followed by SUBSYSTEM, followed by TYPE.