View Full Version : Checking for restricted condition in a CL pgm
Guest.Visitor
05-14-2001, 07:08 AM
Sorry if this is a repeat - I'm told you have to be subscribed to a page before your posting shows up. Anyway.... I need a simple way to monitor for the system going into a restricted state within a CL program (homegrown automated backups). The only method I thought of was DSPLOG to a spooled file, CPYSPLF to a PF, scan the PF for SST 'restricted state', etc. I know this would work be there must be a better way... OS version is V4R3, btw.*
Guest.Visitor
05-14-2001, 08:38 AM
<DIV><FONT face=Arial size=2>Charles,</FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Can you use the EndSts parameter of the RtvJobA command? Here is the help text:</FONT></DIV> <DIV></DIV> <DIV><FONT face="Letter Gothic" size=2>Specifies, if checking for a controlled cancel operation, the name of the CL variable that receives the cancelation status. The single-character value indicates whether a controlled cancelation that affects the job is currently being performed. A value of 1 indicates that either the system, the subsystem in which the job is running, or the job itself is being canceled; a 0 indicates no controlled cancelation is being performed. The CL variable must be a character variable with a minimum length of 1 character. </FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Regarding registering to post: I believe the rule is that all posts from a "guest" is reviewedbefore posting.</FONT></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>Bill</FONT></DIV> <BLOCKQUOTE style="BORDER-LEFT: #000000 2px solid; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px; PADDING-RIGHT: 0px">I need a simple way to monitor for the system going into a restricted state within a CL program (homegrown automated backups). The only method I thought of was DSPLOG to a spooled file, CPYSPLF to a PF, scan the PF for SST 'restricted state', etc. I know this would work be there must be a better way... </BLOCKQUOTE>
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.