<?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: String too long for writing into file in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906539#M35145</link>
    <description>Thanks. I have amended the open section.&lt;BR /&gt;However, concatenation can't be used.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script:&lt;BR /&gt;$ open/read/error=FILE_ERR s_file 'source_file&lt;BR /&gt;$ open/write/error=FILE_ERR d_file 'destn_file&lt;BR /&gt;$ !&lt;BR /&gt;$       read/end_of_file=EOF/error=FILE_ERR s_file content&lt;BR /&gt;$       i_content = f$extract(0,535,content)&lt;BR /&gt;$       b_content = f$extract(541,98,content)&lt;BR /&gt;$           f_content = i_content+"01DEC06"+b_content&lt;BR /&gt;$           write/symbol d_file f_content&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;%DCL-W-NOCCAT, parameter concatenation not allowed - check use of plus (+)&lt;BR /&gt; \F_CONTENT+\&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help. Thanks.</description>
    <pubDate>Fri, 01 Dec 2006 08:37:38 GMT</pubDate>
    <dc:creator>RockRock</dc:creator>
    <dc:date>2006-12-01T08:37:38Z</dc:date>
    <item>
      <title>String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906534#M35140</link>
      <description>I would like to prepare a script for writing a string (longer than 256 characters) into a file.&lt;BR /&gt;However, the following error is prompted.&lt;BR /&gt;Script:&lt;BR /&gt;write d_file f$extract(0,256,content)&lt;BR /&gt;Error:&lt;BR /&gt;"command element is too long - shorten"&lt;BR /&gt;&lt;BR /&gt;Then, I amend the script to use "write/symbol" instead. However, another error is prompted.&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;"%DCL-W-PARMDEL, invalid parameter delimiter - check use of special characters&lt;BR /&gt; \(0\"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help. Thanks.</description>
      <pubDate>Fri, 01 Dec 2006 06:59:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906534#M35140</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-01T06:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906535#M35141</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;How about:&lt;BR /&gt;&lt;BR /&gt;$ line =  f$extract(0,256,content)&lt;BR /&gt;$ write/symb d_file line&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Enjoy,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 07:08:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906535#M35141</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-12-01T07:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906536#M35142</link>
      <description>Hein gave the answer.&lt;BR /&gt;&lt;BR /&gt;Why?&lt;BR /&gt;&lt;BR /&gt;Because WRITE/SYMBOL does exactly that:&lt;BR /&gt;it writes a symbol.&lt;BR /&gt;&lt;BR /&gt;.. and you asked it to write the outcome of a lexical function.&lt;BR /&gt;&lt;BR /&gt;BTW: VMS version _IS_ of interest here: since some UPDATE (don't remember which) for V7.3-2 the default tokenlength handled, as well as the length handled by /SYMBOL, have been increased 8-fold (thanks again, Guy Peleg!)&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</description>
      <pubDate>Fri, 01 Dec 2006 07:23:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906536#M35142</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-01T07:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906537#M35143</link>
      <description>Thank you for your reply. Another error is prompted.&lt;BR /&gt;&lt;BR /&gt;Script:&lt;BR /&gt;$ open/read/error=FILE_ERR s_file 'source_file&lt;BR /&gt;$ open/read/write/share/error=FILE_ERR d_file 'destn_file&lt;BR /&gt;$ !&lt;BR /&gt;$ READ_LOOP:&lt;BR /&gt;$       read/end_of_file=EOF/error=FILE_ERR s_file content&lt;BR /&gt;$       line = f$extract(0,256,content)&lt;BR /&gt;$       write/symbol d_file line&lt;BR /&gt;...&lt;BR /&gt;$ close d_file&lt;BR /&gt;$ close s_file&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;%RMS-F-NEF, not positioned to EOF on $PUT (sequential organization only)&lt;BR /&gt;&lt;BR /&gt;Please help. Thanks.</description>
      <pubDate>Fri, 01 Dec 2006 07:32:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906537#M35143</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-01T07:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906538#M35144</link>
      <description>RockRock,&lt;BR /&gt;&lt;BR /&gt;what _IS_ the "organisation" of the 'destn_file'?&lt;BR /&gt;Looks like you are trying to insert a record into an existing indexed file without positioning it first.&lt;BR /&gt;... But I am probably already assuming to much now.&lt;BR /&gt;Please post the output of &lt;BR /&gt;DIR/FULL 'destn_file' &lt;BR /&gt;(rename the output to .TXT, and attach it, if it has to come out formatted for human reading).&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 01 Dec 2006 07:52:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906538#M35144</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-01T07:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906539#M35145</link>
      <description>Thanks. I have amended the open section.&lt;BR /&gt;However, concatenation can't be used.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Script:&lt;BR /&gt;$ open/read/error=FILE_ERR s_file 'source_file&lt;BR /&gt;$ open/write/error=FILE_ERR d_file 'destn_file&lt;BR /&gt;$ !&lt;BR /&gt;$       read/end_of_file=EOF/error=FILE_ERR s_file content&lt;BR /&gt;$       i_content = f$extract(0,535,content)&lt;BR /&gt;$       b_content = f$extract(541,98,content)&lt;BR /&gt;$           f_content = i_content+"01DEC06"+b_content&lt;BR /&gt;$           write/symbol d_file f_content&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Error:&lt;BR /&gt;%DCL-W-NOCCAT, parameter concatenation not allowed - check use of plus (+)&lt;BR /&gt; \F_CONTENT+\&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help. Thanks.</description>
      <pubDate>Fri, 01 Dec 2006 08:37:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906539#M35145</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-01T08:37:38Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906540#M35146</link>
      <description>Lots of choices here... how's about&lt;BR /&gt;&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$ f_content = f$extract(0,535,content)+"01DEC06"+f$extract(541,98,content)&lt;BR /&gt;$ write/symbol d_file f_content&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;&lt;BR /&gt;J.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 09:19:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906540#M35146</guid>
      <dc:creator>John Abbott_2</dc:creator>
      <dc:date>2006-12-01T09:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906541#M35147</link>
      <description>It works. Thank you very much.</description>
      <pubDate>Fri, 01 Dec 2006 09:49:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906541#M35147</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-01T09:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906542#M35148</link>
      <description>RockRock,&lt;BR /&gt;&lt;BR /&gt;for the "Forums way to express thanks" please read &lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&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;&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Dec 2006 12:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906542#M35148</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-12-01T12:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906543#M35149</link>
      <description>The answer has solved my problem completely! Now I'm a happy camper!</description>
      <pubDate>Sun, 03 Dec 2006 10:03:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906543#M35149</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-03T10:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: String too long for writing into file</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906544#M35150</link>
      <description>9: The answer has solved my problem completely! Now I'm a happy camper!</description>
      <pubDate>Sun, 03 Dec 2006 10:04:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/string-too-long-for-writing-into-file/m-p/3906544#M35150</guid>
      <dc:creator>RockRock</dc:creator>
      <dc:date>2006-12-03T10:04:09Z</dc:date>
    </item>
  </channel>
</rss>

