<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: reading/writing &amp;lt;CR&amp;gt;s and &amp;lt;FF&amp;gt;s in DCL. in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596877#M32510</link>
    <description>The above procedure will only work if there is no more that one of each of the characters in each line.&lt;BR /&gt;&lt;BR /&gt;I would write the procedure to use a subroutine to do the actual removing. Something like&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ cr[0,8]=13&lt;BR /&gt;$ lf[0,8]=10&lt;BR /&gt;$ ff[0,8]=12&lt;BR /&gt;$ open/err=nofile inp input_file.txt&lt;BR /&gt;$ copy nl: output_file.txt ! create an empty file with better attributes than open/write&lt;BR /&gt;$ open/app outp output_file.txt&lt;BR /&gt;$rl:&lt;BR /&gt;$ read/end=done inp line&lt;BR /&gt;$ test_line == line&lt;BR /&gt;$ call remove_chars "''cr'"&lt;BR /&gt;$ call remove_chars "''lf'"&lt;BR /&gt;$ call remove_chars "''ff'"&lt;BR /&gt;$ write/sym outp test_line&lt;BR /&gt;$ goto rl:&lt;BR /&gt;$done:&lt;BR /&gt;$ close inp&lt;BR /&gt;$ close outp&lt;BR /&gt;$ exit&lt;BR /&gt;$nofile:&lt;BR /&gt;$ write sys$Output "Input file does not exist"&lt;BR /&gt;$ exit&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$remove_chars: subroutine&lt;BR /&gt;$rmloop:&lt;BR /&gt;$ if f$loc(p1,test_line) .eq. f$len(test_line) then exit&lt;BR /&gt;$ test_line = test_line - p1&lt;BR /&gt;$ goto rmloop&lt;BR /&gt;$ exit&lt;BR /&gt;$endsubroutine&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;Note: this script is untested and not proofed for errors. I just wrote it.&lt;BR /&gt;&lt;BR /&gt;Ken</description>
    <pubDate>Fri, 05 Aug 2005 11:27:42 GMT</pubDate>
    <dc:creator>Ken Robinson</dc:creator>
    <dc:date>2005-08-05T11:27:42Z</dc:date>
    <item>
      <title>reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596864#M32497</link>
      <description>&lt;BR /&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I've got a (not very elegant) script that strips formfeeds from a text file and I also need to strip crlfs but can't figure out how to insert the cr in the dcl procedure.&lt;BR /&gt;&lt;BR /&gt;$ open/read infile file1.dat&lt;BR /&gt;$ open/write outfile file2.dat&lt;BR /&gt;$ read infile line&lt;BR /&gt;$ if line .ne. "ctrlL" (meaning a ff) then write outfile line&lt;BR /&gt;&lt;BR /&gt;Our application dumps files with trailing crlfs at the end of every file.  ctrl M doesn't insert the cr. I'm using edt but can try another as well.  I saw a reference using tpu and some function key sequences but am unfamiliar with tpu.&lt;BR /&gt;&lt;BR /&gt;We're sending these text files to a fax server and they're reciving lots of blank pages on the far end.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance,&lt;BR /&gt;Rusty&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 14:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596864#M32497</guid>
      <dc:creator>Russel Wilmes</dc:creator>
      <dc:date>2005-08-04T14:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596865#M32498</link>
      <description>also, this is on an alpha running vms 7.3-2.</description>
      <pubDate>Thu, 04 Aug 2005 14:53:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596865#M32498</guid>
      <dc:creator>Russel Wilmes</dc:creator>
      <dc:date>2005-08-04T14:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596866#M32499</link>
      <description>I would definitely consider something a little more powerful the EDT or DCL for attacking this problem (I'll be chastised for that comment, for sure). TPU is far more powerful, Perl (free) is worth considering, and there was a text manipulation language called Scan, which I think may have moved to the freeware archives. &lt;BR /&gt;&lt;BR /&gt;Of course, the most elegant way to do it,is probably in Teco, but those neurons are failing... &lt;BR /&gt;&lt;BR /&gt;It's also not clear what you are looking for. Do you a) want to turn multiple CRLF's into FF's, or b) delete extraneous FFs or c) delete final FF's. &lt;BR /&gt;&lt;BR /&gt;PeterQ</description>
      <pubDate>Thu, 04 Aug 2005 15:21:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596866#M32499</guid>
      <dc:creator>Peter Quodling</dc:creator>
      <dc:date>2005-08-04T15:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596867#M32500</link>
      <description>&lt;BR /&gt;I actually want to find them and strip them.  I can find the form feeds no problem, that's a control l into the dcl command procedure that does the reading and writing.  i just can't figure out how to get a CR in there.  some of the stuff I saw said a ctrl M but that just does a "delete to begnning of line" or somesuch.&lt;BR /&gt;&lt;BR /&gt;I'd love to use perl, however, time is short and my learning curve is steep!</description>
      <pubDate>Thu, 04 Aug 2005 15:46:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596867#M32500</guid>
      <dc:creator>Russel Wilmes</dc:creator>
      <dc:date>2005-08-04T15:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596868#M32501</link>
      <description>Or maybe this would be more clear.&lt;BR /&gt;&lt;BR /&gt;When using EDT to create a dcl command procedure...&lt;BR /&gt;&lt;BR /&gt;ctrl [[  = &lt;ESC&gt;&lt;BR /&gt;ctrl l   = &lt;FF&gt;&lt;BR /&gt;?        = &lt;CR&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps...&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;&lt;/CR&gt;&lt;/FF&gt;&lt;/ESC&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:25:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596868#M32501</guid>
      <dc:creator>Russel Wilmes</dc:creator>
      <dc:date>2005-08-04T16:25:49Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596869#M32502</link>
      <description>To insert any special character with EDT:&lt;BR /&gt;&lt;BR /&gt; PF1 decimal-value-of-charcter PF1 KP3&lt;BR /&gt;&lt;BR /&gt;so for a CR, &lt;BR /&gt;press the PF1 key (aka: the gold key)&lt;BR /&gt;type 13&lt;BR /&gt;press PF1&lt;BR /&gt;press the 3 on the keypad.&lt;BR /&gt;&lt;BR /&gt;However, this makes the DCL file look strange when you type it, so you might want to consider instead using a value assignment like:&lt;BR /&gt;&lt;BR /&gt;$ CR[0,8] = %X0D   !hex zero D = dec 13&lt;BR /&gt;&lt;BR /&gt;which places the hex value 0D into a symbol named CR.&lt;BR /&gt;&lt;BR /&gt;However, however (;-) there's probably a easier and better way to make the file more fax-friendly.&lt;BR /&gt;&lt;BR /&gt; Doug&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:27:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596869#M32502</guid>
      <dc:creator>Doug Phillips</dc:creator>
      <dc:date>2005-08-04T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596870#M32503</link>
      <description>$ CR[0,8] = 13   ! Carriage return&lt;BR /&gt;$ open/read infile file1.dat&lt;BR /&gt;$ open/write outfile file2.dat&lt;BR /&gt;$ read infile line&lt;BR /&gt;$ line = f$extract(0, f$locate(CR,line), line)&lt;BR /&gt;$ if line .ne. "ctrlL" (meaning a ff) then write outfile line&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I have just scribbled the above out and have not tested it, but it should truncate the line at the first carriage return in the line.  If there is no carriage return in the line, it should leave the line unchanged.&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596870#M32503</guid>
      <dc:creator>Dale A. Marcy</dc:creator>
      <dc:date>2005-08-04T16:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596871#M32504</link>
      <description>Rusty,&lt;BR /&gt;&lt;BR /&gt;in DCL, you define a symbol to be any ASCI char, by NUMERIC assign of 8 bits.&lt;BR /&gt;&lt;BR /&gt;eg the Escape char (ASCI 27), using ther recognisable symbolname esc:&lt;BR /&gt;&lt;BR /&gt;$ esc[0,8]=27&lt;BR /&gt;&lt;BR /&gt;means "assign  value 27 to 8 bits, starting from bit 0, of the symbol esc"&lt;BR /&gt;&lt;BR /&gt;$ bell[0,8]=7   : bell signal&lt;BR /&gt;&lt;BR /&gt;Synyax:&lt;BR /&gt;symbol name - (NO spaces!) - left square bracket - offset of first bit - comma - length in bits - right square bracket - equals sihn - &lt;NUMERIC value="" fitting="" in="" number="" of="" bits=""&gt;&lt;/NUMERIC&gt;&lt;BR /&gt;Now to insert it into a string, simply use string concatenation.&lt;BR /&gt;&lt;BR /&gt;$ String = symbol1 + "Litteral" + string2 + string3  (etc...)&lt;BR /&gt;or &lt;BR /&gt;$ Strng := "''symbol1'litteral''string2'''string3' ..."&lt;BR /&gt;(single and double quotes unclear in presentation. Copy / paste into plain-text window for clarity)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Left to do: find ASCI numeric value of desired char.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe&lt;BR /&gt;</description>
      <pubDate>Thu, 04 Aug 2005 16:30:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596871#M32504</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2005-08-04T16:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596872#M32505</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;Success!  Many thanks to all who replied.&lt;BR /&gt;&lt;BR /&gt;I took a roundabout way and am not looking for any carriage returns.&lt;BR /&gt;&lt;BR /&gt;Dales note about using f$locate helped imensely.  I'd forgotten about that.&lt;BR /&gt;&lt;BR /&gt;I wanted to strip &lt;FF&gt;s and &lt;CR&gt;&lt;FF&gt;s.  &lt;BR /&gt;&lt;BR /&gt;so rather than checking for either two strings just check for existence of &lt;FF&gt;&lt;BR /&gt;&lt;BR /&gt;open/read infile file1.dat&lt;BR /&gt;open/write outfile file2.dat&lt;BR /&gt;top:&lt;BR /&gt;read/end=cya infile line&lt;BR /&gt;a = f$locate("ctrll",line)&lt;BR /&gt;b = f$length(line)&lt;BR /&gt;if a .eq. b then write outfile line&lt;BR /&gt;goto top&lt;BR /&gt;cya:&lt;BR /&gt;close infile&lt;BR /&gt;close outfile&lt;BR /&gt;send file2.dat to fax server!  &lt;BR /&gt;&lt;BR /&gt;Still not elegant but it works.  At least until our apps folks change the report layout again...&lt;BR /&gt;&lt;BR /&gt;Thanks again!&lt;BR /&gt;&lt;BR /&gt;&lt;/FF&gt;&lt;/FF&gt;&lt;/CR&gt;&lt;/FF&gt;</description>
      <pubDate>Thu, 04 Aug 2005 18:40:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596872#M32505</guid>
      <dc:creator>Russel Wilmes</dc:creator>
      <dc:date>2005-08-04T18:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596873#M32506</link>
      <description>Hi, maybe not "elegant" but also a working procedure using the line editor of EDT removing all CRFFs:&lt;BR /&gt;$ edit/edt replace.com&lt;BR /&gt;then enter therein:&lt;BR /&gt;&lt;BR /&gt;$ edit/edt file1.dat&lt;BR /&gt;s/&lt;CR&gt;&lt;FF&gt;//%wh&lt;BR /&gt;s/&lt;FF&gt;//%wh&lt;BR /&gt;exit&lt;BR /&gt;$ exit&lt;BR /&gt;&lt;BR /&gt;where within edit/edt replace.com&lt;BR /&gt;&lt;CR&gt; is created with PF1-13-PF1-3&lt;BR /&gt;&lt;FF&gt;                 PF1-12-PF1-3&lt;BR /&gt;&lt;BR /&gt;and&lt;BR /&gt;&lt;LF&gt;                 PF1-10-PF1-3&lt;BR /&gt;if this should be replaced.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;EW&lt;BR /&gt;&lt;/LF&gt;&lt;/FF&gt;&lt;/CR&gt;&lt;/FF&gt;&lt;/FF&gt;&lt;/CR&gt;</description>
      <pubDate>Thu, 04 Aug 2005 18:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596873#M32506</guid>
      <dc:creator>Eberhard Wacker</dc:creator>
      <dc:date>2005-08-04T18:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596874#M32507</link>
      <description>I can never remember the syntax for bit insertion in DCL, so I use F$FAO("!^") to get a form feed and F$EXTRACT(0,1,F$FAO("!/")) to get a CR (first character of CRLF sequence).</description>
      <pubDate>Thu, 04 Aug 2005 20:30:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596874#M32507</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2005-08-04T20:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596875#M32508</link>
      <description>You could also websearch for a TPU routine (which I believe is attributable to Ken Fairfield) that strips not only &lt;CR&gt; and &lt;LF&gt;, but all control characters from a text file.&lt;BR /&gt;&lt;BR /&gt;It's especially useful if you have to take the results of a SET HOST/LOG file and turn it into plain text.&lt;BR /&gt;&lt;BR /&gt;If you can't find it, drop me an email first name period middle initial (all my initials are identical) period last name at gmail period com&lt;BR /&gt;and I'll send it to tomorrow.&lt;/LF&gt;&lt;/CR&gt;</description>
      <pubDate>Thu, 04 Aug 2005 20:51:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596875#M32508</guid>
      <dc:creator>William Webb_2</dc:creator>
      <dc:date>2005-08-04T20:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596876#M32509</link>
      <description>Hi Rusty,&lt;BR /&gt;If you want to remove all CR/LF/FF you can:&lt;BR /&gt;$ CR[0,8]=13&lt;BR /&gt;$ LF[0,8]=10&lt;BR /&gt;$ FF[0,8]=12&lt;BR /&gt;$ OPEN/REA SRC INFILE.DAT&lt;BR /&gt;$ OPEN/WRITE TGT OUTFILE.DAT&lt;BR /&gt;$MLOOP:&lt;BR /&gt;$ READ SRC LINE/END=XIT&lt;BR /&gt;$ LINE = LINE - CR - LF - FF&lt;BR /&gt;$ WRITE TGT LINE&lt;BR /&gt;$ GOTO MLOOP&lt;BR /&gt;$XIT:&lt;BR /&gt;$ CLOSE TGT&lt;BR /&gt;$ CLOSE SRC&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Aug 2005 03:26:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596876#M32509</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2005-08-05T03:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596877#M32510</link>
      <description>The above procedure will only work if there is no more that one of each of the characters in each line.&lt;BR /&gt;&lt;BR /&gt;I would write the procedure to use a subroutine to do the actual removing. Something like&lt;BR /&gt;&lt;BR /&gt;$ set noon&lt;BR /&gt;$ cr[0,8]=13&lt;BR /&gt;$ lf[0,8]=10&lt;BR /&gt;$ ff[0,8]=12&lt;BR /&gt;$ open/err=nofile inp input_file.txt&lt;BR /&gt;$ copy nl: output_file.txt ! create an empty file with better attributes than open/write&lt;BR /&gt;$ open/app outp output_file.txt&lt;BR /&gt;$rl:&lt;BR /&gt;$ read/end=done inp line&lt;BR /&gt;$ test_line == line&lt;BR /&gt;$ call remove_chars "''cr'"&lt;BR /&gt;$ call remove_chars "''lf'"&lt;BR /&gt;$ call remove_chars "''ff'"&lt;BR /&gt;$ write/sym outp test_line&lt;BR /&gt;$ goto rl:&lt;BR /&gt;$done:&lt;BR /&gt;$ close inp&lt;BR /&gt;$ close outp&lt;BR /&gt;$ exit&lt;BR /&gt;$nofile:&lt;BR /&gt;$ write sys$Output "Input file does not exist"&lt;BR /&gt;$ exit&lt;BR /&gt;$!&lt;BR /&gt;$!&lt;BR /&gt;$remove_chars: subroutine&lt;BR /&gt;$rmloop:&lt;BR /&gt;$ if f$loc(p1,test_line) .eq. f$len(test_line) then exit&lt;BR /&gt;$ test_line = test_line - p1&lt;BR /&gt;$ goto rmloop&lt;BR /&gt;$ exit&lt;BR /&gt;$endsubroutine&lt;BR /&gt;$!&lt;BR /&gt;&lt;BR /&gt;Note: this script is untested and not proofed for errors. I just wrote it.&lt;BR /&gt;&lt;BR /&gt;Ken</description>
      <pubDate>Fri, 05 Aug 2005 11:27:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596877#M32510</guid>
      <dc:creator>Ken Robinson</dc:creator>
      <dc:date>2005-08-05T11:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596878#M32511</link>
      <description>Here's the TPU procedure- STRIP_TPU.TPU&lt;BR /&gt;&lt;BR /&gt;Apologies to whoever wrote it, as they didn't put their name in comments.&lt;BR /&gt;&lt;BR /&gt;WWWebb</description>
      <pubDate>Fri, 05 Aug 2005 15:52:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596878#M32511</guid>
      <dc:creator>William Webb_2</dc:creator>
      <dc:date>2005-08-05T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596879#M32512</link>
      <description>Here is yet another great trick for generating CR and LF:&lt;BR /&gt;&lt;BR /&gt;$ CRLF = F$FAO("!/")&lt;BR /&gt;$ CR = F$EXTRACT(0,1,CRLF)&lt;BR /&gt;$ LF = F$EXTRACT(1,2,CRLF)&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Mon, 08 Aug 2005 17:11:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596879#M32512</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-08-08T17:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: reading/writing &lt;CR&gt;s and &lt;FF&gt;s in DCL.</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596880#M32513</link>
      <description>Woops -- I got distracted while writing that last line... should be &lt;BR /&gt;&lt;BR /&gt;$ LF = F$EXTRACT(1,1,CRLF)</description>
      <pubDate>Mon, 08 Aug 2005 17:23:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/reading-writing-lt-cr-gt-s-and-lt-ff-gt-s-in-dcl/m-p/3596880#M32513</guid>
      <dc:creator>Robert_Boyd</dc:creator>
      <dc:date>2005-08-08T17:23:30Z</dc:date>
    </item>
  </channel>
</rss>

