CREATE command: File: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Automatically generated page update)
 
Line 7: Line 7:
</dl>
</dl>
==Syntax==
==Syntax==
<p class="syntax">CREATE [FILE] [(FORMAT) | (NOFORMAT)] filename
<p class="syntax">CREATE [FILE] [(FORMAT) | (NOFORMAT)] <var class="term">filename</var>
[FROM ddname [,ddname]...]
[FROM <var class="term">ddname</var> [,<var class="term">ddname</var>]...]
[PARAMETER parameter=value [,parameter=value]...]
[PARAMETER <var class="term">parameter</var>=<var class="term">value</var> [,<var class="term">parameter</var>=<var class="term">value</var>]...]
[PARAMETER parameter=value [,parameter=value]...]
[PARAMETER <var class="term">parameter</var>=<var class="term">value</var> [,<var class="term">parameter</var>=<var class="term">value</var>]...]
.
.
.
.
Line 40: Line 40:
<th>ddname</th>
<th>ddname</th>
<td> is the name of a data set from which to create the file; it is required when the file is being created from more than one data set. The first ddname specified must match the filename.
<td> is the name of a data set from which to create the file; it is required when the file is being created from more than one data set. The first ddname specified must match the filename.
<p>ddname cannot be longer than eight characters; if it is, the command is rejected and the following message is issued: </p>
<p><var class="term">ddname</var> cannot be longer than eight characters; if it is, the command is rejected and the following message is issued: </p>
<p class="code">M204.1903: %C EXCEEDS 8 CHARACTERS IN LENGTH
<p class="code">M204.1903: %C EXCEEDS 8 CHARACTERS IN LENGTH
</p><p>To allow a name of more than eight characters (although only the first eight characters will be used), set the CUSTOM=10 parameter. (See the Rocket <var class="product">Model&nbsp;204</var> Parameter and Command Reference for details.)</p>
</p><p>To allow a name of more than eight characters (although only the first eight characters will be used), set the [[CUSTOM parameter]] to CUSTOM=10.</p>
</td>
</td>
</tr>
</tr>
Line 48: Line 48:
<tr>
<tr>
<th>parameter=value</th>
<th>parameter=value</th>
<td> specifies <var class="product">Model&nbsp;204</var> file parameters. Any number of PARAMETER statements can immediately follow the command, and each statement can contain as many parameters in any order that fits on one input line. File parameters are optional. If you specify no values for the BSIZE, CSIZE, and DSIZE parameters, defaults are used. However, you can calculate and set values for parameters as described in the Rocket <var class="product">Model&nbsp;204</var> File Manager's Guide.</td>
<td> specifies <var class="product">Model&nbsp;204</var> file parameters. Any number of PARAMETER statements can immediately follow the command, and each statement can contain as many parameters in any order as fit on one input line. File parameters are optional. If you specify no values for the BSIZE, CSIZE, and DSIZE parameters, defaults are used. However, you can calculate and set values for parameters as described in the Rocket <var class="product">Model&nbsp;204</var> File Manager's Guide.</td>
</tr>
</tr>
   
   
Line 57: Line 57:
<p>NO FORMAT is a synonym for NOFORMAT.</p>
<p>NO FORMAT is a synonym for NOFORMAT.</p>
<p>A CREATE command must be concluded by an END statement.</p>
<p>A CREATE command must be concluded by an END statement.</p>
==Example==
==Example==
<p class="code">CREATE FILE PEOPLE  
<p class="code">CREATE FILE PEOPLE  

Revision as of 20:33, 18 July 2013

Summary

Privileges
Superuser
Function
Creates a Model 204 file

Syntax

CREATE [FILE] [(FORMAT) | (NOFORMAT)] filename [FROM ddname [,ddname]...] [PARAMETER parameter=value [,parameter=value]...] [PARAMETER parameter=value [,parameter=value]...] . . . END

Where:

filename is the name of the Model 204 file that is being created (1 to 8 characters). The file name cannot be FILE or GROUP and cannot start with CCA, SYS, OUT, TAPE, or a number. It can contain only letters, numbers, and the following special characters:
Special character name Keyboard symbol
At sign (@)
Pound sign (#)
Dollar sign ($)

The file name must be the ddname of the first or only data set in the file.

ddname is the name of a data set from which to create the file; it is required when the file is being created from more than one data set. The first ddname specified must match the filename.

ddname cannot be longer than eight characters; if it is, the command is rejected and the following message is issued:

M204.1903: %C EXCEEDS 8 CHARACTERS IN LENGTH

To allow a name of more than eight characters (although only the first eight characters will be used), set the CUSTOM parameter to CUSTOM=10.

parameter=value specifies Model 204 file parameters. Any number of PARAMETER statements can immediately follow the command, and each statement can contain as many parameters in any order as fit on one input line. File parameters are optional. If you specify no values for the BSIZE, CSIZE, and DSIZE parameters, defaults are used. However, you can calculate and set values for parameters as described in the Rocket Model 204 File Manager's Guide.

Syntax notes

The FROM clause is optional for files containing a single data set.

If specified, the ddname of the first data set must match the filename. You can use a continuation character to enter long data set lists in the FROM statement.

NO FORMAT is a synonym for NOFORMAT.

A CREATE command must be concluded by an END statement.

Example

CREATE FILE PEOPLE PARAMETER ATRPG=1, FVFPG=10, MVFPG=10 PARAMETER ASTRPPG=345 PARAMETER BSIZE=704, BRECPPG=23, BRESERVE=268 PARAMETER CSIZE=78, DSIZE=470 END

Usage notes

CREATE FILE creates a Model 204 file. It sets the file parameters and builds the File Control Table (FCT). It should be issued after the values for file parameters are calculated and data sets are allocated. After a file is created, it must be opened and initialized (see OPEN and INITIALIZE).

The default FORMAT option causes the CREATE command to physically format the disk space. NOFORMAT suppresses physical formatting of the disk. If one or more of the data sets in the file are new, use FORMAT.

CREATE establishes the file name and ddnames for all data sets in the file. Once a file is created, you can change the file name and ddname only by recreating the file or by running RESTORE. However, you can add new data sets to the file with the INCREASE command.

When it processes CREATE FILE, Model 204 ends any update unit in progress and begins a non-backoutable update unit. For more information about Model 204 update units, see the Model 204 File Manager's Guide.

See the Model 204 File Manager's Guide for more information about file creation and file parameters.