Use this system macro to perform the following services:
- Define the code generation for interfacing with Common Link Access to
Workstation (CLAW) application programming interface processing in the control
program (CP).
- Generate a dummy control section (DSECT) to describe the code
generation.
Required Authorizations
|
Key0
| Restricted
| System
| Common Storage
|
| X
|
|
|
Format
- TYPE
- The CLAW service to be performed.
- ACCEPT
- Accepts a connection request
- BLOCK
- Starts a CLAW block function for GCLAC or RCLAC
- CLOSE
- Shuts down a logical link
- CONNECT
- Requests a CLAW connection to a remote workstation
- DISCONNECT
- Disconnects a connection to a remote workstation
- END
- Stops CLAW activity
- INIT
- Prepare for CLAW activity
- OPEN
- Initialize an adapter
- QUERY
- Get the status of an adapter or logical links
- SEND
- Send a message on an active logical link
- GEN
- Indicates the type of generation required.
- DATA
- Generates the code to link to the CLAW service routines.
- DSECT
- Generates a DSECT that defines the linkage code associated with the
generation type.
- REG=Rx
- Specifies a register for DSECT generation. This parameter is
required if you code GEN=DSECT.
Entry Requirements
None.
Return Conditions
The generated code returns to the calling routine using the linkage
information in R2. The contents of R2 are unknown.
Programming Considerations
- This macro can be run on any I-stream. However, CLAWCC is a
restricted use macro and is intended only for use by the CLAW library
functions.
- This macro cannot be implemented inline. To avoid reentry problems,
macro generation is moved to a stack area modified by the routine and branched
to by R2.
- If you code GEN=DSECT, you must also specify a register for the DSECT by
using REG=Rx.
Examples
- This call generates the code necessary to link to the CLAW ACCEPT service
routine.
CLAWCC TYPE=ACCEPT,GEN=DATA
- This call generates the DSECT used for the CLAW ACCEPT service routine
using register R1.
CLAWCC TYPE=ACCEPT,GEN=DSECT,REG=R1