If I have my file as an update i.e.
When I read or chain to a record in the file. Is there a way I can tell if it is in use by another process that is updating the record?
Thanks,
DAC
Has anyone ever used the %Status command:
Use %Status built in Function or File Information Data Structure to check record lock.
Where EMP is Physical File name.
I tried this method:
If another process has a lock on the IIML02 file. The status should be 1216?
DAC
Code:
fIIML01 Uf e k disk
Thanks,
DAC
Has anyone ever used the %Status command:
Use %Status built in Function or File Information Data Structure to check record lock.
Code:
If %Status(EMP) = 1217 Errmsd = Record Lock EndIf
I tried this method:
Code:
fIIML02 Uf e k disk F INFDS(FIDS01) D FIDS01 DS D STS01 *STATUS D REC01 397 400B 0
DAC
Comment