The following optional keywords are shared by OPSDYNAM host commands:
Defines the type of response desired from the request. Possible values are:
Default: REXX
Defines the number of seconds to wait before issuing the OPSDYNAM request. The maximum time for delay is 300 seconds.
Default: 0.
Indicates whether dynamic allocation failure messages (DAIRFAIL) are to be generated. These messages indicate the reason for the failure. Possible values are:
Example: Common Keywords
The following shows the common ADDRESS OPSDYNAM keywords:
address OPSDYNAM
/*Allocate an existing data set */
“Allocate DD(oldrule) DSN('sys1.old.rules') Shr Reuse"
if RC > 0 then signal DYNERROR
/* Display information about the allocation */
“Info DD(oldrule)"
if RC > 0 then signal DYNERROR
say "DDname" opsdd "allocated to "opsdsn "is dsorg" opsdsorg
/* Allocate a new rules pds data set */
“Allocate DD(newrule) DSN('sys1.new.rules') New Catlg" ,
“Like('opsdev.o.rules') Recfm(FB) Block(3120) Space(100,100,40)"
if RC > 0 then signal DYNERROR
say “New rule data set allocated on" opsvol
/* Temporarily concatenate the data sets to the oldrule DD name */
“Concat DD(oldrule newrule)"
if RC > 0 then signal DYNERROR
/* Remove the concatenation and restore the original DD names */
“Deconcat DD(oldrule)"
if RC > 0 then signal DYNERROR
/* Free and unallocate the files */
“Free DD(oldrule,newrule)"
if RC > 0 then signal DYNERROR
return 0
DYNERROR:
say SOURCELINE(sigl-1)
say “OPSDYNAM error RC="rc “Error code="opsercd “Info code="opsifcd ,
“SMS reason code=”opsmscd
do while QUEUED() > 0
pull errmsg
say errmsg
end
return RC
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|