Using Regular Expressions

The file command can be used with regular expressions.

In the following example, we will use a regular expression.

  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.GUIT.SAPLSMTR_NAVIGATION.E0100/, {"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.