LIME Procedure

CODE Statement

  • CODE FILE=filename | TABLE=libref.data-table;

The CODE statement names the DATA step code that describes the model or the DS2 code that is used along with an analytic store that you specify in the ASTOREMODEL statement. If you specify multiple ASTOREMODEL statements, you must also specify the CODE statement to name the DS2 code that is used along with the analytic stores. For more information about DS2 code and using DS2 code with analytic stores, see SAS DS2 Language Reference, SAS DS2 Programmer’s Guide, and Chapter 4, ASTORE Procedure.

You must specify one of the following options:

FILE=filename

names the external file that contains the DATA step code that describes the model or the DS2 code to be used along with an analytic store that you specify in the ASTOREMODEL statement. When you enclose the filename in a quoted string (for example, FILE="c:mydirscorecode.sas"), this option specifies the path and file name for reading the code from an external file. You can also specify an unquoted filename of no more than eight characters. If the filename is assigned as a fileref in a Base SAS FILENAME statement, the file that you specify in the FILENAME statement is used.

TABLE=libref.data-table

names the data table that contains the DATA step code that describes the model or the DS2 code to be used along with an analytic store that you specify in the ASTOREMODEL statement. libref.data-table is a two-level name, where libref refers to the library, and data-table specifies the name of the input data table. For more information about this two-level name, see the DATA= option and the section Using CAS Sessions and CAS Engine Librefs.

Last updated: August 06, 2026