SGIO Data Set Option: Windows

Activates the Scatter and Gather I/O feature for a data set.

Valid in: DATA steps and PROC steps

Syntax

SGIO=YES | NO

Required Arguments

YES

specifies that SAS activate the scatter-read / gather-write feature for a SAS data set. The scatter-read / gather-write feature remains active until your SAS session ends.

NO

specifies that SAS not activate the scatter-read/gather-write feature for the SAS data set.

Details

You can specify the SGIO data set option for any SAS I/O file that is referenced within your SAS code. If you want most of your SAS I/O to be processed with SGIO, then specify the SGIO system option and disable SGIO (SGIO=no). SGIO will not be active for those data sets.

Comparisons

The SGIO data set option specifies that SAS process the data set by using SGIO. The SGIO system option specifies that all SAS files are processed by using SGIO.

Examples

Example 1: SGIO Option

You can specify the SGIO data set option for any SAS I/O file that is referenced in a SAS job. This example is a simple case for the DATA step:
data mike(sgio=yes);
    input x y z;
    datalines;
1 2 3
run;

Example 2: SGIO Option

The following example is more complex:
data master(sgio=yes)
   merge daily1(sgio=yes) daily2(sgio=no) daily3(sgio=yes)
... more SAS statements ...
run;
Note: See the following information for more details: SGIO Usage