- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: KSH to DCL command question - easy.
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
03-02-2006 01:51 AM
03-02-2006 01:51 AM
KSH to DCL command question - easy.
What is the VMS equivalent of *NIX's awk and sed commands?
Also, is there a good, recommended, resource for DCL programming on the internet that someone could point me to?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 02:01 AM
03-02-2006 02:01 AM
Re: KSH to DCL command question - easy.
equivlient of sed - SUMSLP I guess
http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_SUMSLP_UTIL.pdf
Lots of dcl examples can be found at
http://dcl.openvms.org
See dcl entries on
http://www.openvms.org/pages.php?page=Resources
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 02:17 AM
03-02-2006 02:17 AM
Re: KSH to DCL command question - easy.
need to do (and how much infrastructure you
can't demand), it's possible to read and
re-write an altered file using DCL OPEN,
CLOSE, READ, and WRITE. Text editor scripts
are also used by people who can figure those
out.
Resource? I just type randomly until it
works. (Testing takes a long time, though.)
Stealing code from existing procedures is
also popular, but finding good ones is a
challenge.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 03:26 AM
03-02-2006 03:26 AM
Re: KSH to DCL command question - easy.
Saludos.
Daniel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 04:26 AM
03-02-2006 04:26 AM
Re: KSH to DCL command question - easy.
e.g.).
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 07:23 AM
03-02-2006 07:23 AM
Re: KSH to DCL command question - easy.
>A good option equivalent of sed is to
>use EDIT/EDT/COMMAND DCL command.
Sorry Daniel, not a criticism of you... Could everyone PLEASE forget EDT exists?
EDT was made obselete more than 20 years ago by TPU and EVE. You can write EVE scripts or incredibly complex and powerful programs in TPU to do any kind of text processing anyone can dream up. EVE is a MUCH better, more reliable, more scalable and easier to drive editor than EDT.
If you really can't retrain your fingers from EDT commands, use EDT keypad mode. Yes OpenVMS will keep EDT around forever for compatibility, but that doesn't mean anyone actually has to USE it. EDT has enough quirks, unreasonable limitations, nasty surprises and outright bugs (none of which will ever be fixed) to make STRONG recommendations against using it.
Back to the original question... TPU can certainly do anything awk or sed can do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 07:01 PM
03-02-2006 07:01 PM
Re: KSH to DCL command question - easy.
I guess you could get all the functionality of awk and sed out of perl without too much hassle (as awk and sed were two of the "ancestors" of it).
You can get VMS Alpha and I64 kits from http://h71000.www7.hp.com/openvms/products/ips/apache/csws_perl_relnotes.html
HTH,
Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2006 07:43 PM
03-02-2006 07:43 PM
Re: KSH to DCL command question - easy.
Allan, see TPU manual
http://h71000.www7.hp.com/doc/73final/6020/6020pro.html
or in pdf
http://h71000.www7.hp.com/doc/73final/documentation/pdf/OVMS_73_DEC_TPU_REF.PDF
You can do what you what in TPU but if you are coming from a unix background you may find perl easier.
from the TPU manual
"DECTPU is a high-performance, programmable, text processing utility that includes the following:
* A high-level procedural language
* A compiler
* An interpreter
* Text manipulation routines
* Integrated display managers for the character-cell terminal and DECwindows environments
* The Extensible Versatile Editor (EVE) interface, which is written in DECTPU
DECTPU is a procedural programming language that enables text processing tasks; it is not an application.
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 02:04 AM
03-03-2006 02:04 AM
Re: KSH to DCL command question - easy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 02:17 AM
03-03-2006 02:17 AM
Re: KSH to DCL command question - easy.
a list of constraints and some sample "awk"
and "sed" commands. For example, sometimes
these programs are used to extract a field
from the output of some program or other,
where on VMS, a lexical function would
typically be used.
Whether this is actually "easy" depends on
many things. (Everything's complicated.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 09:17 AM
03-03-2006 09:17 AM
Re: KSH to DCL command question - easy.
While it has been a few years since I worked with them on VMS, each was (and presumably still is) a single .EXE file.
And now that I write this, if you have TCP/IP Services for VMS installed, look for SYS$COMMON:[SYSHLP.EXAMPLES.TCPIP...]*AWK*.EXE*. If you find it, define the symbol awk to point to it.
Note: While I am an HPE Employee, all of my comments (whether noted or not), are my own and are not any official representation of the company
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 09:46 AM
03-03-2006 09:46 AM
Re: KSH to DCL command question - easy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2006 08:37 PM
03-03-2006 08:37 PM
Re: KSH to DCL command question - easy.
http://www.process.com/openvms/index.html
I never use it so I don't know its fittness.
There is also port a Gnu-AWK.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2006 08:16 PM
03-05-2006 08:16 PM
Re: KSH to DCL command question - easy.
And as all other basic U*x utilities, awk and sed are in the GNV distribution.