- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Edit/TPU question
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
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
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-19-2005 05:17 AM
тАО07-19-2005 05:17 AM
Thanks,
Ian
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:35 AM
тАО07-19-2005 05:35 AM
Re: Edit/TPU question
$ edit/tpu file
this tells the number of lines as I have forgotten them since when I invoked the editor ;-)
-1, because the first line was changed by the LEARN sequence. Well that should do it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:51 AM
тАО07-19-2005 05:51 AM
Solution- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:55 AM
тАО07-19-2005 05:55 AM
Re: Edit/TPU question
as so often, what problem are you trying to solve?
Are you getting all your text without linebreaks and want to carrect that?
- how did you transfer the file from the Wintel box?
if FTP, try transfer with TYPE ASCI, and you are home.
If something else, please supply more info.
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:56 AM
тАО07-19-2005 05:56 AM
Re: Edit/TPU question
$ analyze/rms/fdl/output=c.fdl login.com
$ convert/fdl=c.fdl flat.file readable.file
I selected login.com because it should be just a standard ascii text file and the above does assume that you are in your default login directory and the file you are converting is in your default login directory. flat.file should be replaced with your filename and readable.file should be replaced with the resulting filename you desire.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 05:58 AM
тАО07-19-2005 05:58 AM
Re: Edit/TPU question
From your Forum Profile:
I have assigned points to 36 of 117 responses to my questions.
Maybe you can find some time to do some assigning?
Mind, I do NOT say you necessarily need to give lots of points. It is fully up to _YOU_ to decide how many. If you consider an answer is not deserving any points, you can also assign 0 ( = zero ) points, and then that answer will no longer be counted as unassigned.
Consider, that every poster took at least the trouble of posting for you!
To easily find your streams with unassigned points, click your own name somewhere.
This will bring up your profile.
Near the bottom of that page, under the caption ├в My Question(s)├в you will find ├в questions or topics with unassigned points ├в Clicking that will give all, and only, your questions that still have unassigned postings.
Thanks on behalf of your Forum colleagues.
PS. ├в nothing personal in this. I try to post it to everyone with this kind of assignment ratio in this forum. If you have received a posting like this before ├в please do not take offence ├в none is intended!
Proost.
Have one on me.
Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 06:16 AM
тАО07-19-2005 06:16 AM
Re: Edit/TPU question
Thanks for bringing to my attention on the points. I have always submit my points. However, I am not sure why I'm showing as ungrateful for not assigning points. Okay, I've just assigned those points. And no, I am not offended.
Regards,
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 06:48 AM
тАО07-19-2005 06:48 AM
Re: Edit/TPU question
Dale wrote: "$ analyze/rms/fdl/output=c.fdl login.com
$ convert/fdl=c.fdl flat.file readable.file"
Just fwiw... even simpler:
CONV/FDL=NL: bad good :-)
This works because the FDL defaults have all the right stuff, so no actual fdl need to be provided, but the converts needs to be done.
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 01:46 PM
тАО07-19-2005 01:46 PM
Re: Edit/TPU question
As you can see, I am a newbie to the OpenVMS world.
Thanks for your time.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 01:56 PM
тАО07-19-2005 01:56 PM
Re: Edit/TPU question
TPU has a wildcard support which can be asked to find the beginning of a line. You could add a CR at the beginning of each line like this (comments after "!"):
$ EDIT/TPU yourfile
See
Unfortunately there is no WILD REPLACE command. That would make this exercise much simpler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 02:59 PM
тАО07-19-2005 02:59 PM
Re: Edit/TPU question
$ @CR inputfile outputfile
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-19-2005 03:43 PM
тАО07-19-2005 03:43 PM
Re: Edit/TPU question
>> Do I just do CONV/FDL=NL: bad_file good_file???
Yes. The NL: is the device (+ missing file) where you tell teh system to look for the fdl file. It is the NULL device (like /dev/null in unix) and just returns nothing (it returns End Of File to e precise). The result is that the FDL code uses 'nothing' plus its build in defaults which are probably all you needed.
I suspect, but can not be entirely sure given the problem description, that the data in the file is just fine, but the attributes were wrong. Thus, you may also have been able to 'add a CR' by a command like:
SET FILE/ATTR=(RFM=STM,RAT=CR) bad_file
To understand that, check:
DIR/FULL (or ANAL/RMS) bad_file;
DIR/FULL goof_file
HELP SET FILE /ATTR
Also, how did the fle get there? Maybe all you needed was to transfer in FTP ASCI mode like Jan suggested.
Finally I doubt you really wanted to 'add a CR'. The CR character (ASCII(13)) is rarely used as a stand-alone character. I have only seen it used decades ago in the era of dot-matrix printers and those loud 'chain saw' line printers to achieve overprint and bold print.
What you probably meant was to add a new line break, or change to attribute to print a carriage return after each record seperator break.
If it is still a problem then you can help us help you with a reply attaching a text file with the output from the mentioned DIR/FULL and also a DUMP/BLOCK=COUNT=1 bad_file.
Welcome to VMS and RMS
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 12:48 AM
тАО07-20-2005 12:48 AM
Re: Edit/TPU question
Hein - You're correct on the statement. I need to add an Attribute "Carriage return Carriage control" to a RMS file. I did tried the online help but got lost in translation. How do I set the file attribute with a carriage return and carriage control?
Thanks for all your help!!
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 01:14 AM
тАО07-20-2005 01:14 AM
Re: Edit/TPU question
Thanks so much for your help on this.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 01:23 AM
тАО07-20-2005 01:23 AM
Re: Edit/TPU question
change in Uwe's procedure write statement as follow:
$LOOP:
$ read /end_of_file=DONE FI LINE
$ write FO LINE+CR
$ goto LOOP
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:20 AM
тАО07-20-2005 02:20 AM
Re: Edit/TPU question
Still not doing what I wanted to do. I think the position is off some how. Would you know what's $ CR[0,8]=13 in Uwe's com procedure? I think I need to modify that (??).
Thanks for your help.
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:23 AM
тАО07-20-2005 02:23 AM
Re: Edit/TPU question
That line is define the variable CR as ASCII 13 the value for a carriage return.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:32 AM
тАО07-20-2005 02:32 AM
Re: Edit/TPU question
$ CR[0,8]=13
"13" is the decimal value of the carriage return control character
"CR" is the name of the symbol, could have been "XYZ" or "ABC" as well.
"[0,8]" makes an assignment to bits 0..8.
The online help says:
>> symbol-name[bit-position,size] =[=] replacement-expression
This line just creates a symbol named "CR", length=1, containing the carriage return control character.
$ CR[0,8]=13
$ show symbol CH
CR = "."
$ write sys$output f$length(CR)
1
$
-----
Following your request, I would have changed the procedure the same way like Antonio.
For better debugging your problem I'd like to repeat Hein's request:
""If it is still a problem then you can help us help you with a reply attaching a text file with the output from the mentioned DIR/FULL and also a DUMP/BLOCK=COUNT=1 bad_file.""
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:33 AM
тАО07-20-2005 02:33 AM
Re: Edit/TPU question
Please help!
Thanks so much!!
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:37 AM
тАО07-20-2005 02:37 AM
Re: Edit/TPU question
$ write FO CR+LINE
to
$ write FO LINE+CR
This changes from adding the carriage return at the beginning of the line to adding it to the end of the line.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:39 AM
тАО07-20-2005 02:39 AM
Re: Edit/TPU question
have you been able to test Antonio's modification with a different test file?
You should also be able to do with via TPU:
I can't test it right now, but before you enter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 02:43 AM
тАО07-20-2005 02:43 AM
Re: Edit/TPU question
Is that something you know through application knowledge, or does VMS also know that. A good tool to find out would be DUMP/RECORD=COUNT=5 bad_file (the 5 is just a nice easy low number. Pick 3 or pick 99 if you like :-).
An other way to find out what VMS thinks about the file is to add a line with:
$WRITE SYS$OUTPUT F$LEN(LINE)
into that DCL procedure loop.
You are (understandibly) not (yet :-) speaking our secret language. By showing us some actual data through $DIRECTORY or $DUMP output we may be able to bridge the gap.
If the solution is in records re-blocking space, then be sure to also check out:
$HELP EXCHANGE /NET
Good luck,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 03:17 AM
тАО07-20-2005 03:17 AM
Re: Edit/TPU question
I'm not sure to get your real intention.
I guess you need to make some conversion so only for talking ...
CR and LF are usually to delimite text line.
Unix use only LF (called new line)
Msdos, Windows and VMS (uppercase are non random ;-O) use CR + LF.
If you want to add CR before LF you have some trouble:
1.You have some difficult to read righ line
2.You you can read line you have to remove LF than add CR + LF
Some tip:
a) you can also define LF variable
$ LF[0,8]=10
b) you can remove any character from string
$ MYLINE = MYLINE - LF
I'm trying to randomly get your intention.
Cheers.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 05:55 AM
тАО07-20-2005 05:55 AM
Re: Edit/TPU question
Thanks,
Ian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-20-2005 07:53 AM
тАО07-20-2005 07:53 AM
Re: Edit/TPU question
Please move over to VMS, go back and read Hein's posts and provide a DUMP and DIR/FULL listing. Also, provide the output file from the following command:
ANA/RMS/FDL/OUT=filename.FDL filename.ext
and I'll bet someone will provide an updated FDL that you can use to convert the file, or a set/file command you can use.
Until we know what the file really looks like in VMS, noone can help you.