Unidata - To provide the data services, tools, and cyberinfrastructure leadership that advance Earth system science, enhance educational opportunities, and broaden participation. Unidata
         
  advanced  
 
Table of contents Previous: McBASI Interpreter Commands and Reserved Words LET Next: McBASI Interpreter Commands and Reserved Words PLOT Index

OPEN

Logically equates a unit number with the name of a text file for INPUT and OUTPUT.


Syntax

OPEN filename, unit, reclength


Parameters

filename

valid string expression, less than 13 characters

unit

valid numeric expression

reclength

valid numeric expression; only useful when

dealing with old-style or otherwise fixed length

text files; must be specified to randomly write

(PRINT) data into a file; otherwise, writing is

sequential; should be 80 when dealing with old-

style McIDAS text files, including those created

by specifying a DEV=F in McIDAS commands


Remarks

When an OPEN statement is executed, the record pointers for input and output are set to point to the first record of the file (record zero). If these options are omitted from the INPUT or PRINT statements, the next record is used.


Example

OPEN "YYEXPLE",10


Table of contents Previous: McBASI Interpreter Commands and Reserved Words LET Next: McBASI Interpreter Commands and Reserved Words PLOT Index
 
 
  Contact Us     Site Map     Search     Terms and Conditions     Privacy Policy     Participation Policy
 
National Science Foundation (NSF) UCAR Office of Programs University Corporation for Atmospheric Research (UCAR)   Unidata is a member of the UCAR Office of Programs, is managed by the University Corporation for Atmospheric Research, and is sponsored by the National Science Foundation.
P.O. Box 3000     Boulder, CO 80307-3000 USA     Tel: 303-497-8643     Fax: 303-497-8690