IFS Object Locks Identifying locks or references on IFS Objects become essential at times. This can be done by calling API QP0LROR (Retrieve Object References). The same information can be retrieved from SQL by using table function IFS_OBJECT_LOCK_INFO. This function accepts two parameters (Path name and Ignore errors). Path Name (PATH_NAME) - Path name for which the locks or references are to be retrieved. This could be a directory or stream file. This is a mandatory parameters. Ignore Errors (IGNORE_ERRORS) - YES or NO to be passed to determine what needs to be done when an error is encountered. This is an optional parameter and YES would be considered if no value passed. YES (Default) - A warning is returned and no row would be returned incase of an error. NO - An error is returned. This function can be called to check the locks on a directory Or, by passing a stream file. Optionally we can pass Ignore errors 'NO' if the error is...
Code with PR - Technical tips on coding and more...