Running commands from scripts (input, run)

Synopsis

input filename

run filename

Description

Both input and run read and run CRE commands from a file.

input runs the commands in the current session; therefore any variable reassigments methods and blocks declared in the file will be available in the session after the script has completed.

In contrast, run executes the script in a subsession. While the subsession inherits settings from its parent session, any assignments made in the subsession do not persist when transfer of control is returned to the original session.