This function direct the output of TRACE and SAY operations to a data set.
Form 1:
dcb = SAYWHAT(OPEN,,[lines],[output],[opt1],[head],[class],[opt2],[dest],[ddname])
Form 2:
dcb = SAYWHAT(USE,dcb)
Form 3:
dcb = SAYWHAT(CLOSE,dcb)
Parameters
Value that identifies a file and an associated internal workspace. The DCB is returned by the OPEN operation and is required for all other functions.
Allocates and opens a new file, and returns a dcb.
Argument two is reserved and must be null.
Indicates that the designated file is used for future SAY or TRACE output. You can use this argument to alternate output among multiple files.
Specifying SAYWHAT('USE',0) terminates directed SAY or TRACE output, and causes more SAY or TRACE output to be printed in the ISERVE log file (ISRVLOG).
Number of lines of data per page, not including the lines the page headers used. Null or zero indicates a page of infinite length.
Default: 0
Name of an OUTPUT JCL statement to be associated with this file.
Specify:
CC indicates that you supply an ANSI carriage control character (1, ' ', 0, -, +) for each record you create with a SAY.
NOCC indicates that you do not supply an ANSI carriage control character for each record you create with a SAY. ANSI carriage control characters (single space) are supplied by the system.
One or more strings to be used as page headings. Headings are separated from each other by a semicolon (;). Each heading must begin with an ANSI carriage control character. The first header must have a 1 (one) as its carriage control.
If you want one or more blank lines between the headings and data lines, explicitly code a blank heading line.
The following value cannot exceed 256 (not including semicolons):
(Total characters in headings) + (4*(number of headings)) + 2
To print the current page number, code a single occurrence of '@@@@' in your heading. The page number replaces this string.
SYSOUT class to be assigned.
Default: The default class that the operating system assigned.
Specify:
HOLD
Indicates that the spun file is held.
NOHOLD
Indicates that the spun file is not held.
Default: NOHOLD
User ID or node.userid to indicate the destination for routing the file.
DDname (supplied from JCL or the ALLOC() function) of the file to be used. Overrides the output, class, hold, and dest arguments.
Indicates that the file closes and is spun.
INVALID FILE DCB
ARG n MISSING OR INVALID
FILE FAILED TO OPEN
Example
ddname = alloc('RBROWNE.SAYOUT','SHR',,'DD1') /* Output data set */ dcb = saywhat('open',,,,,,,,,ddname) /* Tell SAYWHAT about it */ saywhat('use',dcb) == '' /* Switch SAY output */ say 'should go to RBROWNE.SAYOUT' saywhat('use',0) == '' /* Switch back, and close file */
Copyright © 2014 CA Technologies.
All rights reserved.
|
|