VMS Pseudo Device Logicals
Description
Occasionally when moving an OpenVMS system to an emulated environment there are cases where device names change (typically disk devices). The "right way" to set up logicals is to define a single logical for a device, especially when dealing with disks, to represents the device name and use it in all other logicals. This leaves just one logical to change when the device changes. However, everyone takes short cuts at some point and device names can become embedded in long forgotten command procedures, leaving definitions like so:
|
In these instances it can often be quicker and simpler to define a logical that represents the old device name.
Step-by-step guide
The following steps describe how to set up the logical.
- Firstly, identify the name of the old device. This will likely come from looking at output from the
SHOW LOGICAL
command (as in the examples above) or error messages reported by applications. Then, simply define the logical using the following template:
$ DEFINE/SYSTEM/EXECUTIVE_MODE ddcu _ddcu: -
/TRANSLATION_ATTRIBUTES=(CONCEALED,TERMINAL) -
/NAME_ATTRIBUTES=NO_ALIAS
To make this definition permanent, add it to the beginning of SYS$MANAGER:SYLOGICALS.COM.
Caveats
Something important to remember is that these are still only logicals. If a logical that refers to this "pseudo device logical" is defined with the TERMINAL
attribute, then this solution will not work as this attribute prevents the equivalence string from being translated iteratively. The following example demonstrates this.
|
The definition of WEB
would need to should be changed to remove the TERMINAL
attribute.
Links
Related articles
© Stromasys, 1999-2024 - All the information is provided on the best effort basis, and might be changed anytime without notice. Information provided does not mean Stromasys commitment to any features described.