# \[LCL\] Access to User's Local Machine

> Source: https://manual.pvxplus.com/command-tags/lcl

## Description

The **\[LCL\]** tag can be included in a number of system directives to route the command to the user's local machine irrespective as to whether the user is using the system via WindX or directly executing the application. Its purpose is to allow the application designer to create code that will be portable. It will route requests to the end user local workstation without the application having to know how the user is connected.

When the **\[LCL\]** tag is used on the system, if the user is running the application directly, then the tag is ignored and dropped. If the application is being run via WindX or JavX, the **\[LCL\]** tag is automatically replaced with a **\[WDX\]** tag. See [\[WDX\] Direct Action to Client Machine](https://manual.pvxplus.com/command-tags/wdx).

The commands/directives that support the **\[LCL\]** command tag are:

|  |  |  |
| --- | --- | --- |
|  | CALL "**\[LCL\]**..." , ... | KEYED "**\[LCL\]**..." |
|  | DEF OBJECT id, "**\[LCL\]** ..." | NEW ( "**\[LCL\]**..." ) |
|  | DIRECT "**\[LCL\]**..." | OPEN (..) "**\[LCL\]**...." |
|  | DIRECTORY "**\[LCL\]**..." | PROGRAM "**\[LCL\]**..." |
|  | ERASE "**\[LCL\]**..." | REFILE "**\[LCL\]**..." |
|  | EXECUTE "**\[LCL\]**..." | SERIAL "**\[LCL\]**..." |
|  | INDEXED "**\[LCL\]**…" | SORT "**\[LCL\]**..." |
|  | INVOKE "**\[LCL\]**..." |  |

The use of the **\[LCL\]** tag is also supported in *Format 2* of the **[PTH( )](https://manual.pvxplus.com/functions/pth)** function.

*(Support for the \[LCL\] tag was added in PxPlus v6.30.)*

## Example

The following logic will open the file "C:\\data\\spread.csv" on the local workstation currently being used by the user:

```
open (hfn)"[LCL]C:\data\spead.csv"
```

Note:  
WindX will support all the directives and functions that are used against a file channel that was previously opened with a [\[WDX\]](https://manual.pvxplus.com/command-tags/wdx) or \[LCL\] tag.

## See Also

**[CALL Transfer to Subprogram](https://manual.pvxplus.com/directives/call)**  
**[DEF OBJECT Define Windows Object](https://manual.pvxplus.com/directives/def-object)**  
**[DIRECT Create File with Keyed Access](https://manual.pvxplus.com/directives/direct)**  
**[DIRECTORY Create Subdirectory](https://manual.pvxplus.com/directives/directory)**  
**[ERASE Delete File/Directory from System](https://manual.pvxplus.com/directives/erase)**  
**[EXECUTE Execute Basic Instruction](https://manual.pvxplus.com/directives/execute)**  
**[INDEXED Create Indexed File](https://manual.pvxplus.com/directives/indexed)**  
**[INVOKE Execute Operating System Command](https://manual.pvxplus.com/directives/invoke)**  
**[KEYED Create Single/Multi-Keyed File](https://manual.pvxplus.com/directives/keyed)**  
**[NEW( ) Create New Object](https://manual.pvxplus.com/functions/new)**  
**[OPEN Open a File for Processing](https://manual.pvxplus.com/directives/open)**  
**[PROGRAM Create or Assign Program File](https://manual.pvxplus.com/directives/program)**  
**[REFILE Clear Record from File](https://manual.pvxplus.com/directives/refile)**  
**[SERIAL Create a Sequential File](https://manual.pvxplus.com/directives/serial)**  
**[SORT Create File for Sorting](https://manual.pvxplus.com/directives/sort)**
