Copyright (c) 2008, 2016 Allegro Consultants, Inc. Author: sieler@allegrosupport.com This program shows if a file has the "STORE bit" set, and optionally resets the bit. Note: if STORE has not opened the output tape yet, there is a chance that this program cannot reset the STORE bit. Commands: Exit or // Terminate HELP or ? Display this information SHOW filename Show STORE bit information about the file. (Note: if filename starts with / or ., then the keyword SHOW may be omitted.) SRRESET filename [COUNT | MAX] Turns off specified Store/Restore state (dangerous) ZERO filename NOTE: it may be dangerous to system integrity to turn off the STORE bit of a file! Normally, STORE increments a counter to indicate a file is in use by STORE. By default, SRBITOFF's "SRRESET" command decrements the counter by calling sr_reset_cnt. In some cases, yet to be determined, the counter seems to be set to 31 ... in that case, if you know a single process has the file marked 'in use', use the 'MAX' option on the SRRESET command. That option will cause it to call sr_reset instead of sr_reset_cnt. If things are crazy, and you realllllly need to get the STORE & RESTORE bits reset, use the "ZERO" option ... it just crams a zero into the LAT (Label Access Table) bits for the file. NOTE: turning off SR bits (LAT bits) behind STORE or RESTORE's back may result in strange messages from STORE/RESTORE like: FOO .SOURCE .SALES COULD NOT BE RELEASED FROM STORE EXCLUSIVE ACCESS (LAT) SRBITOFF 20161012