- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: EDT Editor - Deletion of characters in a line
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-13-2005 01:57 AM
тАО07-13-2005 01:57 AM
Help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 02:19 AM
тАО07-13-2005 02:19 AM
Re: EDT Editor - Deletion of characters in a line
if you accept going to TPU, you can :
^L (for LEARN)
^R (for Remember)
(Prompt: Key to remember)
(your favarite Control-key)
repeat 1600 (or a few less)
(Prompt: Press key to repeat)
(your favorite control ley)
hth,
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 02:25 AM
тАО07-13-2005 02:25 AM
Re: EDT Editor - Deletion of characters in a line
(9(D+C)L).
Press the enter key on the keypad. You can also add the D+C by typing the keypad comma and the L by typing keypad zero. The 9 is the number of times you want what is in the parenthesis repeated. The D+C deletes the current character on the line. The L moves you to the beginning of the next line. The outer paranthesis are so you can use the repeat function on your defined key. The period at the end tells EDT to execute the statements immediately upon pressing the key. When you are comfortable that this will work, you can press the Gold key and type the number of times you want the sequence to repeat and then press your defined key. Hope this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 03:26 AM
тАО07-13-2005 03:26 AM
Re: EDT Editor - Deletion of characters in a line
edit/tpu file
hit the do key
type erase line
do that 9 times.
The other solutions are more elegant.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 03:27 AM
тАО07-13-2005 03:27 AM
Re: EDT Editor - Deletion of characters in a line
Are there not also page breaks and symbol tables to deal with? I would consider a little perl or gawk loop. If you attach a bit of a sample listing (with actual source obscured if you like) then I'm sure a reader can give you a one or two liner for this.
Cheers,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 05:41 AM
тАО07-13-2005 05:41 AM
Re: EDT Editor - Deletion of characters in a line
I would concur with Hein's concerns. Albeit my preference would probably be DCL or a TECO macro.
There is a great danger in generating garbage by presuming that if there is a line, it MUST contain at least the expected number of characters.
A little code upfront will save a lot of pain later.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 08:21 AM
тАО07-13-2005 08:21 AM
Re: EDT Editor - Deletion of characters in a line
Here is a simple perl commmand to solve your problem:
perl -ne "print $' if /\s+\d+\s/" x.lis > x.cob
-n = implied loop through input file
-e = perl script follows as text string
$' = everything to the right of the last match
\s+ = some whitespace (tab + spaces)
\d+ = some decimal numbers
\s = one more space
So this prints the remainder of those lines that start wih some spaces, a number and one more space.
This triggers on real source lines, but not on pagebreak data nor symbol table output and the likes.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 08:28 AM
тАО07-13-2005 08:28 AM
Re: EDT Editor - Deletion of characters in a line
EDT was made obselete by the introduction of TPU and EVE back in VMS V4 circa 1984. EDT has some serious limitations, and even a few outright bugs which will never be fixed. If you really can't teach yourself to use the EVE keypad (which is actually very simple... all the keys on a standard VT keypad do exactly what the label says!) then use EVE with the EDT kaypad.
Problems like this one are easily and intuitively solved using LEARN and REPEAT as described by Jan.
If we didn't have such a fanatical insistence on upwards compatibility, EDT would have long since been removed from the operating system Hey, we removed the dreaded SOS editor back in about V3, so I don't really see why we can't get rid of EDT more than 20 years after it was superceeded by MUCH better technology! If I had my way, the EDT image would issue a message:
"%DCL-I-JOIN_THE_21ST_CENTURY, use DEFINE EVE$KEYPAD EDT and EDIT/TPU or just learn to use EVE"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 08:39 AM
тАО07-13-2005 08:39 AM
Re: EDT Editor - Deletion of characters in a line
There is one situation where I think the TPU based editors fail. That's when you're logged in on a console where the VT support is not available or not properly configured to use it and you have to make changes to a startup procedure or control file.
Is there any way to use TPU/EVE in line mode in that scenario?
All I've ever been able to figure out in that situation is EDT.
Or is there a "standard" workaround for getting any console into a working VT setup after a minimum boot, or even a manual startup boot (set /startup=OPA0:)
Robert
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-13-2005 12:41 PM
тАО07-13-2005 12:41 PM
Re: EDT Editor - Deletion of characters in a line
in EDT, or if someone simply has a summary of simple commands,
so when a console isn't working you can fix
startup files.