Example 2
To use a CCW that your XA or XC application has already built,
you could code CONSOLE EXCP as follows:
CONSOLE EXCP,PATH='PATH1',ORB=ORBADDR
PATH=‘PATH1’ specifies the name of the path. ORB=ORBADDR specifies the address of an Operation Request Block (ORB) for a channel program. The ORB can indicate either format-0 or format-1 CCWs depending on whether you are addressing data above or below the 16MB line. For CCWs below 16MB, you can use format-0 or format-1. For CCWs above 16MB, you must use format-1. CCWs for data above 16MB. The ORB must contain a pointer to a channel program for the operation(s) to be performed.
Note:
- The ORB parameter is invalid for paths to the virtual console and in a 370 virtual machine.
- Command codes for the DIAGNOSE code X'58' must be provided if you are doing I/O to the virtual console. Otherwise, command codes defined for the dedicated device should be used in the CCW. For dedicated devices, a SSCH is issued.
- Do not specify the ORB and CCW parameters on the same macro call.
- If you specify the CCW parameter, the Console facility assumes format-0 when setting up the ORB.