CLOSE command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
mNo edit summary
 
 
(10 intermediate revisions by 4 users not shown)
Line 1: Line 1:
This operator command requests that [[SirTune]] close the sample dataset.
==Summary==
This makes it possible to run the report generator against a sample data
<dl>
set that is still being updated by ''SirTune''.
<dt>Privileges
This command has no effect on sampling activity in the [[Model 204]] address space.
<dd>Any user
<dt>Function
<dd>Closes a specified file, temporary group, or permanent group, or all of a user's open files and groups
</dl>
==Syntax==
<p class="syntax">CLOSE [ALL |[FILE [PERM | TEMP] GROUP] <var class="term">name</var>
      [AT <var class="term">location</var>]]
</p>
<b>Where:</b>
<ul>
<li>
<p><var>ALL</var> closes all of the user's open files and groups.</p>
</li>
<li>
<p><var class="term">name</var> is the name of the <var class="product">Model&nbsp;204</var> file or group to be closed.</p>
<p>If a file name or group name is not specified in the command, the default file or group is closed.</p>
</li>
<li>
<p><var class="term">location</var></p>
<ul>
<li>
<p>For [[PQO:_Overview_of_Parallel_Query_Option/204|Parallel Query Option/204]] files, is the symbolic name (as many as eight characters) that refers to the location of the node on which the remote file resides. An equal sign without surrounding quotation marks (=) specifies that the file is local.</p>
</li>
<li>
<p>If remote, must match a symbolic destination name specified in the DESTINATION parameter of the relevant local client [[DEFINE_PROCESS_command:_Overview_of_intersystem_network_process|DEFINE PROCESS]] command.</p>
</li>
</ul>
</li>
</ul>
===Syntax notes===
If neither FILE nor GROUP is specified, as in the following command, <var class="product">Model&nbsp;204</var> attempts to close a file named PAYROLL:
<p class="syntax">CLOSE PAYROLL
</p>
<p>If the file cannot be found, <var class="product">Model&nbsp;204</var> searches for a temporary group by that name. If a temporary group cannot be found, it searches for a permanent group by that name.</p>


This command is not available if the RESTART utility is responding to
==Example==
operator commands.
<p class="code">CLOSE ALL
 
CLOSE CENSUS
[[Category: Operator commands]]
CLOSE FILE TCENSUS
[[Category: Commands]]
CLOSE PERM GROUP EMPLOYEE
</p>
==Usage notes==
The CLOSE command closes a <var class="product">Model&nbsp;204</var> file or a permanent or temporary group. If the name of the file or group is not specified, <var class="product">Model&nbsp;204</var> closes the default file or group. When the default is closed, <var class="product">Model&nbsp;204</var> issues a message informing the user that a new default file or group must be established. A new default can be defined with either the DEFAULT command or the OPEN command.
<p>When a temporary group is closed, its member files remain open and can continue to be individually usable. The individual files must be closed by name or by means of a CLOSE ALL command. </p>
<p>When a permanent group is closed, its member files are automatically closed. If any of the member files were opened individually or as part of another permanent group, those files remain open for individual use or as part of that other group, respectively. </p>
<p>For information about what happens when you lose communications with a remote node during or just prior to your attempt to close a remote file, see [[PQO: Remote files and scattered groups]].</p>
<p>In the following case only, CLOSE causes <var class="product">Model&nbsp;204</var> to end any [[File_integrity_and_recovery#Model_204_update_units|update unit]] in progress and begin a non-backoutable update unit: if the CLOSE results in some file becoming unusable (that is, usable neither individually nor as a member of a permanent group). </p>
<p>When a file is opened in deferred update mode, <var class="product">Model&nbsp;204</var> protects the file by making it impossible to free the file in that <var class="product">Model&nbsp;204</var> run until all updates have been applied. All files are closed completely at the end of the <var class="product">Model&nbsp;204</var> run.</p>
[[Category: User commands]]
[[Category:Commands]]

Latest revision as of 15:54, 7 February 2019

Summary

Privileges
Any user
Function
Closes a specified file, temporary group, or permanent group, or all of a user's open files and groups

Syntax

CLOSE [ALL |[FILE [PERM | TEMP] GROUP] name [AT location]]

Where:

  • ALL closes all of the user's open files and groups.

  • name is the name of the Model 204 file or group to be closed.

    If a file name or group name is not specified in the command, the default file or group is closed.

  • location

    • For Parallel Query Option/204 files, is the symbolic name (as many as eight characters) that refers to the location of the node on which the remote file resides. An equal sign without surrounding quotation marks (=) specifies that the file is local.

    • If remote, must match a symbolic destination name specified in the DESTINATION parameter of the relevant local client DEFINE PROCESS command.

Syntax notes

If neither FILE nor GROUP is specified, as in the following command, Model 204 attempts to close a file named PAYROLL:

CLOSE PAYROLL

If the file cannot be found, Model 204 searches for a temporary group by that name. If a temporary group cannot be found, it searches for a permanent group by that name.

Example

CLOSE ALL CLOSE CENSUS CLOSE FILE TCENSUS CLOSE PERM GROUP EMPLOYEE

Usage notes

The CLOSE command closes a Model 204 file or a permanent or temporary group. If the name of the file or group is not specified, Model 204 closes the default file or group. When the default is closed, Model 204 issues a message informing the user that a new default file or group must be established. A new default can be defined with either the DEFAULT command or the OPEN command.

When a temporary group is closed, its member files remain open and can continue to be individually usable. The individual files must be closed by name or by means of a CLOSE ALL command.

When a permanent group is closed, its member files are automatically closed. If any of the member files were opened individually or as part of another permanent group, those files remain open for individual use or as part of that other group, respectively.

For information about what happens when you lose communications with a remote node during or just prior to your attempt to close a remote file, see PQO: Remote files and scattered groups.

In the following case only, CLOSE causes Model 204 to end any update unit in progress and begin a non-backoutable update unit: if the CLOSE results in some file becoming unusable (that is, usable neither individually nor as a member of a permanent group).

When a file is opened in deferred update mode, Model 204 protects the file by making it impossible to free the file in that Model 204 run until all updates have been applied. All files are closed completely at the end of the Model 204 run.