Assigning an Alias

The file command can be used with to assign aliases to files.

In the following example, we will assign an alias to a file in SAPWR with a very long file name.

  1. Create a file in SAPWR with the following filename:

    • an_extremely_and_over_the_top_lengthy_script_filename.sjs
  2. Open the 'esession.sjs' file and enter the following code. Create the file if it does not already exist.

    file("an_extremely_lengthy_script_filename.sjs" , {“alias”:"longFile.sjs"});
  3. Save the file.

  4. You should now be able to access the file using the alias instead of the actual file name.