2.7.58 impSAS


Menu Information

Data: Import from File: SAS (SAS7BDAT, SD2)


If you do not see this file type, choose Data: Import from File: Add/Remove File Types...

File Import Add Menu.png

To add drag & drop support for a file type, see Import Filter Manager.

This X-Function supports file re-import. See this topic for details.

Brief Information

This tool is used to import SAS data files.

Command Line Usage

1. impSAS fname:="c:\test.sas7bdat";

2. #impSAS fname:="c:\test.sas7bdat" options.FirstMode:=3;

X-Function Execution Options

Please refer to the page for additional option switches when accessing the x-function from script

Variables

Display
Name
Variable
Name
I/O
and
Type
Default
Value
Description
File Name fname

Input

string

fname$
Filename of the file to be imported.
File Info trfiles

Input

TreeNode

<unassigned>
This is used in the dialog for displaying the basic information of the file.
Import Options options

Input

TreeNode

<unassigned>
This is used to tweak the import options in the dialog. Please see the Description part of this document for details.
Output orng

Output

Range

<active>
This is used to specify the output range.

See the syntax here.

Header Info trheader

Output

TreeNode

<optional>
This is for outputting the header information. It is hidden from the GUI. Users are not advised to use this variable.
Repeat Import reimp

Input

int

0
Specifies whether or not reimport is allowed.

Description

This tool is used to import general numeric and text content as well as date/time-type data contained in sas7bdat data files.

  • Import Options(options)
Please see this page for more details.

Related X-Functions

impFile, impinfo