<?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: Converting a fixed format file to stream LF in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253937#M62591</link>
    <description>Jan - thanks for your very helpful hints - I was unaware of the write /symbol ... I shall amend my script and try again.&lt;BR /&gt;&lt;BR /&gt;Kind regards -Caroline</description>
    <pubDate>Thu, 22 Apr 2004 13:13:43 GMT</pubDate>
    <dc:creator>Caroline Page</dc:creator>
    <dc:date>2004-04-22T13:13:43Z</dc:date>
    <item>
      <title>Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253925#M62579</link>
      <description>On OPENVMS Alpha I have a stream format file containing records length 277 which has been sent in physical records of 512 bytes ie FIXED 512 instead of fixed 277 or stream lf. I don't want to truncate the 512 byte records as the 277 byte records are wrapping round.   I tried convert using streamlf and carriage return, but in addition to the correct carriage returns at the end of each 277 byte record I got an carriage return every 512 bytes.&lt;BR /&gt;How can I convert correctly to 277 byte records in stream LF ? - Many thanks - Caroline (more detail attached)</description>
      <pubDate>Tue, 20 Apr 2004 12:33:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253925#M62579</guid>
      <dc:creator>Caroline Page</dc:creator>
      <dc:date>2004-04-20T12:33:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253926#M62580</link>
      <description>&lt;BR /&gt;I suspect the bytes in the file are correct on the disk. Only the file header describing hte file might be wrong. Try fixing with:&lt;BR /&gt;&lt;BR /&gt;SET FILE/ATTR=RFM=STMLF&lt;BR /&gt;&lt;BR /&gt;If that does not work then be sure include a text file with DUMP/BLOC=COUNT=2 for the transferred file and someone here will be able to deduct what to do next.&lt;BR /&gt;Basically... we'll look for a the "0A" hex record terminator. See whether it is there, where it is.&lt;BR /&gt;&lt;BR /&gt;Note: Fixed length records of odd byte size (like 277) are stored with a filler byte in RMS fixed-length sequential file records, thus taking and even (278) number of bytes each.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Tue, 20 Apr 2004 13:46:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253926#M62580</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-04-20T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253927#M62581</link>
      <description>Caroline,&lt;BR /&gt;&lt;BR /&gt;  CONVERT can only process entire records. One record in corresponds to one record out. The most you can do is truncate or pad. As soon as you need anything that cuts and/or merges records, you need to write a program.&lt;BR /&gt;&lt;BR /&gt;  As Hein suggests, SET FILE/ATTR may fix the file (perhaps it was FTPed as BINARY instead of ASCII?).&lt;BR /&gt;&lt;BR /&gt;  If not, here's some DCL that might help. It treats the input file as a stream, cuts it into fixed length records and writes them to a stream_lf output file.&lt;BR /&gt;&lt;BR /&gt;$ IF p1.EQS."" THEN INQUIRE p1 "Input file"&lt;BR /&gt;$ IF p2.EQS."" THEN INQUIRE p2 "Output file"&lt;BR /&gt;$ IF p3.EQS."" THEN INQUIRE p3 "Output record length"&lt;BR /&gt;$&lt;BR /&gt;$ ON WARNING THEN GOTO Cleanup&lt;BR /&gt;$ ON CONTROL_Y THEN GOTO Cleanup&lt;BR /&gt;$ OPEN/READ in 'p1'&lt;BR /&gt;$ CREATE/FDL=SYS$INPUT 'p2'&lt;BR /&gt;RECORD&lt;BR /&gt;  FORMAT STREAM_LF&lt;BR /&gt;$ OPEN/APPEND out 'p2'&lt;BR /&gt;$ EOF="false"&lt;BR /&gt;$ READ/END=Cleanup in buffer&lt;BR /&gt;$ loop:&lt;BR /&gt;$   IF F$LENGTH(buffer).LT.p3&lt;BR /&gt;$   THEN&lt;BR /&gt;$     GOSUB more&lt;BR /&gt;$     IF eof THEN WRITE out buffer&lt;BR /&gt;$   ELSE&lt;BR /&gt;$     line=F$EXTRACT(0,p3,buffer)&lt;BR /&gt;$     buffer=buffer-line&lt;BR /&gt;$     WRITE out line&lt;BR /&gt;$   ENDIF&lt;BR /&gt;$ IF .NOT.eof THEN GOTO loop&lt;BR /&gt;$&lt;BR /&gt;$&lt;BR /&gt;$ More:&lt;BR /&gt;$   READ/END=eoin in line&lt;BR /&gt;$   buffer=buffer+line&lt;BR /&gt;$   RETURN&lt;BR /&gt;$ eoin:&lt;BR /&gt;$   eof="TRUE"&lt;BR /&gt;$   RETURN&lt;BR /&gt;$&lt;BR /&gt;$ Cleanup: SET NOON&lt;BR /&gt;$ CLOSE in&lt;BR /&gt;$ CLOSE out&lt;BR /&gt;$ EXIT&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Apr 2004 19:21:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253927#M62581</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-04-20T19:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253928#M62582</link>
      <description>Caroline,&lt;BR /&gt;&lt;BR /&gt;HOW did the file get formatted into fixed-size, 512-byte records? If you send a file bt PUTting it binary by FTP, this may have caused the problem.&lt;BR /&gt;I have had quite some problems with STREAM_LF before - being a non-native format it is quite obvoius that a lot of VMS programs and facilities cannot handle it properly without intervention, like CONVERT or the script John supplied. Because of that I would advice: if you can avoid using STREAM_LF to be processed by VMS-native programs, do so.&lt;BR /&gt;&lt;BR /&gt;If you need the file to be copied from one system to another, try to wrap it up in some format, copy the wrapped file and unpack on the other side. You could use ZIP and UNZIP utilities (both are on the Freeware CD) but take care you may ned to specify certain options.</description>
      <pubDate>Wed, 21 Apr 2004 06:41:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253928#M62582</guid>
      <dc:creator>Willem Grooters</dc:creator>
      <dc:date>2004-04-21T06:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253929#M62583</link>
      <description>To followup on the Zip suggestion:&lt;BR /&gt;&lt;BR /&gt;You do need zip "-V" (note the quotes and the case!) when creating the Zip archive.&lt;BR /&gt;&lt;BR /&gt;Transfer binary, then do a plain unzip on the target system.&lt;BR /&gt;&lt;BR /&gt;To get a full list of Zip Options do a zip -h.&lt;BR /&gt;&lt;BR /&gt;Greetings, Martin</description>
      <pubDate>Wed, 21 Apr 2004 09:54:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253929#M62583</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2004-04-21T09:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253930#M62584</link>
      <description>Caroline,&lt;BR /&gt;may be a stupid idea but you can try.&lt;BR /&gt;Source file has not record attribute (carriage control = none) so source file is undelimited; if you set prn you could delimite end of record.&lt;BR /&gt;Syntax is:&lt;BR /&gt;$ SET FILE LRECL277.DAT /ATTR=(RAT:PRN)&lt;BR /&gt;then try to convert.&lt;BR /&gt; &lt;BR /&gt;@Antoniov&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Apr 2004 10:56:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253930#M62584</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-04-21T10:56:42Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253931#M62585</link>
      <description>Caroline,&lt;BR /&gt;&lt;BR /&gt;maybe it helpsto move one step further back.&lt;BR /&gt;Where did this file originally com from, and how did it get where you are having problems?&lt;BR /&gt;If my next guesses are incorrected, then the rest does not apply, but I suspect:&lt;BR /&gt;a. The original file was a VMS file&lt;BR /&gt;b. it was tranferred using FTP or RCP.&lt;BR /&gt;&lt;BR /&gt;and probably c. via an intermediate non-VMS system.&lt;BR /&gt;&lt;BR /&gt;If this is true, you should do a DIR/FULL on the original and resulting files, and every attribute that differs reset by &lt;BR /&gt;$ SET FILE/ATTRIB=...&lt;BR /&gt;for exact syntax $ HELP SET FILE/ATTR&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jan</description>
      <pubDate>Thu, 22 Apr 2004 02:07:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253931#M62585</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-04-22T02:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253932#M62586</link>
      <description>Dear all - thanks for your helpful responses.&lt;BR /&gt;&lt;BR /&gt;The file originally came from an AS400 - the original file has been deleted from that system and it is not possible to retireve it from archive or recreate it as the source data has changed.&lt;BR /&gt;&lt;BR /&gt;Hein - thanks for your suggestion - setting the file attr did not solve the problem - but your point about the 278 storage was very helpful.&lt;BR /&gt;&lt;BR /&gt;John - I tried the script - but got caught out by the max length of a dcl symbol which is 256 bytes - am currently working on a variation of your script - many thanks&lt;BR /&gt;&lt;BR /&gt;Willem, Martin &amp;amp; Jan - you're all right about the problem being how the file was sent - but unfortunately  as described above I can't get the source to resend .&lt;BR /&gt;&lt;BR /&gt;Antoniov - thanks for the idea - will give it a try.&lt;BR /&gt;&lt;BR /&gt;In the meantime I enclose a dump file of the first 4 blocks of the file (512 fixed version)&lt;BR /&gt;Thanks again - Caroline</description>
      <pubDate>Thu, 22 Apr 2004 08:23:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253932#M62586</guid>
      <dc:creator>Caroline Page</dc:creator>
      <dc:date>2004-04-22T08:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253933#M62587</link>
      <description>Caroline,&lt;BR /&gt;&lt;BR /&gt;there mat be a way to get along with longer DCL symbols.&lt;BR /&gt;The current maximum length is about 1000 (1K - some overhead). btw, in VMS 7.3-2 it increases to 8K.&lt;BR /&gt;&lt;BR /&gt;The functions available on symbols &amp;gt; 255 chars are limited.&lt;BR /&gt;Things like f$LOCATE and F$ELEMENT don't work.&lt;BR /&gt;However, you CAN do an f$extract.&lt;BR /&gt;This way you split it up in 100 or 200 byte chunks, process any logical parts off of then beginning, concat the next etc.&lt;BR /&gt;You cannot SHOW the long symbols, and you cannot simply write 'm.&lt;BR /&gt;However,&lt;BR /&gt;$ WRITE/SYMBOL file symb &lt;BR /&gt;WILL work.&lt;BR /&gt;And file may well be SYS$OUTPUT.&lt;BR /&gt;&lt;BR /&gt;Yes, it is a little cumbersome, and it looks clumsy, but if you NEED it, you are glad there is at least a way. (I definitely have been, on various occasions).&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jan&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2004 08:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253933#M62587</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2004-04-22T08:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253934#M62588</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Hein - thanks for your suggestion - setting the file attr did not solve the problem - but your point about the 278 storage was very helpful.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This may sound obnoxious, but I think it did work. The dump clearly shows hex '0A' at the right intervals. Changing the attirbute to STREAM_LF will turn those chunks into records. &lt;BR /&gt;&lt;BR /&gt;So please explain why you concluded it did not work.&lt;BR /&gt;&lt;BR /&gt;Re-verify the SET FILE/ATTR with DUMP/RECOR=COUNT=3 (or however many you can stand).&lt;BR /&gt;&lt;BR /&gt;Does you application handle STREAM_LF files?&lt;BR /&gt;IF not, after making the file useabel with SET FILE convert it. For example simply using CONVERT/STAT streamfile test/FDL=NL:&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2004 11:21:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253934#M62588</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-04-22T11:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253935#M62589</link>
      <description>&lt;BR /&gt;ooops, I send that too quickly.&lt;BR /&gt;I meant to inlcude I why I think the file looks good. I made a quick check list printing the hex value, and hex offset in the block for every 278 bytes (277 for the record, 1 for the terminator). It lines up great with the dump.&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; perl -e 'while ($i&amp;lt;10) {$x=278*$i++; printf ("%04x %04x\n",$x,$x%512)}'&lt;BR /&gt;0000 0000&lt;BR /&gt;0116 0116&lt;BR /&gt;022c 002c&lt;BR /&gt;0342 0142&lt;BR /&gt;0458 0058&lt;BR /&gt;056e 016e&lt;BR /&gt;0684 0084&lt;BR /&gt;079a 019a&lt;BR /&gt;08b0 00b0&lt;BR /&gt;09c6 01c6&lt;BR /&gt;</description>
      <pubDate>Thu, 22 Apr 2004 11:41:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253935#M62589</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-04-22T11:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253936#M62590</link>
      <description>Hein - Not at all objectionable... it does line up on 278 - the dump I sent was from the original file - but I also get extra breaks ... I need to get rid of these without removing the 278 breaks&lt;BR /&gt;&lt;BR /&gt;- as it stands when I attempt to load the file into Oracle , oracle objects very strenuously&lt;BR /&gt;&lt;BR /&gt;I do appreciate your help very much.&lt;BR /&gt;Kind regards - Caroline&lt;BR /&gt;&lt;BR /&gt;To aid comparison will attach the output from a type /pa  from a correctly formatted file and from the original file as well as a dump of the file before and after the stmlf command and a dump of a correct file.&lt;BR /&gt;&lt;BR /&gt;Thanks again - Caroline&lt;BR /&gt;...sorry if I've done something daft along the way....</description>
      <pubDate>Thu, 22 Apr 2004 13:10:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253936#M62590</guid>
      <dc:creator>Caroline Page</dc:creator>
      <dc:date>2004-04-22T13:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253937#M62591</link>
      <description>Jan - thanks for your very helpful hints - I was unaware of the write /symbol ... I shall amend my script and try again.&lt;BR /&gt;&lt;BR /&gt;Kind regards -Caroline</description>
      <pubDate>Thu, 22 Apr 2004 13:13:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253937#M62591</guid>
      <dc:creator>Caroline Page</dc:creator>
      <dc:date>2004-04-22T13:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253938#M62592</link>
      <description>Well, I am still confused why the straigth SET FILE did not do the job. The dump seems to show that the fullsized records end in x0A as expected, the short ones without. That means (in my book) that the short ones should not show up as record, as there is no terminator.&lt;BR /&gt;Possible explanations:&lt;BR /&gt;- You inherited a 'no-span' attribute&lt;BR /&gt;- You used an extra, un-needed convert.&lt;BR /&gt;&lt;BR /&gt;Note... because you happen to want an odd fixed length size you can actually also try SET FILE/ATR=(RFM=FIX,LRL=277,MRS=277)&lt;BR /&gt;As I wrote, RMS will round up, which happens to nicely 'eat up' the x0A line-feeds.&lt;BR /&gt;&lt;BR /&gt;Anyway, it seems you are stuck with this full records + partial. Should be easy enough to glue them back together. Using AWK:&lt;BR /&gt;&lt;BR /&gt;$ gawk /out=fixed /com="{l=length(); if (l&amp;lt;277){print}else{x=$0;getline; print x $0}}" broken&lt;BR /&gt;&lt;BR /&gt;Using PERL:&lt;BR /&gt;$ perl -pe "if (length()&amp;lt;278){chop;$_.=&amp;lt;&amp;gt;}" &amp;lt; broken &amp;gt; fixed&lt;BR /&gt;&lt;BR /&gt;(The 278 and chop are needed because perl instantiates a record terminator!)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Using DCL:&lt;BR /&gt;&lt;BR /&gt;$if p2.eqs.""&lt;BR /&gt;$  then&lt;BR /&gt;$  write sys$output "Please provide input and outfile file names"&lt;BR /&gt;$  exit&lt;BR /&gt;$endif&lt;BR /&gt;$open/read p1 'p1&lt;BR /&gt;$open/writ p2 'p2&lt;BR /&gt;$loop:&lt;BR /&gt;$read/end=done p1 rec&lt;BR /&gt;$if f$len(rec).lt.277&lt;BR /&gt;$ then&lt;BR /&gt;$ read/end=done p1 some_more&lt;BR /&gt;$ rec = rec + some_more&lt;BR /&gt;$endif&lt;BR /&gt;$write/symb p2 rec&lt;BR /&gt;$goto loop&lt;BR /&gt;$&lt;BR /&gt;$done:&lt;BR /&gt;$close p1&lt;BR /&gt;$close p2&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Oh, btw... there is one more, little known, fun tool for file conversions that comes with VMS. It has an odd name: EXCHANGE/NET&lt;BR /&gt;It has record blocking/deblocking. Check it out! (HELP)&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 00:56:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253938#M62592</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-04-23T00:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253939#M62593</link>
      <description>Hello Caroline,&lt;BR /&gt;looking into your dump, I've seen after LF (0x0A) there are furthermore information; if I understand this is a valid data because it appear as same format of 1.st valid record; same for next logical record.&lt;BR /&gt;If is it, you byte are all sequentially stored in your file and any record end with new line or LF (0x0A); there is no extra bytes.&lt;BR /&gt;Your trouble, I think, is exchange file to other application; Hein's command would work fine SET FILE/ATTR=(RFM=FIX,LRL=277,MRS=277) then you can view every record with DUMP/REC.&lt;BR /&gt;Also you could try&lt;BR /&gt;$ SET FILE /ATTR=(FRM=STMLF,MRS=277,RAT:NONE)&lt;BR /&gt;so you file is managed as unix text and you could view file using TYPE.&lt;BR /&gt;I think you have no convert file.&lt;BR /&gt; &lt;BR /&gt;@Antoniov&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 01:59:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253939#M62593</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-04-23T01:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253940#M62594</link>
      <description>Antoniov &lt;BR /&gt;thanks very much&lt;BR /&gt;- I did as you suggested and tried SET FILE/ATTR=(RFM=FIX,LRL=277,MRS=277) - this looked brilliant on the dump - but mysteriously only fixed the first 15844 records - as I discovered when I tried to load the file into oracle - HOWEVER - I think we hit the jackpot with your second suggestion SET FILE /ATTR=(FRM=STMLF,MRS=277,RAT:NONE) ! - I can't express how delighted I am !&lt;BR /&gt;Many many thanks to you and Hein and everyone who has contributed</description>
      <pubDate>Fri, 23 Apr 2004 11:01:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253940#M62594</guid>
      <dc:creator>Caroline Page</dc:creator>
      <dc:date>2004-04-23T11:01:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a fixed format file to stream LF</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253941#M62595</link>
      <description>Caroline,&lt;BR /&gt;happy you solved.&lt;BR /&gt;If you'll need again post another thread :-)&lt;BR /&gt; &lt;BR /&gt;@Antoniov&lt;BR /&gt;</description>
      <pubDate>Fri, 23 Apr 2004 11:06:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/converting-a-fixed-format-file-to-stream-lf/m-p/3253941#M62595</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-04-23T11:06:54Z</dc:date>
    </item>
  </channel>
</rss>

