- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- String to Symbol on DCL
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
Discussions
Discussions
Forums
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
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
тАО07-26-2006 09:29 PM
тАО07-26-2006 09:29 PM
I need to write a DCl script which takes the output of SHOW DEV D and saves it in a file. this is easy show dev d /output=show.
Now my problem is how to extract value from the output of the command.
Device Device Error Volume Free Trans Mnt
Name Status Count Label Blocks Count Cnt
DSA1: Mounted 0 SMSC_DATA1 68411499 208 1
i am interested in extracting the value of free memory which in this case is 68411499, assign it to a symbol and compare it with a particular value.
i know how to do it in unix using awk but i am not really familiar with OpenVMS.
i would be grateful if anyone could give any suggestion about this matter.
Thanks in advance. All the best..
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 09:49 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 09:51 PM
тАО07-26-2006 09:51 PM
Re: String to Symbol on DCL
I just recognized, that you are new in this forum and would like to welcome you
Regards
Heinz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 09:58 PM
тАО07-26-2006 09:58 PM
Re: String to Symbol on DCL
Welcome to the OpenVMS forum on ITRC.
Actually, while you can parse the output of the SHOW DEVICE command, there is a far better way to do things in OpenVMS DCL.
DCL has a series of callable functions, known as lexical functions, that give full access to essentially all of the information available using the SHO DEVICE command. In 1995, I presented a session at the US Fall DECUS symposium entitled
"DCL Lexical Functions: OpenVMS Jujitsu" (copies of slides available via http://www.rlgsc.com/decus/usf95/index.html ) on just such usage.
As a matter of preference, getting information using lexical functions (and system service calls within executable programs) is far preferable to parsing output of commands, which may be enhanced in the future.
I hope that the above is helpful, and once again, welcome to the OpenVMS world and the OpenVMS Forum on ITRC.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-26-2006 10:40 PM
тАО07-26-2006 10:40 PM
Re: String to Symbol on DCL
I will read about the lexical functions.
Cheers..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-27-2006 05:30 AM
тАО07-27-2006 05:30 AM
Re: String to Symbol on DCL
since you are obiously new to VMS (Welcome!) there is ONE command that you really should know, and use a lot:
HELP
It is self-explaining.
I hardly qualify as new (20+ years of VMS), but it still is probably my most-used command.
Maybe just play a little with it, and see what at will tell you. More than worth your time!
Proost. (you wrote Cheers, What is the Albanese for it?)
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-30-2006 05:40 AM
тАО07-30-2006 05:40 AM
Re: String to Symbol on DCL
There is no need to extract the info from a text display.
Regards,
Tom
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 08:04 PM
тАО08-01-2006 08:04 PM
Re: String to Symbol on DCL
I did it.
Thanks Jan.
The albanian word for Proost is G├Г┬лzuar .
Have two on me..
Take care. All the best.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 08:07 PM
тАО08-01-2006 08:07 PM
Re: String to Symbol on DCL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-01-2006 08:09 PM
тАО08-01-2006 08:09 PM