Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Include Page
KBCOMMON:KB-CSSstyle
KBCOMMON:KB-CSSstyle

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.

...

Info
titleCaveats

 

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.

$ SHOW LOGICAL/FULL DUA0
"DUA0" [exec,no_alias] = "_DKA0: "[concealed,terminal] (LNM$SYSTEM_TABLE)
$ SHOW LOGICAL/FULL WEB
"WEB" [exec] = "DUA0:[WEB.]" [concealed,terminal] (LNM$SYSTEM_TABLE)
$ DIRECTORY WEB:[000000]
%DIRECT-E-OPENIN, error opening WEB:[000000].;* as input
-RMS-F-DEV, error in device name or inappropriate device type for operation

The definition of WEB would need to should be changed to remove the TERMINAL attribute.

Filter by label (Content by label)
showLabelsfalse
max5
spacesKBP
showSpacefalse
sortmodified
reversetrue
typepage
labelsdevice logicals naming vms