Question & Answer
Question
Customer wanted to know what is the default time unit when using PIPE CC for an MVS command under NetView.
Answer
Customer was using a command 'PIPE CC MVS cmd | STEM msg.' and on one system the desired response messages were received but on another they were not. Customer wanted to know what the default wait time is when using "CC" or CORRCMD within a NetView pipe for a MVS command.
If you enter NetView command 'HELP PIPE CC' (short for CORRCMD), you will see this note that gives you a tip on where the wait time values are coded;
Usage Notes
The timeouts and termination conditions to be used are defined by the customer using the CCDEF stage.
This reference to CCDEF refers to default 'command completion' wait time definitions, and these will be stored in DSIPARM DSICCDEF. You can copy it to your local DSIPARM if you want to change any of the values.
Specific to the MVS command default wait time using 'CC', it is here in that member:
MVS
* the NetView command interface for general MVS commands
* it is very difficult to determine appropriate timeout or termination
* conditions for this case since the MVS command being executed could
* be virtually anything, including commands addressed to other
* subsystems.
CORRWAIT 1
The net of this is that if system does not return the response within 1 second then the pipe output will have no data.
To address this issue if systems take longer for MVS commands, you have two choices:
1) update DSICCDEF to make the default time longer to allow for system performance differences; if you do this you will stop and restart NetView to effect the change. If you want to use a different member name, then update the CCDEF entry in CNMSTYLE (or copy it and update it in CNMSTGEN).
2) code a discrete wait time for your command instead of using "CC", to allow for potential delays. It would look like this;
PIPE MVS cmd|CORRWAIT 30|stem msgs.'
Regardless of which technique is employed it is always recommended to use PIPE TOSTRING when dealing with a MVS command in PIPE, so that you can terminate the PIPE stream as soon as the desired message occurs and not have the PIPE wait the full length of time specified, no matter the length of time specified.
Historical Number
85445;004;000
Product Synonym
NV NVz NVzOS
Was this topic helpful?
Document Information
Modified date:
03 August 2018
UID
swg21320977