- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Can a logical be defined within another logica...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:39 AM
09-13-2005 06:39 AM
define/process logical2 "'logical1':[data]"
dir 'logical2'
deassign logical1
deassign logical2
Why does this not work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:50 AM
09-13-2005 06:50 AM
Re: Can a logical be defined within another logical?
$ SYMBOL1 = "_DKB0"
$ SYMBOL2 = "''SYMBOL1':[DATA]"
$ directory 'SYMBOL2'
Directory _DKB0:[DATA]
A.TMP;1
Total of 1 file.
$
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:54 AM
09-13-2005 06:54 AM
Re: Can a logical be defined within another logical?
$ SYMBOL2 = _"_'_'_SYMBOL1_'_:[DATA]_"_
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 07:12 AM
09-13-2005 07:12 AM
Re: Can a logical be defined within another logical?
I think your first example is more what Kenneth was looking for.
copying the original example, it should actually look like this:
$ define/process logical1 "_DKA100:"
$ define/process logical2 "LOGICAL1:[data]"
$ dir logical2:
$ deassign logical1
$ deassign logical2
Cheers,
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 07:16 AM
09-13-2005 07:16 AM
Re: Can a logical be defined within another logical?
my output was a real session log, that's why I used a different disk name.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 09:44 AM
09-13-2005 09:44 AM
Re: Can a logical be defined within another logical?
You know you could have used this trick :-)
$ define _DKA100 /trans=conc sys$sysdevice:
$ define logical1 _dka100:
$ define logical2 logical1:[DATA]
$ dir logical2:
Directory _DKA100:[DATA]
JUNK.TMP;1
Total of 1 file.
$ deassign logical1
$ deassign logical2
$ deassign _DKA100
(actual commands on the system, except for the missing commands to create the directory and the file)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 10:56 AM
09-13-2005 10:56 AM
Re: Can a logical be defined within another logical?
Yes logical names can be nested multiple times. Translation will continue down to 10 nesting levels. For example, try:
$ DEFINE X X
$ SHOW LOGICAL X
There is a condition TOOMANYLNAM (see $ HELP/MESSAGE TOOMANYLNAM) which DCL used to issue for the above sequence, but in recent versions it's considered "success".
The limit of 10 is hardcoded - and "should be enough for anyone" :-)
As others have pointed out, your command is failing because you're confusing symbols and logical names. In this context, symbols need to be explicitly translated by enclosing them in quotes. Logical names will be automatically translated.
BTW, for future reference, describing something as "not working" isn't very helpful. Please post the exact command, exact error message, and what you're expecting instead of the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 06:37 PM
09-13-2005 06:37 PM
Re: Can a logical be defined within another logical?
Maybe this was what you search:
define/process logical1 "_dka100"
define/process logical2 "''f$trnlnm("logical1")':[data]"
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 07:51 PM
09-13-2005 07:51 PM
Re: Can a logical be defined within another logical?
logical2 'f$trnlnm("LOGICAL1")'[dir]
it has the disadvantage of the need to redefine logica2 when logical1 is changing.
The beauty of defining a logical containing other logicals is the fact that all containing logicals are translated at the time when it is used; so only the "root" logicals needs redefinition in case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 07:59 PM
09-13-2005 07:59 PM
Re: Can a logical be defined within another logical?
You are right. But sometimes this is not possible. With sometimes I mean rooted logical names which have the physical name restriction.
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 08:58 PM
09-13-2005 08:58 PM
Re: Can a logical be defined within another logical?
Yes, rooted logicals are a problem, but it is a misunderstanding to assume the root ALWAYS must be a physical device. Only if the TERMINAL attribute is needed for some reason.
Example: this definition of WWW works well:
$ sh log/full www
"WWW" [super] = "DISK$WWW:[WWW.]" [concealed] (LNM$SYSTEM_TABLE)
$ sh log/full disk$www
"DISK$WWW" [exec] = "AVMP01$DKB100:" [concealed,terminal] (LNM$SYSTEM_TABLE)
So I can mount the volume WWW on a different drive without redefining the concealed logical WWW.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 09:03 PM
09-13-2005 09:03 PM
Re: Can a logical be defined within another logical?
It works but it is unsupported! Please see this thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=859052
Bojan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 09:11 PM
09-13-2005 09:11 PM
Re: Can a logical be defined within another logical?
q
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2005 09:59 PM
09-13-2005 09:59 PM
Re: Can a logical be defined within another logical?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2005 10:38 PM
09-16-2005 10:38 PM
Re: Can a logical be defined within another logical?
from your Forum Profile:
I have assigned points to 15 of 35 responses to my questions.
Maybe you can find some time to do some assigning?
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption â My Question(s)â you will find â questions or topics with unassigned points â Clicking that will give all, and only, your questions that still have unassigned postings.
Thanks on behalf of your Forum colleagues.
PS. â nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before â please do not take offence â none is intended!
Proost.
Have one on me.
Jan