Field display and message broadcast: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
==Overview==
==Overview==
<p>The <var class="product">Model&nbsp;204</var> DISPLAY command and the IFDISP Host Language Interface function allow you to display:</p>
<p>The <var class="product">Model&nbsp;204</var> <var>[[DISPLAY command|DISPLAY]]</var> command and the <var>IFDISP</var> Host Language Interface function allow you to display:</p>
<ul>
<ul>
<li>Definitions of a field or fields</li>
<li>Definitions of a field or fields</li>
Line 7: Line 7:
<li>Preallocated fields in the file </li>
<li>Preallocated fields in the file </li>
</ul>
</ul>
<p>You can also use DISPLAY to display information about file groups, procedures, and access rights. For a discussion of displaying access rights, see <b>See Displaying user and procedure classes</b>. The <var class="product">Model&nbsp;204</var> Parameter and Command Reference contains a complete description of all DISPLAY capabilities.</p>
<p>
<p>The BROADCAST FILE command allows you to specify or change a message that is displayed whenever a user opens a file.     </p>
You can also use <var>DISPLAY</var> to display information about file groups, procedures, and access rights. For a discussion of displaying access rights, see [[Model 204 security features#Displaying user and procedure classes|Displaying user and procedure classes]]. </p>
<p>In this chapter, the DISPLAY command forms and the BROADCAST command are described in detail.</p>
<p>
The <var>BROADCAST FILE</var> command allows you to specify or change a message that is displayed whenever a user opens a file. </p>
<p>
In this page, the <var>DISPLAY</var> command forms and the <var>BROADCAST</var> command are described in detail.</p>


==Displaying a field==
==Displaying a field==
<p>The DISPLAY command can display the description of any field in the currently open file. Fields are listed with their attributes in the format specified by the display options (definitions, names only, or abbreviations). The command is issued in the form: </p>
<p>
===Syntax===
The <var>DISPLAY</var> command can display the description of any field in the currently open file. Fields are listed with their attributes in the format specified by the display options (definitions, names only, or abbreviations). </p>
 
====Syntax====
The command is issued in the form:


<p class="syntax"><b>D</b>ISPLAY FIELD [(<i>display-option</i> [,<i>display-option</i>])]  
<p class="syntax"><b>D</b>ISPLAY FIELD [(<span class="term">display-option</span> [,<span class="term">display-option</span>])]  
   {ALL | <i>fieldname</i> [,<i>fieldname</i>]...}
   {ALL | <span class="term">fieldname</span> [,<span class="term">fieldname</span>]...}
</p>
</p>
   
   
<b>Where:</b>
Where:
<table>  
<table>  
<tr>
<tr>
<th nowrap>display-option</th>
<th nowrap>display-option</th>
<td>One of the following:
<td>One of the following:
<table>
 
<table
<tr class="head">
<th>Option</th>
<th>Displays...</th>
</tr>
    
    
<tr> <th>
<tr> <th><var>ABBREV</var><p><var>NOABBREV</var></p></th>  
<p>Option</p>
<td>Name and description of the field in abbreviated form.
</th> <th>
<p><var>NOABBREV</var> is the default. </p></td>  
<p>Displays...</p>
</tr>
</th> </tr>
 
<tr> <th><var>
<p>ABBREV</p>
<p>NOABBREV</p>
</var></th> <td>Name and description of the field in abbreviated form.
<p>NOABBREV is the default. </p>
  </td> </tr>


<div id="comma"></div>
<div id="comma"></div>
<tr> <th><var>
<tr> <th><var>COMMA</var></th>  
<p>COMMA</p>
<td>If this is specified, a comma is used to separate the display of the field's attributes, and many of the strings of blanks between the attributes are collapsed to a single blank.  Since commas are already used with the <var>NOABBREV</var> option, this actually only has an effect when the <var>ABBREV</var> option is specified.</td>  
</var></th> <td>If this is specified, a comma is used to separate the display of the field's attributes, and many of the strings of blanks between the attributes are collapsed to a single blank.  Since commas are already used with the <var>NOABBREV</var> option, this actually only has an effect when the <var>ABBREV</var> option is specified.
</tr>
  </td> </tr>
   
   
<tr> <th><var>
<tr> <th><var>DDL</var><p><var>NODDL</var></p></th>  
<p>DDL</p>
<td><var class="product">Model&nbsp;204</var> data definition language statements needed to rebuild a file.
<p>NODDL</p>
<p>NODDL is the default. </p>
</var></th> <td>
<p>
<p><var class="product">Model&nbsp;204</var> data definition language statements needed to rebuild a file.</p> <p>NODDL is the default.</p><p>If there are repeating field group definitions in the file, 'DDL' is the only display-option which displays both the fieldgroup definitions as well as the field definitions.</p>
If there are repeating field group definitions in the file, 'DDL' is the only display-option which displays both the fieldgroup definitions as well as the field definitions.</p></td>  
</td> </tr>
</tr>
   
   
<tr> <th><var>
<tr> <th><var>DEFINITIONS</var></th>  
<p>DEFINITIONS</p>
<td>Name and description of the field; this is the default.  </td>  
</var></th> <td>Name and description of the field; this is the default.  </td> </tr>
</tr>
   
   
<tr> <th><var>
<tr> <th><var>NAMES</var></th>  
<p>NAMES</p>
<td>Name (only) of the field. </td>  
</var></th> <td>
</tr>
<p>Name (only) of the field.   </p>
</td> </tr>
   
   
<tr> <th><var>
<tr> <th><var>NOUSE</var></th>  
<p>NOUSE</p>
<td>Field output on your terminal, even if a <var>[[USE command: Directing output|USE]]</var> command precedes the <var>DISPLAY</var>. Any alternate device remains open, but is not used. </td>  
</var></th> <td>
</tr>  
<p>Field output on your terminal, even if a USE command precedes the DISPLAY. Any alternate device remains open, but is not used. </p>
</td> </tr>
 
</table>
</table>
</td>
</td>
Line 74: Line 71:
<tr>
<tr>
<th>fieldname</th>
<th>fieldname</th>
<td> is the name of an existing field in a <var class="product">Model&nbsp;204</var> file.</td>
<td>The name of an existing field in a <var class="product">Model&nbsp;204</var> file.</td>
</tr>
</tr>  
</table>
</table>
<p>You must enclose options in parentheses. If you do not specify any options in the DISPLAY FIELD command, DEFINITIONS is the default.</p>
 
<p>If you specify ALL, the display options are applied to all the fields in the currently open file, and all the fields are listed in alphanumeric order. Without ALL, the fields are listed in the order in which the field definitions are stored in the internal file dictionary, Table A. This order is unrelated to the order in which the fields were defined or the order in which they appear in Table B records. </p>
<p>
<p>The list of field names can include names that do not currently appear in any records. Even if a field name has been deleted from every record in which it occurs, or if all of the records in which it occurs have been deleted, the name is retained in the list of field names.</p>
You must enclose options in parentheses. If you do not specify any options in the <var>DISPLAY FIELD</var> command, <var>DEFINITIONS</var> is the default.</p>
<p>
If you specify ALL, the display options are applied to all the fields in the currently open file, and all the fields are listed in alphanumeric order. Without <var>ALL</var>, the fields are listed in the order in which the field definitions are stored in the internal file dictionary, Table A. This order is unrelated to the order in which the fields were defined or the order in which they appear in Table B records. </p>
<p>
The list of field names can include names that do not currently appear in any records. Even if a field name has been deleted from every record in which it occurs, or if all of the records in which it occurs have been deleted, the name is retained in the list of field names.</p>


==Displaying a field group==
==Displaying a field group==
<p>This DISPLAY command can display the name (as there are no other attributes) of one or more of the repeating field groups in the currently open file. The command is issued in the form: </p>
<p>
This <var>DISPLAY</var> command can display the name (as there are no other attributes) of one or more of the repeating field groups in the currently open file. </p>
 
===Syntax===
===Syntax===
The command is issued in the form:
<p class="syntax"><b>D</b>ISPLAY FIELDGROUP [(<span class="term">display-option</span> [,<span class="term">display-option</span>])]
  {ALL | <span class="term">fieldname</span> [,<span class="term">fieldname</span>]...}
</p>
<p>
Where the display options are as above. </p>


<p class="syntax"><b>D</b>ISPLAY FIELDGROUP [(<i>display-option</i> [,<i>display-option</i>])]
<blockquote class="note">
  {ALL | <i>fieldname</i> [,<i>fieldname</i>]...}
<p><b>Note:</b> As there are no attributes to be displayed, the only display option that provides a different output format is <var>DDL</var>. This should rarely need to be used because, as noted above, this form displays <var>FIELDGROUP</var> definitions as well as <var>FIELD</var> definitions in its output:</p>
</p>
<p>Where the display options are as above. Note that, as there are no attributes to be displayed, the only display option that provides a different output format is DDL. This should rarely need to be used because, as noted above, the </p>


<p class="syntax"><b>D</b>ISPLAY FIELD (DDL) ALL </p>
<p class="syntax"><b>D</b>ISPLAY FIELD (DDL) ALL </p>
</blockquote>


<p>will display FIELDGROUP definitions as well as FIELD definitions in its output.</p>
==Displaying a file==
<p>To display information about a file, use the <var>DISPLAY FILE</var> command. </p>


==Displaying a file==
<p>To display information about a file, use the DISPLAY FILE command. The DISPLAY FILE syntax is: </p>
===Syntax===
===Syntax===
<p class="code">DISPLAY FILE [(<var class="term">display_option</var>[,<var class="term">display_option</var>...])]
The <var>DISPLAY FILE</var> syntax is:
   {ALL | <var class="term">filename</var> [,<var class="term">filename</var>...]}
 
<p class="syntax">DISPLAY FILE [(<span class="term">display_option</span>[,<span class="term">display_option</span>...])]
   {ALL | <span class="term">filename</span> [,<span class="term">filename</span>...]}
</p>
</p>
<p>where:</p>
<p>Where:</p>
<p>display_option is one of the following terms:</p>
<p><var class="term">display_option</var> is one of the following terms:</p>
<table>
<table>
<tr class="head">
<tr class="head">
Line 111: Line 118:
<tr>
<tr>
<td>DEFINITIONS</td>
<td>DEFINITIONS</td>
<td>Displays the filename, the values of all the file parameters normally displayed by the FPARMS and TABLES options, and, if you have file manager privileges, the names of the data sets normally displayed by the DDNAMES options. </td>
<td>Displays the filename, the values of all the file parameters normally displayed by the <var>FPARMS</var> and <var>TABLES</var> options, and, if you have file manager privileges, the names of the data sets normally displayed by the <var>DDNAMES</var> options. </td>
</tr>
</tr>
<tr>
<tr>
<td>DEFN</td>
<td>DEFN</td>
<td>Equivalent to DEFINITIONS. </td>
<td>Equivalent to <var>DEFINITIONS</var>. </td>
</tr>
</tr>
<tr>
<tr>
<td>FPARMS</td>
<td>FPARMS</td>
<td>Displays FPARMS (file characteristics) parameters (see [[ FPARMS and TABLES File Parameters#File characteristics parameters (FPARMS)|File characteristics parameters (FPARMS)]]), as well as the names of the sort or hash key field, and, if you have file manager privileges, any record security field that has been defined. This option is only accessible to general users if you set the PRIVDEF parameter to permit display. </td>
<td>Displays <var>FPARMS</var> (file characteristics) parameters (see [[FPARMS and TABLES file parameters#File characteristics parameters (FPARMS)|File characteristics parameters (FPARMS)]]), as well as the names of the sort or hash key field, and, if you have file manager privileges, any record security field that has been defined. This option is only accessible to general users if you set the <var>[[PRIVDEF parameter|PRIVDEF]]</var> parameter to permit display. </td>
</tr>
</tr>
<tr>
<tr>
<td>TABLES</td>
<td>TABLES</td>
<td>Displays TABLES (file table) parameters (see [[ FPARMS and TABLES File Parameters#File table parameters (TABLES)|File table parameters (TABLES)]]). </td>
<td>Displays <var>TABLES</var> (file table) parameters (see [[FPARMS and TABLES file parameters#File table parameters (TABLES)|File table parameters (TABLES)]]). </td>
</tr>
</tr>
<tr>
<tr>
<td>ABBREV</td>
<td>ABBREV</td>
<td>When used with the FPARMS, TABLES, or DEFINITIONS option, lists parameter values in an abbreviated form, without bit-string descriptions and descriptive text. </td>
<td>When used with the <var>FPARMS</var>, <var>TABLES</var>, or <var>DEFINITIONS</var> option, lists parameter values in an abbreviated form, without bit-string descriptions and descriptive text. </td>
</tr>
</tr>
<tr>
<tr>
Line 133: Line 144:
<td>Lists the names of the data sets that make up the <var class="product">Model&nbsp;204</var> file. This option requires file manager privileges. </td>
<td>Lists the names of the data sets that make up the <var class="product">Model&nbsp;204</var> file. This option requires file manager privileges. </td>
</tr>
</tr>
<tr>
<tr>
<td>NOUSE</td>
<td>NOUSE</td>
<td>Displays the information at your terminal even if a USE command preceded the DISPLAY command. The alternate output device is left open but is not used. </td>
<td>Displays the information at your terminal even if a <var>USE</var> command preceded the <var>DISPLAY</var> command. The alternate output device is left open but is not used. </td>
</tr>
</tr>
</table>
</table>
<p>ALL causes <var class="product">Model&nbsp;204</var> to apply the display options to all open files; otherwise, the command is applied only to those files listed.</p>
<p>
<p>If no options are included in the DISPLAY FILE command, DEFINITIONS is the default. The files specified must be open when you issue the command or the information is not displayed.</p>
ALL causes <var class="product">Model&nbsp;204</var> to apply the display options to all open files; otherwise, the command is applied only to those files listed.</p>
<p>All options, except DDNAMES and FPARMS (as noted), can be issued by an ordinary <var class="product">Model&nbsp;204</var> user. Options must be enclosed in parentheses. </p>
<p>
If no options are included in the <var>DISPLAY FILE</var> command, <var>DEFINITIONS</var> is the default. The files specified must be open when you issue the command or the information is not displayed.</p>
<p>
All options, except <var>DDNAMES</var> and <var>FPARMS</var> (as noted), can be issued by an ordinary <var class="product">Model&nbsp;204</var> user. Options must be enclosed in parentheses. </p>
 
==Displaying a record description==
==Displaying a record description==
<p>To list the preallocated fields in the currently open file, issue the following form of DISPLAY:</p>
<p>
===Syntax===
To list the preallocated fields in the currently open file, issue the following form of <var>DISPLAY</var>: </p>
<p class="code">DISPLAY RECORD [(NOUSE)]  
 
<p class="syntax">DISPLAY RECORD [(NOUSE)]  
</p>
</p>
<p>where: </p>
<p>
<p>NOUSE causes information to be displayed at your terminal even if a USE command preceded the DISPLAY command. The alternate output device is left open but is not used.</p>
Where: </p>
<p>Fields are listed in the same order in which they are allocated in each record in the file. The OCCURS, LENGTH, and PAD specifications for the fields also are included (see the description of the DEFINE command in [[ Defining Fields Manually#Defining Fields Manually|Defining Fields Manually]]).     </p>
<p>
<var>NOUSE</var> causes information to be displayed at your terminal even if a <var>USE</var> command preceded the <var>DISPLAY</var> command. The alternate output device is left open but is not used.</p>
<p>
Fields are listed in the same order in which they are allocated in each record in the file. The <var>OCCURS</var>, <var>LENGTH</var>, and <var>PAD</var> specifications for the fields also are included (see the description of the <var>DEFINE</var> command in [[Defining fields manually]]). </p>
 
==Broadcasting a file message==
==Broadcasting a file message==
<p>The BROADCAST command allows you to add, change, or remove a file message that is normally displayed whenever a user opens a file. </p>
<p>
<p>The file message displayed on the user's terminal is preceded by a header line in the form:</p>
The <var>BROADCAST</var> command allows you to add, change, or remove a file message that is normally displayed whenever a user opens a file. </p>
<p class="code">MSG FROM FILE <var class="term">filename</var>
<p>
The file message displayed on the user's terminal is preceded by a header line in the form:</p>
<p class="syntax">MSG FROM FILE <span class="term">filename</span>
</p>
</p>
==BROADCAST command==
==BROADCAST command==
<p>The format of the BROADCAST command is:</p>
<p>
===Syntax===
The format of the BROADCAST command is:</p>
 
<p class="code">BROADCAST FILE [URGENT] [<var class="term">text</var>]  
<p class="code">BROADCAST FILE [URGENT] [<var class="term">text</var>]  
</p>
</p>
<p>where: </p>
<p>Where: </p>
<p>text is the new file message.     </p>
<p>
<p>URGENT displays the message almost immediately on the terminals of users who have the file open. See the following discussion of message timing.  </p>
<var class="term">text</var> is the new file message. </p>
<p>
<var>URGENT</var> displays the message almost immediately on the terminals of users who have the file open. See the following discussion of message timing.  </p>
 
===Message timing for URGENT messages===
===Message timing for URGENT messages===
<p>The exact time at which an URGENT message is displayed on a user's terminal depends upon two factors:</p>
<p>
The exact time at which an <var>URGENT</var> message is displayed on a user's terminal depends upon two factors:</p>
<ul>
<ul>
<li>What the receiver of the message is doing at the time (for example, waiting for input, running a request, and so on).</li>
<li>What the receiver of the message is doing at the time (for example, waiting for input, running a request, and so on).</li>
<li>Type of <var class="product">Model&nbsp;204</var> terminal handler used by the user (the IODEV number).    </li>
<li>Type of <var class="product">Model&nbsp;204</var> terminal handler used by the user (the IODEV number).    </li>
</ul>
</ul>
<p>The following situations are most common:</p>
<p>
The following situations are most common:</p>
<table>
<table>
<tr class="head">
<tr class="head">
Line 174: Line 205:
<th>Then the message is displayed...</th>
<th>Then the message is displayed...</th>
</tr>
</tr>
<tr>
<tr>
<td>Currently executing a command, such as a DISPLAY</td>
<td>Currently executing a command, such as a <var>DISPLAY</var></td>
<td>When the command completes</td>
<td>When the command completes</td>
</tr>
</tr>
<tr>
<tr>
<td>Running a request</td>
<td>Running a request</td>
<td>At the first backwards jump or bottom of a FOR loop</td>
<td>At the first backwards jump or bottom of a <var>FOR</var> loop</td>
</tr>
</tr>
<tr>
<tr>
<td>Entering input and is using a SNA Communications Server (formerly VTAM) terminal</td>
<td>Entering input and is using a SNA Communications Server <br>(formerly VTAM) terminal</td>
<td>Immediately</td>
<td>Immediately</td>
</tr>
</tr>
</table>
</table>
<p>For other terminal types, messages cannot be displayed while the receiver is entering input.</p>
<p>
For other terminal types, messages cannot be displayed while the receiver is entering input.</p>
 
==Changing or deleting a BROADCAST message==
==Changing or deleting a BROADCAST message==
<p>You can change a BROADCAST message by issuing a new BROADCAST FILE command.</p>
<p>
<p>If you change a file message when a user has the file open, <var class="product">Model&nbsp;204</var> displays the new message the next time that the user is at command level outside a procedure.</p>
You can change a <var>BROADCAST</var> message by issuing a new <var>BROADCAST FILE</var> command.</p>
<p>A copy of the message is saved in the file until it is implicitly deleted by recreating or reinitializing the file, or until the text is explicitly deleted by issuing the following command with no text string:</p>
<p>
If you change a file message when a user has the file open, <var class="product">Model&nbsp;204</var> displays the new message the next time that the user is at command level outside a procedure.</p>
<p>
A copy of the message is saved in the file until it is implicitly deleted by recreating or reinitializing the file, or until the text is explicitly deleted by issuing the following command with no text string:</p>
<p class="code">BROADCAST FILE  
<p class="code">BROADCAST FILE  
</p>
</p>
==Creating a multiline message==
==Creating a multiline message==
<p>The text included in the BROADCAST FILE command can consist of multiple lines, specified in the following way:</p>
<p>
<p class="code"><var class="term">line1</var>/<var class="term">line2</var>/ ...  
The text included in the <var>BROADCAST FILE</var> command can consist of multiple lines, specified in the following way:</p>
<p class="syntax"><span class="term">line1</span><span class="squareb">/</span><span class="term">line2</span><span class="squareb">/</span> ...  
</p>
</p>
<p>where:</p>
<p>
<p>slash (/) is displayed as a new line or a carriage return/line feed sequence. </p>
Where:</p>
<p>Two slashes without text between them creates a blank line in the file message.</p>
<p>
<p>If insufficient storage is available to hold a copy of the file's BROADCAST message during open processing, an informational message is displayed and open processing continues.</p>
A slash (<tt>/</tt>) is displayed as a new line or a carriage return/line feed sequence. </p>
<p>&nbsp;</p>
<p>
Two slashes without text between them creates a blank line in the file message.</p>
<p>
If insufficient storage is available to hold a copy of the file's <var>BROADCAST</var> message during open processing, an informational message is displayed and open processing continues.</p>


[[Category:File management]]
[[Category:Model 204 files]]

Latest revision as of 21:17, 7 April 2017

Overview

The Model 204 DISPLAY command and the IFDISP Host Language Interface function allow you to display:

  • Definitions of a field or fields
  • Definitions of physical field groups
  • File names, data sets, and (if you have the correct privileges) parameters
  • Preallocated fields in the file

You can also use DISPLAY to display information about file groups, procedures, and access rights. For a discussion of displaying access rights, see Displaying user and procedure classes.

The BROADCAST FILE command allows you to specify or change a message that is displayed whenever a user opens a file.

In this page, the DISPLAY command forms and the BROADCAST command are described in detail.

Displaying a field

The DISPLAY command can display the description of any field in the currently open file. Fields are listed with their attributes in the format specified by the display options (definitions, names only, or abbreviations).

Syntax

The command is issued in the form:

DISPLAY FIELD [(display-option [,display-option])] {ALL | fieldname [,fieldname]...}

Where:

display-option One of the following:
Option Displays...
ABBREV

NOABBREV

Name and description of the field in abbreviated form.

NOABBREV is the default.

COMMA If this is specified, a comma is used to separate the display of the field's attributes, and many of the strings of blanks between the attributes are collapsed to a single blank. Since commas are already used with the NOABBREV option, this actually only has an effect when the ABBREV option is specified.
DDL

NODDL

Model 204 data definition language statements needed to rebuild a file.

NODDL is the default.

If there are repeating field group definitions in the file, 'DDL' is the only display-option which displays both the fieldgroup definitions as well as the field definitions.

DEFINITIONS Name and description of the field; this is the default.
NAMES Name (only) of the field.
NOUSE Field output on your terminal, even if a USE command precedes the DISPLAY. Any alternate device remains open, but is not used.
fieldname The name of an existing field in a Model 204 file.

You must enclose options in parentheses. If you do not specify any options in the DISPLAY FIELD command, DEFINITIONS is the default.

If you specify ALL, the display options are applied to all the fields in the currently open file, and all the fields are listed in alphanumeric order. Without ALL, the fields are listed in the order in which the field definitions are stored in the internal file dictionary, Table A. This order is unrelated to the order in which the fields were defined or the order in which they appear in Table B records.

The list of field names can include names that do not currently appear in any records. Even if a field name has been deleted from every record in which it occurs, or if all of the records in which it occurs have been deleted, the name is retained in the list of field names.

Displaying a field group

This DISPLAY command can display the name (as there are no other attributes) of one or more of the repeating field groups in the currently open file.

Syntax

The command is issued in the form:

DISPLAY FIELDGROUP [(display-option [,display-option])] {ALL | fieldname [,fieldname]...}

Where the display options are as above.

Note: As there are no attributes to be displayed, the only display option that provides a different output format is DDL. This should rarely need to be used because, as noted above, this form displays FIELDGROUP definitions as well as FIELD definitions in its output:

DISPLAY FIELD (DDL) ALL

Displaying a file

To display information about a file, use the DISPLAY FILE command.

Syntax

The DISPLAY FILE syntax is:

DISPLAY FILE [(display_option[,display_option...])] {ALL | filename [,filename...]}

Where:

display_option is one of the following terms:

Option Result
DEFINITIONS Displays the filename, the values of all the file parameters normally displayed by the FPARMS and TABLES options, and, if you have file manager privileges, the names of the data sets normally displayed by the DDNAMES options.
DEFN Equivalent to DEFINITIONS.
FPARMS Displays FPARMS (file characteristics) parameters (see File characteristics parameters (FPARMS)), as well as the names of the sort or hash key field, and, if you have file manager privileges, any record security field that has been defined. This option is only accessible to general users if you set the PRIVDEF parameter to permit display.
TABLES Displays TABLES (file table) parameters (see File table parameters (TABLES)).
ABBREV When used with the FPARMS, TABLES, or DEFINITIONS option, lists parameter values in an abbreviated form, without bit-string descriptions and descriptive text.
DDNAMES Lists the names of the data sets that make up the Model 204 file. This option requires file manager privileges.
NOUSE Displays the information at your terminal even if a USE command preceded the DISPLAY command. The alternate output device is left open but is not used.

ALL causes Model 204 to apply the display options to all open files; otherwise, the command is applied only to those files listed.

If no options are included in the DISPLAY FILE command, DEFINITIONS is the default. The files specified must be open when you issue the command or the information is not displayed.

All options, except DDNAMES and FPARMS (as noted), can be issued by an ordinary Model 204 user. Options must be enclosed in parentheses.

Displaying a record description

To list the preallocated fields in the currently open file, issue the following form of DISPLAY:

DISPLAY RECORD [(NOUSE)]

Where:

NOUSE causes information to be displayed at your terminal even if a USE command preceded the DISPLAY command. The alternate output device is left open but is not used.

Fields are listed in the same order in which they are allocated in each record in the file. The OCCURS, LENGTH, and PAD specifications for the fields also are included (see the description of the DEFINE command in Defining fields manually).

Broadcasting a file message

The BROADCAST command allows you to add, change, or remove a file message that is normally displayed whenever a user opens a file.

The file message displayed on the user's terminal is preceded by a header line in the form:

MSG FROM FILE filename

BROADCAST command

The format of the BROADCAST command is:

BROADCAST FILE [URGENT] [text]

Where:

text is the new file message.

URGENT displays the message almost immediately on the terminals of users who have the file open. See the following discussion of message timing.

Message timing for URGENT messages

The exact time at which an URGENT message is displayed on a user's terminal depends upon two factors:

  • What the receiver of the message is doing at the time (for example, waiting for input, running a request, and so on).
  • Type of Model 204 terminal handler used by the user (the IODEV number).

The following situations are most common:

If receiver is... Then the message is displayed...
Currently executing a command, such as a DISPLAY When the command completes
Running a request At the first backwards jump or bottom of a FOR loop
Entering input and is using a SNA Communications Server
(formerly VTAM) terminal
Immediately

For other terminal types, messages cannot be displayed while the receiver is entering input.

Changing or deleting a BROADCAST message

You can change a BROADCAST message by issuing a new BROADCAST FILE command.

If you change a file message when a user has the file open, Model 204 displays the new message the next time that the user is at command level outside a procedure.

A copy of the message is saved in the file until it is implicitly deleted by recreating or reinitializing the file, or until the text is explicitly deleted by issuing the following command with no text string:

BROADCAST FILE

Creating a multiline message

The text included in the BROADCAST FILE command can consist of multiple lines, specified in the following way:

line1/line2/ ...

Where:

A slash (/) is displayed as a new line or a carriage return/line feed sequence.

Two slashes without text between them creates a blank line in the file message.

If insufficient storage is available to hold a copy of the file's BROADCAST message during open processing, an informational message is displayed and open processing continues.