Question & Answer
Question
IBM® Informix® C-ISAM™: How do you open a file in exclusive mode ?
Answer
Certain functions require that the file be open in exclusive mode so that only your program can access the file. You do this by specifying the exclusive lock option, ISEXCLLOCK, along with the access mode, as shown in this C code example:
- fd = isopen("employee",ISEXCLLOCK+ISINOUT);
[{"Product":{"code":"SSGKNY","label":"Informix C-ISAM"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Not Applicable","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF025","label":"Platform Independent"},{"code":"PF008","label":"DYNIX\/ptx"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"7.2","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]
Was this topic helpful?
Document Information
More support for:
Informix C-ISAM
Software version:
7.2
Operating system(s):
AIX, DYNIX/ptx, HP-UX, IRIX, Linux, Solaris, Windows
Document number:
339219
Modified date:
26 January 2023
UID
swg21204321