A break message needs to be sent to all workstations with a current lock on a specific display file. The message-sending CL program needs to identify those workstations and then send the break message to each of them. WRKOBJLCK regretably does not generate an output file, nor could I find an appropriate API for doing this. I could use WRKOBJLCK to generate a spool file, then use CPYSPLF to copy the spool file to a physical file and then parse the physical file. Alternatively, I could make an application change wherein invoking the display file would cause a record, including the workstation id, to be written to a physical file and exiting the display file would cause this record to be deleted. However, I'm wondering whether anything more straightforward exists. Would welcome any suggestions.
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!