CREATE command: File: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (Changed the restriction on filenames beginning with CCA; CCASYS is the only exception.)
mNo edit summary
Line 6: Line 6:
<dd>Creates a <var class="product">Model&nbsp;204</var> file
<dd>Creates a <var class="product">Model&nbsp;204</var> file
</dl>
</dl>
==Syntax==
==Syntax==
<p class="syntax">CREATE [FILE] [(FORMAT) | (NOFORMAT)] <var class="term">filename</var>
<p class="syntax">CREATE [FILE] [(FORMAT) | (NOFORMAT)] <var class="term">filename</var>
Line 21: Line 22:
<tr>
<tr>
<th>filename</th>
<th>filename</th>
<td> is the name of the <var class="product">Model&nbsp;204</var> 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. The only exception is CCASYS; it can be created in a single user run with the SYSOPT=X’01’ bit turned off to prevent Model 204 from opening CCASYS to make it available for APSY. Otherwise, the filename can contain only letters, numbers, and the following special characters:
<td>The name of the <var class="product">Model&nbsp;204</var> 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. The only exception is CCASYS: it can be created in a single user run with the <var>[[SYSOPT parameter|SYSOPT]]</var> X’01’ bit turned off to prevent Model&nbsp;204 from opening CCASYS to make it available for APSY. Otherwise, <var class="term">filename</var> can contain only letters, numbers, and the following special characters:
<table>
<table>
    
    
<tr> <th>Special character name</th> <th>Keyboard symbol</th> </tr>
<tr class="head"> <th>Special character name</th> <th>Keyboard symbol</th> </tr>
    
    
<tr> <th><var>At sign </var></th> <td>(@)</td> </tr>
<tr> <th><var>At sign </var></th> <td>(@)</td> </tr>
Line 30: Line 31:
<tr> <th><var>Pound sign </var></th> <td>(#)</td> </tr>
<tr> <th><var>Pound sign </var></th> <td>(#)</td> </tr>
   
   
<tr> <th><var>Dollar sign </var></th> <td>($)</td> </tr>
<tr> <th><var>Dollar sign </var></th> <td>($)</td> </tr>
 
</table>
</table>
<p>The file name must be the ddname of the first or only data set in the file.</p>
 
</td>
<p>
</tr>
The file name must be the ddname of the first or only data set in the file.</p>
</td></tr>
   
   
<tr>
<tr>
<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>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 <var class="term">ddname</var> specified must match <var class="term">filename</var>.
<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>
<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 parameter]] to CUSTOM=10.</p>
</p>
<p>
To allow a name of more than eight characters (although only the first eight characters will be used), set the <var>[[CUSTOM parameter|CUSTOM]]</var> parameter to <code>10</code>.</p>
</td>
</td>
</tr>
</tr>
Line 48: Line 52:
<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 as will 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 [[Managing file and table sizes]].</td>
<td><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 will 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 [[Managing file and table sizes]].</td>
</tr>
</tr>  
</table>
</table>
===Syntax notes===
===Syntax notes===
<p>The FROM clause is optional for files containing a single data set.</p>
<ul>
<p>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.</p>
<li>The <var>FROM</var> clause is optional for files containing a single data set.</li>
<p>NO FORMAT is a synonym for NOFORMAT.</p>
 
<p>A CREATE command must be concluded by an END statement.</p>
<li>If specified, the <var class="term">ddname</var> of the first data set must match <var class="term">filename</var>. You can use a continuation character to enter long data set lists in the <var>FROM</var> statement.</li>
 
<li><var>NO FORMAT</var> is a synonym for <var>NOFORMAT</var>.</li>
 
<li>A <var>CREATE</var> command must be concluded by an <var>END</var> statement.</li>
</ul>


==Example==
==Example==
Line 66: Line 75:
END   
END   
</p>
</p>
==Usage notes==
==Usage notes==
<p>CREATE FILE creates a <var class="product">Model&nbsp;204</var> 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 the [[OPEN FILE command]] and [[INITIALIZE command]]).      </p>
<p>
<p>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.</p>
<var>CREATE FILE</var> creates a <var class="product">Model&nbsp;204</var> 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 the [[OPEN FILE command]] and the [[INITIALIZE command]]).      </p>
<p>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 the [[RESTORE command]]. However, you can add new data sets to the file with the [[INCREASE command]].</p>
<p>
<p>When it processes CREATE FILE, <var class="product">Model&nbsp;204</var> ends any update unit in progress and begins a [[File_integrity_and_recovery#Model_204_update_units|non-backoutable update unit]].  
The default <var>FORMAT</var> option causes the <var>CREATE</var> command to physically format the disk space. <var>NOFORMAT</var> suppresses physical formatting of the disk. If one or more of the data sets in the file are new, use <var>FORMAT</var>.</p>
<p>
<var>CREATE</var> 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 the [[RESTORE command]]. However, you can add new data sets to the file with the [[INCREASE command]].</p>
<p>
When it processes <var>CREATE FILE</var>, <var class="product">Model&nbsp;204</var> ends any update unit in progress and begins a [[File integrity and recovery#Model 204 update units|non-backoutable update unit]].  
</p>
</p>
<p>See [[Creating a file]] for more information about file creation and file parameters.</p>
<p>
See [[Creating a file]] for more information about file creation and file parameters.</p>
 
[[Category: General user commands]]
[[Category: General user commands]]
[[Category:Commands]]
[[Category:Commands]]

Revision as of 15:41, 14 July 2014

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 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. The only exception is CCASYS: it can be created in a single user run with the SYSOPT X’01’ bit turned off to prevent Model 204 from opening CCASYS to make it available for APSY. Otherwise, filename 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 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 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 10.

parameter=value 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 will 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 Managing file and table sizes.

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 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 the OPEN FILE command and the INITIALIZE command).

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 the RESTORE command. 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.

See Creating a file for more information about file creation and file parameters.