When using z/OS I have to reply to messages, for example at startup and shutdown. After several months of this I was getting bored, and found z/OS has an auto reply capability.
In the SYS1.PARMLIB concatenation you can have AUTORxx members.
For example in SYS1.PARMLIB(AUTOR00) is
/* ARC0380A RECALL WAITING FOR VOLUME volser IN USE BY HOST procid, */ /* FUNCTION function. REPLY WAIT, CANCEL, OR MOUNT */ /* */ /* Rule: 1 */ /* */ Msgid(ARC0380A) Delay(60S) Reply(CANCEL)
So if you get message ARC0380A, after 60 seconds it will reply CANCEL. If you are quick you could reply with something else.
If you always reply with the same value you could specify DELAY(0S)… but this means you cannot reply to the message with a different value… DELAY(5S) may be better.
You can specify multiple values in the REPLY(a,b,c), and can use system symbolics such as &SYSNAME.
My parmlib member IEASYS00 includes AUTOR=(00,DT), so members AUTOR00 and AUTORDT are used.