Printing the Network Log
You can use the CNMPRT (CNMSJM04) job to print the network log.
The CNMSJM04 job was copied to your PROCLIB data set as CNMPRT during
installation. The NetView® startup
procedure, the CNMPROC (CNMSJ009) procedure, also has commented-out
JCL for printing the log.
Note: You can also use sample CNMS6214
to print the log.
To change the defaults used to print the network log, pass control
statements to PGM=DSIPRT using the DSIINP DD statement. You can do
this using one of two methods:
- Create the following statements for a job stream or an instream
procedure:
//DSIINP DD * PASSWD=password OPER1,OPER2,NETOP1 RANGE_DELIM=delimiter DATE_FORMAT=date_format TIME_FORMAT=time_format CONT_RANGE=[start_date] [start_time] delimiter [end_date] [end_time] TIME_RANGE=[start_time] delimiter [end_time] DATE_RANGE=[start_date] delimiter [end_date] TRANSTBL MOD=DSIEBCDC - Create a statement similar to the following to define a data set
member to contain the print control statements, and put the preceding
print control statements in this member. Ensure that the print control
statements do not contain sequence numbers.
//DSIINP DD DSN=SYS1.PARMLIB(MEMBER),DISP=SHR
Usage for Print Control Statements:
- If you defined passwords for the network log, add a PASSWD statement:
- You can limit the output that is produced by specifying one or
more operator IDs or tasks, separated by commas or blanks. For example,
to limit the output to records related to operators OPER1, OPER2,
and NETOP1, specify the following statement:
OPER1,OPER2,NETOP1 - You can specify the range delimiter that you want to use when
specifying a date and time range:
where: delimiter is a 1-character
symbol that is used to separate the start date and time from the end
date and time. The delimiter must be different from any delimiter
used in either the DATE_FORMAT or TIME_FORMAT statements. The default
is a dash (-).
Note: The RANGE_DELIM statement must precede the DATE_FORMAT or TIME_FORMAT statements.
- You can specify the date format that you want to use when specifying
a date value in subsequent range parameters:
where:
- date_format
- Specifies the order of the month (MM), day (DD), and year (YY), and also 1-character non-alphanumeric delimiters between the values. This delimiter must be different from the delimiter in effect for TIME_FORMAT and RANGE_DELIM.
Note:- You can specify the month, day, and year in any order.
- If you specify the month, day, and year, this indicates the month, day within the month, and year. If you specify only the year and day, this indicates the year and the day of the year (Julian date).
- You can specify one or multiple M, D, and Y characters for the
date. For example, the following format specifies the day, followed
by the month and year using a dash for the delimiter:
DATE_FORMAT=DD-MM-YYYYThe following format specifies a Julian date using a period for a delimiter:DATE_FORMAT=YYYY.DDD - If you omit the DATE_FORMAT parameter, the default is MM/DD/YY.
- You can specify the time format that you want to use when specifying
a time value in subsequent range parameters:
where:
- time_format
- Specifies the order of the hour (HH), minutes (MM), and seconds (SS), and also 1-character non-alphanumeric delimiters between the values. This delimiter must be different from the delimiter in effect for DATE_FORMAT and RANGE_DELIM.
Note:- You can specify the hour, minutes, and seconds in any order.
- You can specify one or multiple H, M, and S characters for the
time. For example, the following format specifies the hour followed
by the minutes, using a colon for the delimiter:
TIME_FORMAT=HH:MM:SS - If you omit the TIME_FORMAT parameter, the default is HH:MM:SS.
- You can limit the output by specifying a starting and ending date
and time range.
Use the CONT_RANGE parameter to specify a continuous range of time from one point in time to another.
Use the TIME_RANGE parameter to limit entries to a specific range of time for each day. Use the DATE_RANGE parameter to limit entries to a specific range of dates. You can specify both a TIME_RANGE and DATE_RANGE parameter.
where:- start_date | end_date
- Specifies the date in the format defined by the DATE_FORMAT
control parameter.
The default start_date is the earliest date in the log. The default end_date is the last date in the log.
- start_time | end_time
- Specifies the time in the format defined by the TIME_FORMAT
parameter.
The default start_time is 00:00:00 (midnight).
The default end_time is 23:59:59 (one second before midnight).
- delimiter
- Specifies the delimiter as defined on the RANGE_DELIM parameter. If you omitted the RANGE_DELIM parameter, use a dash (-) for the delimiter.
Note:- Specify DATE_FORMAT, TIME_FORMAT, and RANGE_DELIM before CONT_RANGE, DATE_RANGE, and TIME_RANGE.
- Do not specify CONT_RANGE if you specify either TIME_RANGE, DATE_RANGE, or both.
Examples:- To limit entries to those dated from August 1, 2019, until August 10, 2019, use:
DATE_RANGE=8/1/19-8/10/19 - To limit entries to those that occur from 7:00 A.M. to 5:00 P.M.
(within DATE_RANGE, if specified), use:
TIME_RANGE=7:00:00-17:00:00 - To limit entries to those that occur from August 7, 2019, starting at 10:00 A.M., until August
10, 2019, ending at noon, use:
CONT_RANGE=8/7/19 10:00:00 - 8/10/19 12:00:00
- To support a non-EBCDIC character set, use a TRANSTBL statement in
the CNMSTUSR or CxxSTGEN member to specify the same module
that is specified in the TRANSTBL statement in the CNMSTYLE member.
For information about changing CNMSTYLE statements, see IBM Z® NetView Installation:
Getting Started.
For example, if your system supports kanji, use the following
statement:
TRANSTBL MOD=DSIKANJI - Any statement with an asterisk (*) in column 1 is considered a comment, and is ignored by DSIPRT.
