- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- DECwindows WSAn device reuse
Operating System - OpenVMS
1752798
Members
5528
Online
108789
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
08-02-2007 06:25 AM
08-02-2007 06:25 AM
Is there any advantage to reusing a WSAn device vs. creating a new one?
In other words, is there any advantage to
$ DEFINE/JOB DECW$DISPLAY _WSA1:
over
$ SET DISPLAY/CREATE/TRANSPORT=LOCAL
(Other than slightly fewer characters, of course)
In other words, is there any advantage to
$ DEFINE/JOB DECW$DISPLAY _WSA1:
over
$ SET DISPLAY/CREATE/TRANSPORT=LOCAL
(Other than slightly fewer characters, of course)
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2007 11:00 AM
08-02-2007 11:00 AM
Solution
Joe,
The biggest issue in "reusing" that I can think of is finding a spare WSA device that you can use (ownership, object security, currently in use etc...). More bother than it's worth!
(also note that DECW$DISPLAY is usually a process logical name - I'd be careful changing a job logical name, as it can potentially affect other processes)
Where reuse may be more of an issue is in changing display attributes. /CREATE is only required if a display doesn't already exist. If it exists, just change it, rather than creating a new one. So, something like this:
$ IF F$TRNLNM("DECW$DISPLAY").EQS."" THEN SET DISPLAY/CREATE
$ SET DISPLAY/TRANSPORT=LOCAL
Each time you SET DISPLAY/CREATE a new WSA device is created - the old one is effectively lost (not deleted, and no restoration of the logical name if the new device is deleted). Fortunately they will be deleted when the process terminates.
The few bytes of NPAGEDYN don't really matter for a small number of extra WSA devices, but a long lived process in a loop might eventually cause trouble.
Obviously creating a new device is more expensive than changing an existing one, but for the likely frequency of changes, the difference is well below the noise floor.
The biggest issue in "reusing" that I can think of is finding a spare WSA device that you can use (ownership, object security, currently in use etc...). More bother than it's worth!
(also note that DECW$DISPLAY is usually a process logical name - I'd be careful changing a job logical name, as it can potentially affect other processes)
Where reuse may be more of an issue is in changing display attributes. /CREATE is only required if a display doesn't already exist. If it exists, just change it, rather than creating a new one. So, something like this:
$ IF F$TRNLNM("DECW$DISPLAY").EQS."" THEN SET DISPLAY/CREATE
$ SET DISPLAY/TRANSPORT=LOCAL
Each time you SET DISPLAY/CREATE a new WSA device is created - the old one is effectively lost (not deleted, and no restoration of the logical name if the new device is deleted). Fortunately they will be deleted when the process terminates.
The few bytes of NPAGEDYN don't really matter for a small number of extra WSA devices, but a long lived process in a loop might eventually cause trouble.
Obviously creating a new device is more expensive than changing an existing one, but for the likely frequency of changes, the difference is well below the noise floor.
A crucible of informative mistakes
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP