11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

This system-wide default behavior can be configured using the $ZUTIL(69,2) function. Forfurther details, see $ZUTIL(69,2) — Default Open Mode for Sequential Files.ParametersnThe boolean value that specifies the default mode for sequential files on OPEN for the currentprocess. 0 means read-only (R) is the default. 1 means read and write (RW) is the default.ExampleThe following example sets the open mode default, then opens a sequential file:SET x=$ZUTIL(68,2)IF x=0 {SET y=$ZUTIL(68,2,1)WRITE !,"Set the open mode to:",$ZUTIL(68,2)}ELSE {WRITE !,"Open mode was already set to:",$ZUTIL(68,2)}OPEN "c:\myfiles\seqtest1":("NRW"):5; ...QUITSee Also• $ZUTIL(69,2) — Set Open Mode for Sequential Files System-wide function• OPEN command• Sequential File I/O in <strong>Caché</strong> I/O Device Guide$ZUTIL(68,3)$ZUTIL(68,3)Sets automatic sequential file creation option for the current process.$ZUTIL(68,3,n)$ZU(68,3,n)ParametersnThe boolean value that specifies whether a sequential file is automatically createdon OPEN.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 601

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

Saved successfully!

Ooh no, something went wrong!