Session Properties Action Set: Syntax

Provides actions for managing session properties

saveFmtLib Action

Saves a format library.

Save a Format Library to Disk

CASL Syntax

sessionProp.saveFmtLib <result=results> <status=rc> /
caslib="string",
required parameter fmtLibName="string",
name="table-name",
path="string",
promote=TRUE | FALSE,
replace=TRUE | FALSE
;
indicates a required parameter

Parameter Descriptions

caslib="string"

specifies the caslib in which the format library is saved.

RequirementYou must have Write access to the specified caslib.

* fmtLibName="string"

specifies the format library name.

name="table-name"

specifies the format library name in the caslib.

RequirementYou must specify parameter name.
NotesYou can specify the name with or without the .sashdat file extension.
Do not change the name of the format library file after you save it. If you change the filename, the format library that it contains cannot be loaded.

path="string"

specifies the path to where the format library is saved.

promote=TRUE | FALSE

Promotes a format library to global scope for all sessions

DefaultFALSE

replace=TRUE | FALSE

specifies to replace the format library if it already exists.

DefaultFALSE

saveFmtLib Action

Saves a format library.

Save a Format Library to Disk

Lua Syntax

results, info = s:sessionProp_saveFmtLib{
caslib="string",
required parameter fmtLibName="string",
name="table-name",
path="string",
promote=true | false,
replace=true | false
}
indicates a required parameter

Parameter Descriptions

caslib="string"

specifies the caslib in which the format library is saved.

RequirementYou must have Write access to the specified caslib.

* fmtLibName="string"

specifies the format library name.

name="table-name"

specifies the format library name in the caslib.

RequirementYou must specify parameter name.
NotesYou can specify the name with or without the .sashdat file extension.
Do not change the name of the format library file after you save it. If you change the filename, the format library that it contains cannot be loaded.

path="string"

specifies the path to where the format library is saved.

promote=true | false

Promotes a format library to global scope for all sessions

Defaultfalse

replace=true | false

specifies to replace the format library if it already exists.

Defaultfalse

saveFmtLib Action

Saves a format library.

Save a Format Library to Disk

Python Syntax

results= s.sessionProp.saveFmtLib(
caslib="string",
required parameter fmtLibName="string",
name="table-name",
path="string",
promote=True | False,
replace=True | False
)
indicates a required parameter

Parameter Descriptions

caslib="string"

specifies the caslib in which the format library is saved.

RequirementYou must have Write access to the specified caslib.

* fmtLibName="string"

specifies the format library name.

name="table-name"

specifies the format library name in the caslib.

RequirementYou must specify parameter name.
NotesYou can specify the name with or without the .sashdat file extension.
Do not change the name of the format library file after you save it. If you change the filename, the format library that it contains cannot be loaded.

path="string"

specifies the path to where the format library is saved.

promote=True | False

Promotes a format library to global scope for all sessions

DefaultFalse

replace=True | False

specifies to replace the format library if it already exists.

DefaultFalse

saveFmtLib Action

Saves a format library.

Save a Format Library to Disk

R Syntax

results <– cas.sessionProp.saveFmtLib(s,
caslib="string",
required parameter fmtLibName="string",
name="table-name",
path="string",
promote=TRUE | FALSE,
replace=TRUE | FALSE
)
indicates a required parameter

Parameter Descriptions

caslib="string"

specifies the caslib in which the format library is saved.

RequirementYou must have Write access to the specified caslib.

* fmtLibName="string"

specifies the format library name.

name="table-name"

specifies the format library name in the caslib.

RequirementYou must specify parameter name.
NotesYou can specify the name with or without the .sashdat file extension.
Do not change the name of the format library file after you save it. If you change the filename, the format library that it contains cannot be loaded.

path="string"

specifies the path to where the format library is saved.

promote=TRUE | FALSE

Promotes a format library to global scope for all sessions

DefaultFALSE

replace=TRUE | FALSE

specifies to replace the format library if it already exists.

DefaultFALSE
Last updated: August 11, 2021