DEFINE STREAM command: Difference between revisions
No edit summary |
m (minor cleanup) |
||
Line 20: | Line 20: | ||
</p> | </p> | ||
The command options are described in the following table. See also [[Configuring checkpoint and journal data streams]]. </p> | |||
<table> | <table> | ||
Line 104: | Line 103: | ||
<table> | <table> | ||
<caption>Effects of AUTO and NOAUTO options</caption> | <caption>Effects of AUTO and NOAUTO options</caption> | ||
<tr> <th> | <tr class="head"> <th> | ||
<p>Option</p> | <p>Option</p> | ||
</th> | </th> | ||
Line 175: | Line 174: | ||
==Usage notes== | ==Usage notes== | ||
<p>The DEFINE STREAM command is only for the recovery streams CCAJLOG, CCAJRNL, CCARF, CHKPNTS, CHKPOINT, RESTART, and RESTARTS. The ring stream OFFLOAD option can also be a stream of any type or a data set. These DEFINE STREAM commands can be entered before the User 0 parameter line in the CCAIN data set. This allows them to be defined by the system manager before they are opened by the initialization routines.</p> | <p> | ||
<p>For more information on sequential file processing, refer to [[OFFLOAD command]].</p> | The DEFINE STREAM command is only for the recovery streams CCAJLOG, CCAJRNL, CCARF, CHKPNTS, CHKPOINT, RESTART, and RESTARTS. The ring stream OFFLOAD option can also be a stream of any type or a data set. These DEFINE STREAM commands can be entered before the User 0 parameter line in the CCAIN data set. This allows them to be defined by the system manager before they are opened by the initialization routines.</p> | ||
<p> | |||
For more information on sequential file processing, refer to [[OFFLOAD command]].</p> | |||
====Handling mutually exclusive or missing options==== | ====Handling mutually exclusive or missing options==== | ||
<p>Each type of stream you can define-CONCATENATE, PARALLEL, RING, GDG-is mutually exclusive of the other types of streams. If you define a stream with more than one type, <var class="product">Model 204</var> issues various messages, depending on the combination of types you defined.</p> | <p> | ||
Each type of stream you can define-CONCATENATE, PARALLEL, RING, GDG-is mutually exclusive of the other types of streams. If you define a stream with more than one type, <var class="product">Model 204</var> issues various messages, depending on the combination of types you defined.</p> | |||
<p>In the following example, CCAJRNL is defined with both the CONCATENATE and PARALLEL options:</p> | <p>In the following example, CCAJRNL is defined with both the CONCATENATE and PARALLEL options:</p> | ||
<p class="code">DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - | <p class="code">DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - | ||
Line 204: | Line 206: | ||
<b></b>*** 2 ****** M204.0630: DEFINE COMMAND REJECTED | <b></b>*** 2 ****** M204.0630: DEFINE COMMAND REJECTED | ||
</p> | </p> | ||
<p>When you encounter these types of errors, the solution is to rewrite commands.</p> | <p> | ||
When you encounter these types of errors, the solution is to rewrite commands.</p> | |||
[[Category: System manager commands]] | [[Category: System manager commands]] | ||
[[Category:Commands]] | [[Category:Commands]] |
Revision as of 18:32, 29 August 2014
Describing sequential I/O streams
Summary
- Privileges
- User 0 or system manager
- Function
- Describes sequential I/O streams for processing within Model 204
Syntax
DEFINE STREAM name [LIKE previousname] WITH SCOPE=SYSTEM {CONCATENATE=(stream1 [,streamn]...) | [PARALLEL=(stream1 [,streamn] MINAVAIL=n] | GDG=ddname CONTROL=ddname2} | ((RING=(stream1 [,streamn]...) [AUTOOFFLOAD=n] OFFLOAD=stream [CLOSE={AUTO | NOAUTO}]) CONTROL=ddname)
The command options are described in the following table. See also Configuring checkpoint and journal data streams.
CONCATENATE | Specifies a stream defined with a concatenated configuration. | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
stream1 ... streamn | Options stream1 through streamn specify the names of the streams that are members of the concatenated configuration in the order of their use. The streams referred to can be:
| |||||||||||||||||
PARALLEL | Specifies a stream defined with a parallel configuration. A PARALLEL stream requires a MINAVAIL value. | |||||||||||||||||
MINAVAIL | Specifies the number of members that must remain available for a parallel stream to continue as a valid output stream.
MINAVAIL is valid for PARALLEL streams only. The default is the number of members specified in the PARALLEL parameter. The smallest allowable value for this option is 1. If there is an I/O error on all streams, an I/O error is displayed. If one member stream is still usable, then a value less than MINAVAIL results in the display of a file-full condition with output streams. Under the same conditions, falling below MINAVAIL results in the display of an end-of-data condition with input streams. | |||||||||||||||||
RING | Specifies that the stream being defined is a ring configuration. The options stream1 through streamn specify the names of the streams that are members of the ring configuration in the order of their use. The streams referred to can be:
| |||||||||||||||||
AUTOOFFLOAD | Specifies the number of members that can be filled before an offload process is started for an output RING stream. The value specified must range from one to the number of ring members minus one. If a value greater than the range maximum is specified, the DEFINE STREAM command is rejected.
This option is invalid with PARALLEL and CONCATENATED streams and has no effect when specified for input RING streams. The default value is the number of ring members minus one. The system manager can start the offload process manually at any time by using the OFFLOAD command. | |||||||||||||||||
OFFLOAD | Specifies the name of the stream used for automatic or manual dumping of RING stream members. For an output RING, the OFFLOAD stream is opened at one of the following points:
The offload stream is closed if it was concatenated. Otherwise, it is left open as long as the ring stream is left open. In the case of input, OFFLOAD specifies the stream containing data that was offloaded while writing to the ring stream. OFFLOAD is required for ring streams and is not valid with either CONCATENATE or PARALLEL. | |||||||||||||||||
CLOSE | Specifies the offloading action taken when the RING stream is closes.
|
Example
The following example uses a series of DEFINE STREAM commands to specify a recovery stream and the underlying members of that recovery stream:
DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - RING=(A,B,C) OFFLOAD=D CONTROL=E - AUTOOFFLOAD=2 DEFINE STREAM A WITH SCOPE=SYSTEM - PARALLEL=(JRNL1,JRNL2) DEFINE STREAM B WITH SCOPE=SYSTEM - PARALLEL=(JRNL3,JRNL4) DEFINE STREAM C WITH SCOPE=SYSTEM - PARALLEL=(JRNL5,JRNL6) DEFINE STREAM D WITH SCOPE=SYSTEM - PARALLEL=(TAPE1,TAPE2) MINAVAIL=1 DEFINE STREAM E WITH SCOPE=SYSTEM - PARALLEL=(CTL1,CTL2) MINAVAIL=1
Usage notes
The DEFINE STREAM command is only for the recovery streams CCAJLOG, CCAJRNL, CCARF, CHKPNTS, CHKPOINT, RESTART, and RESTARTS. The ring stream OFFLOAD option can also be a stream of any type or a data set. These DEFINE STREAM commands can be entered before the User 0 parameter line in the CCAIN data set. This allows them to be defined by the system manager before they are opened by the initialization routines.
For more information on sequential file processing, refer to OFFLOAD command.
Handling mutually exclusive or missing options
Each type of stream you can define-CONCATENATE, PARALLEL, RING, GDG-is mutually exclusive of the other types of streams. If you define a stream with more than one type, Model 204 issues various messages, depending on the combination of types you defined.
In the following example, CCAJRNL is defined with both the CONCATENATE and PARALLEL options:
DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - CONCATENATE=(J01,J02) - PARALLEL=(JO3,JO4) - MINAVAIL=2 - *** 1 ****** M204.1088: CONCATENATE AND PARALLEL ARE MUTUALLY EXCLUSIVE OPTIONS *** 2 ****** M204.0630: DEFINE COMMAND REJECTED
In the following example, CCAJRNL is defined as GDG, but the CONTROL option is missing.
DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - GDG=STEP04B - *** 1 ****** M204.1471: CONTROL IS REQUIRED FOR THIS COMMAND *** 2 ****** M204.0630: DEFINE COMMAND REJECTED
In the following example, CCAJRNL is defined first as a RING stream and then as a GDG data set. Model 204 rejects this definition because it reads through to the final option, AUTOOFFLOAD, holds that, and reads backwards to find the type of stream, GDG, the last type defined. Since AUTOOFFLOAD and GDG are mismatched, an error is issued.
DEFINE STREAM CCAJRNL WITH SCOPE=SYSTEM - RING=(J01,J02) - GDG=STEP06DD - CONTROL=CTL01 - OFFLOAD=OFFJ01 - AUTOOFFLOAD=3 *** 1 ****** M204.1473: RING IS REQUIRED WHEN AUTOOFFLOAD IS SPECIFIED *** 2 ****** M204.0630: DEFINE COMMAND REJECTED
When you encounter these types of errors, the solution is to rewrite commands.