The SHDCALL macro passes a command to the CA 7 batch scheduler and returns the response.
Note: If you want to use this macro, you must first complete and action the SCHEDAPI Customizer parameter group (shortcut /PARMS).
Parameters: SHDCALL Macro
Specifies the scheduler product to which the commands are passed.
Specifies the subsystem ID of the scheduler product to which the commands are passed. The default is the value entered in the SCHEDAPI Customizer parameter group.
Specifies one or more commands passed to the scheduler product. Use a semicolon (;) as a command separator.
Specifies the maximum time, in seconds, that the region waits for a response from the scheduler product. The time is reset each time a response is received. The macro waits until a message is received, or until the time expires without receiving any response.
Limits: A number from 1 through 999.
Default: 30.
Returned Variables: SHDCALL Macro
The number of response text lines.
Every line in the response.
The error message if the return code is not zero.
The return code
To run the macro interface, the STEPLIB statement in the CA 7 started task JCL must be concatenated in the CA NetMaster started tasks JCL. Following is an example:
//STEPLIB DD DSN=dsnpref.pvpref.MS.CC2DLOAD, // DD DISP=SHR,DSN=CD.Vnnnn.LINKLIB // DD DISP=SHR,DSN=dsnpref.CA7Vnn.CAILIB // DD DSN=SYS1.SISTCLIB,DISP=SHR
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |