Logical search lists

From VSI OpenVMS Wiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

A logical search list is a type of logical name that has several equivalence strings. When a logical search list is used in a command like DIRECTORY, the system searches in the locations specified by all equivalence strings; when it is used in a command like CREATE, the object is created at the first available location. In the following example, a logical search list SUB is defined for two directories, SUB and SUB1:

SMAN43$ define sub dsa1:[jdoe.sub],dsa1:[jdoe.sub1]
SMAN43$ dir sub

Directory DSA1:[JDOE.SUB]

ORIGINAL.LIS;1      SUB2.DIR;1

Total of 2 files.

Directory DSA1:[JDOE.SUB1]

A.COM;3             A.COM;2             A.COM;1             A.LIS;2

Total of 4 files.

Grand total of 2 directories, 6 files.

SMAN43$ create sub:b.lis
test Exit
SMAN43$ dir sub

Directory DSA1:[JDOE.SUB]

B.LIS;1             ORIGINAL.LIS;1      SUB2.DIR;1

Total of 3 files.

Directory DSA1:[JDOE.SUB1]

A.COM;3             A.COM;2             A.COM;1             A.LIS;2

Total of 4 files.

Grand total of 2 directories, 7 files.
 

Many default logicals like SYS$SYSTEM and SYS$MANAGER are logical search lists pointing to both the system-specific and the clusterwide version of that directory.