11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System and Other Functions8: regular10: symbolic link12: socketVMS bit maps:For VMS, this is the file protection. It consists of four 4-bit fields, accessed by the followinghexadecimal masks:000F: system privileges00F0: owner privileges0F00: group privilegesF000: world privilegesEach of these subfields can contain the following bit values:1: no read access2: no write access4: no execute access8: no delete accessExamplesThe following Windows example shows the values returned for a directory (“samples”) anda database file “CACHE.DAT”:ZNSPACE "%SYS"SET dir=$ZUTIL(168) ; determine <strong>Caché</strong> directorySET sampdir=dir_"samples"WRITE !,$ZUTIL(140,7,sampdir)WRITE !,$ZUTIL(140,7,sampdir_"\CACHE.DAT")The first $ZUTIL(140,7) returns 16 (Directory); the second $ZUTIL(140,7) returns 32(Archive).See Also• $ZUTIL(140) Return File Attributes function714 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!