Adding shortcuts in scripts

The input can be defined within the script as a shortcut by adding the following at the beginning of the script.

   #PHX_SHORTCUT(Data) 

The text entered between the parentheses is used as the variable’s name (e.g., Data).

Phoenix will parse the script and prepend the variable to the script, with the shortcut path being stored assigned as the value.

   Data <-”C:\\Path\\To\\File” 

In the script, use the variable assigned the path to read or manipulate the file.

Add a shortcut to a script

With the object inserted in the project, press the SAS Script in the Setup list.

Either type the script in the field or click icon_select_source and select the script from the Code folder.

Type the following as the first line in the script:

     *PHX_SHORTCUT(Data); 

Press Apply.

Select the new Data item in the list.

The Data panel shows the full path behind the shortcut.

     &let Data=”C:\\Path\\To\\File”;

The log file produced from executing the object contains the shortcut definition.



Legal Notice | Contact Certara
© Certara USA, Inc. All rights reserved.