DML statements in Parallel Query Option/204: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (mixed case for For Record Number)
m (mixed case for For Record Number)
 
Line 40: Line 40:


====Retrieval conditions====
====Retrieval conditions====
<p class="code">FIND$
<p class="code">Find$
FILE$
File$
LIST$
List$
LOCATION$
Location$
POINT$
Point$
SFGE$
Sfge$
SFL$
Sfl$
</p>
</p>
   
   
Line 76: Line 76:
===Using field names in expressions===
===Using field names in expressions===
<p>
<p>
Fields in remote context can be used in the same ways as fields in local context including the VALUE IN phrase, which refers to a label on a FOR EACH RECORD IN ORDER statement.    </p>
Fields in remote context can be used in the same ways as fields in local context including the <var>Value In</var> phrase, which refers to a label on a <var>For Each Record In Order</var> statement.    </p>
   
   
==Restricted commands and $functions==
==Restricted commands and $functions==

Latest revision as of 18:00, 27 April 2018

Parallel Query Option/204 DML

Parallel Query Option/204 data manipulation language (DML) consists of most, but not all, User Language statements and conditions. This page lists the statements and conditions that comprise Parallel Query Option/204 DML, and discusses certain restrictions on the use of some User Language commands, statements, and functions.

Listed below, in separate sections, are the Parallel Query Option/204 retrieval statements, retrieval conditions, and update statements. A discussion of IN clauses and field names in DML statements follows the listings.

DML statements and retrieval conditions

Retrieval statements

Clear List Commit Release Count Occurrences Of Count Records Declare List Find Records Find All Records Find All Values Find And Print Count For Each occurrence For Each Record For Each Value For k Records For k Values For Record Number Note fieldname Open OpenC Place Record On List Place Records On List Print All information Release All Records Release Records Remove Record From List Remove Records From List Sort Record keys Sort Records Sort Values

Retrieval conditions

Find$ File$ List$ Location$ Point$ Sfge$ Sfl$

Update statements

Add Backout Change Commit Delete Delete Each Delete Record Delete Records File Records Insert Store Record Update Record

Using IN clauses

A remote file specification (using either the AT clause or a file synonym) is syntactically valid in the IN FILE clause of supported DML statements in remote context.

Also, you can use the following IN clause variations to refer to a remote file if you are in scattered group context:

IN GROUP groupname MEMBER IN $CURFILE IN $UPDATE

Using field names in expressions

Fields in remote context can be used in the same ways as fields in local context including the Value In phrase, which refers to a label on a For Each Record In Order statement.

Restricted commands and $functions

The Model 204 commands, User Language statements, and $functions that are not supported in remote context for Parallel Query Option/204 processing are listed in this section.

Restricted Model 204 commands

Some of the Model 204 commands that specify a file name, or that operate on a default file or on a file specified in an IN clause, are not supported in remote context for Parallel Query Option/204 processing.

See Using Model 204 file and group commands for a description of the commands that can be used to reference files in remote context.

The following commands cannot be used in reference to a remote file:

ASSIGN (specifying a procedure alias) BROADCAST FILE CREATE FILE DEASSIGN DECREASE DEFINE FIELD DELETE FIELD DELETE PROCEDURE DESECURE DESECURE PROCEDURE DISPLAY FILE DISPLAY LIST DISPLAY PROCEDURE DUMP EDIT ENQCTL FILELOAD FLOD INCLUDE INCREASE INITIALIZE PROCEDURE REDEFINE FIELD REGENERATE RENAME FIELD RENAME PROCEDURE REORGANIZE RESET (file parameters) RESTORE SECURE SECURE PROCEDURE TABLEB TABLEC TRANSFORM Z

Restricted $functions

The following $functions cannot be used in reference to a remote file:

$LSTPROC $RDPROC

If either of these $functions is used in reference to a remote file, Model 204 displays an error message.