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
05-15-2006 03:50 PM
05-15-2006 03:50 PM
I know I have to use a:
define/system remote$chk11-100 remotechk11
I have attached the actual request from one of our users.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 04:32 PM
05-15-2006 04:32 PM
SolutionSince the values are already in Excel, I'd suggest you use Excel to generate your commands, then save the file as tab delimited text. For example, working from your spread sheet:
1) Create a new worksheet
2) select the cells remote$chk11-100 to remote$chk11-980 and COPY
3) PASTE to B1 in the new, empty sheet
4) COPY & PASTE or just type remote$chk11 into C1 in the new sheet
5) replicate the cell to the same length as the column B data (select the cell and drag the little square)
6) type "$ DEFINE/SYSTEM" into column A and replicate it to the end of column B
Now repeat those steps for each of the other columns.
You might be able to speed things up by creating an Excel macro to chop out the logical name lists (rows 4 through 28 of your spreadsheet)
Save the file as TAB delimited text, and transfer to OpenVMS for execution. TAB is a perfectly valid delimiter in DCL.
That said, I'd recommend against putting all those logical names in the SYSTEM table. Maybe you should place them in a shareable table of their own and place it in LNM$FILE_DEV *after* the system table. That way you won't impact normal logical name translations (at least successful ones).
Another possibility is to write a DCL loop listing your 100, 150, 170... sequence with a loop variable from 14 through to 30
$ v=14
$ loop:
$ DEFINE/SYSTEM remote$chk'v'-100 remote$chk'v'
$ DEFINE/SYSTEM remote$chk'v'-150 remote$chk'v'
$ DEFINE/SYSTEM remote$chk'v'-170 remote$chk'v'
...
$ DEFINE/SYSTEM remote$chk'v'-980 remote$chk'v'
$ v=v+1
$ IF v.LT.30 THEN GOTO loop
(there doesn't seem to be any simple pattern to the tag values, otherwise it would just be a nested loop)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2006 06:17 PM
05-15-2006 06:17 PM
Re: SCRIPT
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2006 08:28 PM
05-16-2006 08:28 PM
Re: SCRIPT
So, copy/paste the info into a vms file and then use vms edit. Something like:
edit file.com
learn
adjust the line to your needs
ctrl+R
...then just press f9 200 times or
repeat
no of times: 200
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 03:43 AM
05-19-2006 03:43 AM
Re: SCRIPT
I attach the sample spreadsheet. Once you completed it, you can just do the following:
1. do EDIT a new file ie. $ edit logic.com
2. Copy and paste the data from excel sheet which you did using "concatenate".
3. Save the logic.com
4. Execute it. $@logic.com
regards,
ronald
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2006 11:58 AM
05-19-2006 11:58 AM
Re: SCRIPT
I have taken a look at your attached spreadsheet, and I would suggest taking a step backward here.
First, to do a brute force definition of the logical names mentioned, I would export the Excel file into either a tab-delimited or comma delimited (CSV) form, then export that text file to the OpenVMS system. I would then process the file as a data file (OPEN/READ; READ; ...) parse the lines and work that way. I would not recommend transforming it using the editor since this type of request tends to change over time.
What I do question is why these names need to be available globally. Your posting is somewhat thin as to how these names are to be used. For example, if the names are to be used as printers by different groups, then a different structure is very much more appropriate.
More information would help you get a more effective approach.
- Bob Gezelter, http://www.rlgsc.com