<?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: Escape sequence in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037496#M317</link>
    <description>Hello&lt;BR /&gt;&lt;BR /&gt;is your question releated to Linux or to VMS &lt;BR /&gt;if it is VMS above answer should work &lt;BR /&gt;&lt;BR /&gt;If it is Linux try dos2unix &lt;BR /&gt;&lt;BR /&gt;first do a dos2unix --help and/or read man page&lt;BR /&gt;&lt;BR /&gt;save original in a save place then try out &lt;BR /&gt;&lt;BR /&gt;dos2unix on your file &lt;BR /&gt;&lt;BR /&gt;Jean-Pierre&lt;BR /&gt;</description>
    <pubDate>Thu, 31 Jul 2003 07:02:52 GMT</pubDate>
    <dc:creator>Huc_1</dc:creator>
    <dc:date>2003-07-31T07:02:52Z</dc:date>
    <item>
      <title>Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037494#M315</link>
      <description>Hi, I need to add an end of line to every line into one ascii file, anyone knows how to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;Danilo M.</description>
      <pubDate>Wed, 30 Jul 2003 16:24:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037494#M315</guid>
      <dc:creator>Danilo Martinez</dc:creator>
      <dc:date>2003-07-30T16:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037495#M316</link>
      <description>Try convert..&lt;BR /&gt;&lt;BR /&gt;$ create x.fdlFILE&lt;BR /&gt;        ORGANIZATION            sequential&lt;BR /&gt;&lt;BR /&gt;RECORD&lt;BR /&gt;        FORMAT                  stream_cr &lt;BR /&gt;&lt;BR /&gt;$ conv/fdl=x.fdl y.y x.x&lt;BR /&gt;&lt;BR /&gt;You also try stream_lf to insert lf's. Depends on how you are using the file but also need to play around "set file/att"&lt;BR /&gt;&lt;BR /&gt;    Tim</description>
      <pubDate>Thu, 31 Jul 2003 02:34:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037495#M316</guid>
      <dc:creator>Tim Hughes_3</dc:creator>
      <dc:date>2003-07-31T02:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037496#M317</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;is your question releated to Linux or to VMS &lt;BR /&gt;if it is VMS above answer should work &lt;BR /&gt;&lt;BR /&gt;If it is Linux try dos2unix &lt;BR /&gt;&lt;BR /&gt;first do a dos2unix --help and/or read man page&lt;BR /&gt;&lt;BR /&gt;save original in a save place then try out &lt;BR /&gt;&lt;BR /&gt;dos2unix on your file &lt;BR /&gt;&lt;BR /&gt;Jean-Pierre&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jul 2003 07:02:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037496#M317</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-07-31T07:02:52Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037497#M318</link>
      <description>Hello &lt;BR /&gt;&lt;BR /&gt;Please discard my the above reply It is an Open VMS question you where asking, I must not be totaly awake yet !&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Jean-Pierre</description>
      <pubDate>Thu, 31 Jul 2003 07:18:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037497#M318</guid>
      <dc:creator>Huc_1</dc:creator>
      <dc:date>2003-07-31T07:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037498#M319</link>
      <description>you could use a simple read/write DCL command procedure. The procedure could read the one file append the EOL to each line and write out to another file. Should not be a problem provided the records are less than 1024 bytes, a limitation in symbol sizes in DCL.</description>
      <pubDate>Thu, 31 Jul 2003 16:28:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037498#M319</guid>
      <dc:creator>Gary Sachs</dc:creator>
      <dc:date>2003-07-31T16:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037499#M320</link>
      <description>On the topic in general: If you are tranfering &lt;BR /&gt;"ASCII" data between VMS/Unix/Windows if often pays to compress the files using zip and then to &lt;BR /&gt;take advantage or the -l qualifier to Zip or -a to Unzip to do the required line termination conversion.</description>
      <pubDate>Fri, 01 Aug 2003 12:42:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037499#M320</guid>
      <dc:creator>Martin P.J. Zinser</dc:creator>
      <dc:date>2003-08-01T12:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037500#M321</link>
      <description>Hi Danilo,&lt;BR /&gt;end of line or new line is not a ASCII code. On Ms-Dos and Windows OS is CR-LF sequence (HEX 0D followed by 0A). On Unix/linux is only LF (hex 0A). On VMS could be a lot of thing depending by file structure/attribute. Usually VMS use CR-LF sequence.&lt;BR /&gt;End of line is depending by use of file: need more info to help you.&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Mon, 04 Aug 2003 07:05:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037500#M321</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-08-04T07:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037501#M322</link>
      <description>Hi All, thanks a lot for yours answers, I??m going to clarify my question.&lt;BR /&gt;&lt;BR /&gt;As you can see I have the following procedure, I??m reading records from a database and putting its to a file but each registry is being followed immediately of the other in the same line of the file, I need to put every record on different line into my text file.&lt;BR /&gt;At this moment I??m putting a "," symbol in order to identofy where ended every record.&lt;BR /&gt;&lt;BR /&gt;$ delete dka300:[pic.ftp.txt]line_summary.txt;1&lt;BR /&gt;$ def/user sys$output dka300:[pic.ftp.txt]line_summary.txt&lt;BR /&gt;$ rdo :== $rdo&lt;BR /&gt;$ rdo&lt;BR /&gt;print "BEGIN LINE_SUMMARY_TABLE" &lt;BR /&gt;for i &lt;BR /&gt;   in LINE_SUMMARY_TABLE&lt;BR /&gt;   print i.line,",",&lt;BR /&gt;   i.time_stamp,",",&lt;BR /&gt;   i.current_speed,",",&lt;BR /&gt;   i.previous_speed,",",&lt;BR /&gt;   i.two_hours_ago_speed,",",&lt;BR /&gt;   i.current_efficiency,",",&lt;BR /&gt;   i.previous_efficiency,",",&lt;BR /&gt;   i.two_hours_ago_efficiency,",",&lt;BR /&gt;   i.current_forming_eff,",",&lt;BR /&gt;   i.previous_forming_eff,",",&lt;BR /&gt;   i.two_hours_ago_forming_eff,",",&lt;BR /&gt;   i.four_worst_defects,",",&lt;BR /&gt;   i.four_worst_cavities,","&lt;BR /&gt;end_for&lt;BR /&gt;print "END LINE_SUMMARY_TABLE"&lt;BR /&gt;&lt;BR /&gt;print "BEGIN LINE_TABLE" &lt;BR /&gt;for i &lt;BR /&gt;   in LINE_TABLE&lt;BR /&gt;   print i.line,",",&lt;BR /&gt;   i.line_unit,",",&lt;BR /&gt;   i.ida_node_number,",",&lt;BR /&gt;   i.number_of_sections,",",&lt;BR /&gt;   i.number_of_gobs,",", &lt;BR /&gt;   i.mold,",",&lt;BR /&gt;   i.bottle_finish,",",&lt;BR /&gt;   i.color,",",&lt;BR /&gt;   i.job_name,",",&lt;BR /&gt;   i.lehr_time,",",&lt;BR /&gt;   i.num_fps,",",&lt;BR /&gt;   i.min_fp_sample_size,",", &lt;BR /&gt;   i.efficiency,",",&lt;BR /&gt;   i.forming_efficiency,",",&lt;BR /&gt;   i.gob_weight,",",&lt;BR /&gt;   i.on_line,",",&lt;BR /&gt;   i.number_of_active_sections,",",&lt;BR /&gt;   i.art,","&lt;BR /&gt;   &lt;BR /&gt;end_for&lt;BR /&gt;print "END LINE_TABLE"&lt;BR /&gt;&lt;BR /&gt;I will Apreciate your help.&lt;BR /&gt;Thanks&lt;BR /&gt;Danilo</description>
      <pubDate>Mon, 04 Aug 2003 14:41:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037501#M322</guid>
      <dc:creator>Danilo Martinez</dc:creator>
      <dc:date>2003-08-04T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037502#M323</link>
      <description>&lt;BR /&gt;The default VMS file format is in DIRECTORY/FULL terms:&lt;BR /&gt;&lt;BR /&gt;Record format: Variable length&lt;BR /&gt;Record attributes:  Carriage return carriage control&lt;BR /&gt;&lt;BR /&gt;In this file format there is not 'end-of-line' stored. It is implied, and assumed to be added by the reader, facilitated by RMS/VMS. Thus if you $TYPE or $PRINT the file on VMS is should look 'right'. Does it? However, if you more it to a different OS you may want the impleid EOL replaced by an explicit characted set. To do so, use an CONVERT with FDL file, just as Tim's first reply suggested. Did you try that?&lt;BR /&gt;Also check out HELP EXCHANGE /NETWORK&lt;BR /&gt;Alternative format for Tim's reply:&lt;BR /&gt;&lt;BR /&gt;$convert/fdl=sys$input line_summary.txt x.txt&lt;BR /&gt;record; format stream&lt;BR /&gt;$ ! (or stream_lf or stream_cr as needed).&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; At this moment I????m putting a "," symbol in&lt;BR /&gt;&amp;gt; order to identofy where ended every record. &lt;BR /&gt; :&lt;BR /&gt;&amp;gt; print i.line,",",                 &amp;gt; i.time_stamp,",",                          &amp;gt; i.current_speed,",",                       &lt;BR /&gt;&lt;BR /&gt;Hmmm... this confuses me somewhat. We may have a terminology problem. It appears to me that you are putting a comma after each FIELD withing a record. Do you want a new line after 'time_stamp', before 'current_speed'? If so, you'll need multipel print statements, one for each field. Or you'll need to dig up the RDO command to put a CR/LF code in a constant string instead of that comma.&lt;BR /&gt;&lt;BR /&gt;Remember... to find out exactly what your data&lt;BR /&gt;file is supposed to be use $DIRECTORY/FULL.&lt;BR /&gt;TO know exactly what it looks like, byte by byte, use DUMP.&lt;BR /&gt;In record mode:&lt;BR /&gt;$DUMP/RECOR=COUNT=10/FIXED line_summary.txt&lt;BR /&gt;Or in block mode&lt;BR /&gt;$DUMP/BLOCK=COUNT=1 line_summary.txt&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;    Hein</description>
      <pubDate>Mon, 04 Aug 2003 20:19:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037502#M323</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-08-04T20:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037503#M324</link>
      <description>Hi Danilo,&lt;BR /&gt;1) After you are executed this procedure, you can type line_summary.txt correctly? I think your Database append EOL at end of every line. If you can type this file you can read exactly with this command procedure:&lt;BR /&gt;$ open/read src dka300:[pic.ftp.txt]line_summary.txt&lt;BR /&gt;$mloop:&lt;BR /&gt;$ read src myline /end=xitloop&lt;BR /&gt;$ write sys$output myline,"&amp;lt;- End of line"&lt;BR /&gt;$ goto mloop&lt;BR /&gt;$xitloop:&lt;BR /&gt;$ close src&lt;BR /&gt;This simple procedure say you output file contain EOL.&lt;BR /&gt;&lt;BR /&gt;Now, if you will export to another platform, you could convert the text file, but for this operation is required more information about your network and target platform.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can fee awarding point.&lt;BR /&gt;Bye.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Aug 2003 05:42:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037503#M324</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-08-05T05:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037504#M325</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;This is a simple RDO problem, just use this:&lt;BR /&gt;&lt;BR /&gt;print "BEGIN LINE_SUMMARY_TABLE" &lt;BR /&gt;for i &lt;BR /&gt;in LINE_SUMMARY_TABLE &lt;BR /&gt;print i.line &lt;BR /&gt;print i.time_stamp &lt;BR /&gt;print i.current_speed &lt;BR /&gt;print i.previous_speed &lt;BR /&gt;print i.two_hours_ago_speed&lt;BR /&gt;print i.current_efficiency &lt;BR /&gt;print i.previous_efficiency &lt;BR /&gt;print i.two_hours_ago_efficiency &lt;BR /&gt;print i.current_forming_eff &lt;BR /&gt;print i.previous_forming_eff &lt;BR /&gt;print i.two_hours_ago_forming_eff &lt;BR /&gt;print i.four_worst_defects&lt;BR /&gt;print i.four_worst_cavities &lt;BR /&gt;end_for &lt;BR /&gt;print "END LINE_SUMMARY_TABLE" &lt;BR /&gt;&lt;BR /&gt;this should work - every field in a separate line....&lt;BR /&gt;&lt;BR /&gt;regards &lt;BR /&gt;&lt;BR /&gt;Beat</description>
      <pubDate>Thu, 07 Aug 2003 13:48:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037504#M325</guid>
      <dc:creator>Burkart Beat</dc:creator>
      <dc:date>2003-08-07T13:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037505#M326</link>
      <description>Hi Birt, I tried to implement your suggestion but I receive the followin errors:&lt;BR /&gt;&lt;BR /&gt;BEGIN REJECT_HISTORY   &lt;BR /&gt;   i.time_on&lt;BR /&gt;   ^&lt;BR /&gt;%RDO-W-LOOK_FOR_STT, syntax error, looking for:&lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            *, /, -, +, |, =, &amp;gt;, &amp;lt;, EQ, &amp;lt;&amp;gt;, NE, &amp;gt;=, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            GE, GT, LT, &amp;lt;=, LE, NOT, CONT, MISSING, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            BETWEEN, STARTING, MATCHING, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            CONTAINING, AND, OR, ,, ;, FOR, ERASE, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            FETCH, PRINT, PLACE, STORE, MODIFY, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            END_STREAM, START_STREAM, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            END_SEGMENTED_STRING, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            START_SEGMENTED_STRING, &lt;BR /&gt;%RDO-W-LOOK_FOR_CON,            CREATE_SEGMENTED_STRING, END_FOR, &lt;BR /&gt;%RDO-F-LOOK_FOR_FIN,    found I instead&lt;BR /&gt;   I.time_off&lt;BR /&gt;   ^&lt;BR /&gt;%RDO-F-LOOK_FOR, syntax error, looking for a valid RDO statement, found I inste &lt;BR /&gt;   i.cavity_number&lt;BR /&gt;   ^&lt;BR /&gt;%RDO-F-LOOK_FOR, syntax error, looking for a valid RDO statement, found I inste &lt;BR /&gt;   i.section_number&lt;BR /&gt;&lt;BR /&gt;Thanks for your answer.</description>
      <pubDate>Thu, 14 Aug 2003 20:06:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037505#M326</guid>
      <dc:creator>Danilo Martinez</dc:creator>
      <dc:date>2003-08-14T20:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037506#M327</link>
      <description>&lt;BR /&gt;Looks like a made a simpel typo in the procedure. The structure that Beat (and I) proposed to you is:&lt;BR /&gt;   FOR i IN table&lt;BR /&gt;     PRINT i.some_field&lt;BR /&gt;     PRINT i.other_field&lt;BR /&gt;       :&lt;BR /&gt;   END_FOR&lt;BR /&gt;&lt;BR /&gt;Please use other examples in your collection to verfy punctuation (commas, semicolons, begin/end, whatever needed).&lt;BR /&gt;If you still can't figure it out, be sure to reply with a relevant chunk of actual code, not just the error message. I did not see 'reject_history' or 'time_on' prior in the post so we can only speculate. Try with a simple single print, then add more.&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 16 Aug 2003 15:14:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037506#M327</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2003-08-16T15:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037507#M328</link>
      <description>Hi all, this problem was solved putting a print&lt;BR /&gt;instrucction before every field.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot&lt;BR /&gt;Danilo M.</description>
      <pubDate>Fri, 22 Aug 2003 22:33:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037507#M328</guid>
      <dc:creator>Danilo Martinez</dc:creator>
      <dc:date>2003-08-22T22:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Escape sequence</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037508#M329</link>
      <description>Hi Danilo,&lt;BR /&gt;then you can assign point to people help you.&lt;BR /&gt;Bye&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Aug 2003 11:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/escape-sequence/m-p/3037508#M329</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2003-08-25T11:10:33Z</dc:date>
    </item>
  </channel>
</rss>

