IBM Support

IBM Informix C-ISAM: How to open a file in exclusive mode

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"}}]

Document Information

Modified date:
26 January 2023

UID

swg21204321