Chapter Contents

Previous

Next
MOPEN

MOPEN



Opens a file by directory ID and by member name and returns either the file identifier or a 0

UNIX specifics: open-modes


Syntax
Details

Syntax

MOPEN(directory-id, member-name,<open-mode<,record-length,<record-format>>>)


Details

The open-mode can be
A Append mode allows writing new records after the current end of the file.
I Input mode, which is the default.
O Output mode defaults to the OPEN mode specified in the host option in the FILENAME statement or function. If no host option is specified, it allows writing new records at the beginning of the file.
S Sequential input mode, which is used for pipes and other sequential devices such as hardware ports.
U Update mode allows both reading and writing.
W Sequential update mode is used for pipes and other sequential devices such as ports.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.