BNET Procedure

OUTPUT Statement

  • OUTPUT OUT=libref.data-table <options>;

The OUTPUT statement creates a data table to contain the predicted target values of the input table.

You must specify the following option:

OUT=libref.data-table

names the output data table for PROC BNET to use. You must specify this option before any other options. libref.data-table is a two-level name, where

libref

refers to a collection of information that is defined in the LIBNAME statement and includes the library, which includes a path to where the data table is to be stored, and a session identifier, which defaults to the active session but which can be explicitly defined in the LIBNAME statement. For more information about libref, see the section Using CAS Sessions and CAS Engine Librefs.

data-table

specifies the name of the output data table.

This table includes variables that are specified either in the COPYVARS= option or in the ID statement. If you specify PARTITION statement, the output includes one more column, _ROLE_. _ROLE_ is a reserved name. If it exist in the input data table and you specify it in the COPYVARS= option or in the ID statement, you need to use the ROLE= option to change the generated column’s name.

You can also specify the following options:

COPYVAR=variable
COPYVARS=(variables)

lists one or more variables from the input data table to be copied to the output data table.

ROLE=rolename

renames the generated column _ROLE_ in the output data table to the specified role.

Last updated: August 06, 2026