Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
WRITE statement z/OS DFSMSdfp Storage Administration SC23-6860-01 |
|
Use the WRITE statement to issue a message to an end user at execution and allocation time. With the WRITE statement, you might notify end users that you are removing a particular storage class, you might inform end users that they lack sufficient authority to use a particular management class, or you might tell an end user that you have moved a tape data set to DASD. In a TSO/E ALLOCATION environment, the text of the WRITE message displays only if the allocation fails. Exception: The WRITE message is never
displayed for any product or application that uses Dynamic Allocation
(for example: DFSMSdss, DFSORT SORTWKnn data sets).
Under certain conditions related to data set stacking, SMS invokes ACS routines more than once. Consequently, you might want to take special care when using WRITE statements in order to avoid duplicates in the job log. A WRITE message can contain up to 110 characters of text and variables. The message substitutes the value of a variable for a variable name. With the exception of &ANYVOL and &ALLVOL, you can use any of the read-only variables in write statements. All numerical values are in hexadecimal when displayed in write statements. You must enclose the message in single quotation marks. If you want a single quotation mark to be part of the message, use two single quotation marks to represent it. You can use continuation characters (+, -) to continue text or a literal onto a subsequent line. The closing single quotation mark signifies the end of text. A variable can be referenced on a subsequent line after the closing quotation mark without a continuation character. For example, the following WRITE message:
displays
as:
The following WRITE
message:
displays as:
A nine-character system message id and a single blank character precede your message to the end user. At execution and allocation time, an end user can receive a maximum of five messages. If any more messages are generated, a sixth and final message indicates that additional messages have been generated, but the additional messages are not displayed. WRITE 'message'
Assuming the value of &STORCLAS
is 'SC1:', the following
WRITE message
displays
as:
When multiple storage group names are assigned to &STORGRP,
only the first name in the list of storage group names is displayed
in a WRITE message. For example, if the values for &STORGP are
'SG1', 'SG2', and 'SG3', the following WRITE statement:
displays:
and the
following WRITE statement:
displays:
|
Copyright IBM Corporation 1990, 2014
|