Next: , Previous: GET, Up: System and Portable Files



7.4 IMPORT

     IMPORT
             /FILE='filename'
             /TYPE={COMM,TAPE}
             /DROP=var_list
             /KEEP=var_list
             /RENAME=(src_names=target_names)...

The IMPORT transformation clears the active file dictionary and data and replaces them with a dictionary and data from a portable file on disk.

The FILE subcommand, which is the only required subcommand, specifies the portable file to be read as a file name string or a file handle (see FILE HANDLE).

The TYPE subcommand is currently not used.

DROP, KEEP, and RENAME follow the syntax used by GET (see GET).

IMPORT does not cause the data to be read, only the dictionary. The data is read later, when a procedure is executed.