Using a String

The file command can be used with either strings or with regular expressions. in the following examples we will demonstrate the various usages.

In the following example, we will use a string.

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

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

    file("Z.GUIXT.SAPLSMTR_NAVIGATION.E0100.sjs", {"alias":"sessmgr"});
  3. Save the file.

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