<?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: SAS program corruption - lines of code partially deleted/truncated in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629476#M186154</link>
    <description>The problem is that some lines are truncated at say column 100 and then other lines truncate at column 300. If it was S option would all lines be truncated at the same exact column?</description>
    <pubDate>Wed, 04 Mar 2020 16:20:27 GMT</pubDate>
    <dc:creator>lbarwick</dc:creator>
    <dc:date>2020-03-04T16:20:27Z</dc:date>
    <item>
      <title>SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629443#M186139</link>
      <description>&lt;P&gt;I'm curious if anyone has experience with SAS file corruption, specifically lines of code randomly being partially deleted. For example, I have several programs that run as scheduled tasks and I noticed them failing all of a sudden.After opening the programs I noticed some comments had been truncated leaving them open, and also some lines of code being truncated, e.g.:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose data=metafree out=metatrans1free prefix=field; by projid prot table_name screenname; var field_name; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;changed to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose data=metafree out=metatrans1free prefix=field; by projid prot table_name&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only I have access to the program so it's not a matter of someone going in and accidentally altering these lines of code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 14:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629443#M186139</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T14:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629473#M186153</link>
      <description>&lt;P&gt;Probably something with the S option, which controls the length of source lines being read. Just specify&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options s=max;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the beginning of your code, that should solve the problem (unless your programs set the S option to something else along the way).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using %INCLUDE files, you may also want to set S2=MAX.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629473#M186153</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-03-04T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629476#M186154</link>
      <description>The problem is that some lines are truncated at say column 100 and then other lines truncate at column 300. If it was S option would all lines be truncated at the same exact column?</description>
      <pubDate>Wed, 04 Mar 2020 16:20:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629476#M186154</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T16:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629479#M186156</link>
      <description>&lt;P&gt;Yes, that should be the case. Unless you explicitly set the S option somewhere, or you are using %INCLUDE, and S2 is different from S.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:22:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629479#M186156</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-03-04T16:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629481#M186157</link>
      <description>I am not explicitly setting S option anywhere in the program. Is there an implicit S option too that is set in preferences?</description>
      <pubDate>Wed, 04 Mar 2020 16:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629481#M186157</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629493#M186162</link>
      <description>&lt;P&gt;Are these lines truncated in the stored programs (do not check this with SAS, use the operating system for this - type (Windows) or cat (UNIX)), or only while being executed by SAS job?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 16:45:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629493#M186162</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-04T16:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629528#M186178</link>
      <description>I'm not sure what you mean. I am in a Windows environment using 9.4</description>
      <pubDate>Wed, 04 Mar 2020 18:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629528#M186178</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T18:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629549#M186191</link>
      <description>&lt;P&gt;Yes, there may be a default set in Config.sas, in the program invocation command line, or in the autoexec.sas file. If you have no S or S2 options statements anywhere else, try putting this in the beginning of the programs you are running:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options s=max s2=max;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629549#M186191</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-03-04T18:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629552#M186194</link>
      <description>So say someone with a local setting different from mine opened the program and then saved it, could that cause this?</description>
      <pubDate>Wed, 04 Mar 2020 18:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629552#M186194</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T18:56:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629556#M186197</link>
      <description>&lt;P&gt;No. But if someone (including yourself) ran the program with a different config.sas, autoexec.sas, or different command line options, that could explain the problem. When running in batch, all of these may be different, check the batch environment, or try my proposed solution.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 19:01:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629556#M186197</guid>
      <dc:creator>s_lassen</dc:creator>
      <dc:date>2020-03-04T19:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629559#M186198</link>
      <description>OK - the proposed solution did not work. I'll check the configs.</description>
      <pubDate>Wed, 04 Mar 2020 19:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629559#M186198</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-04T19:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629593#M186214</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/20041"&gt;@lbarwick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I'm not sure what you mean. I am in a Windows environment using 9.4&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Then open the .sas files with the Windows Editor and check if the lines are truncated there.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 20:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629593#M186214</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-04T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629796#M186346</link>
      <description>&lt;P&gt;Yes the lines are truncated in the enhanced editor.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:43:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629796#M186346</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-05T13:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629799#M186349</link>
      <description>&lt;P&gt;And also in the Windows Editor (or Notepad++)? This will determine if the problem happens only when reading the files, or when they were last stored.&lt;/P&gt;
&lt;P&gt;If the latter, look at the last modification timestamp; it might give you a hint when it happened.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629799#M186349</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T13:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629803#M186351</link>
      <description>The code in text editor is identical to code in enhanced editor. There appears to be extraneous blank spaces inserted in random places. Unfortunately I made a minor edit the other day that wouldn't have affected any of this, so time stamp is unreliable. I've asked my IT dept to recover an archived copy.</description>
      <pubDate>Thu, 05 Mar 2020 13:57:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629803#M186351</guid>
      <dc:creator>lbarwick</dc:creator>
      <dc:date>2020-03-05T13:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program corruption - lines of code partially deleted/truncated</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629820#M186358</link>
      <description>&lt;P&gt;Just a hunch: have them run a thorough file system check where your programs are stored.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 14:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-corruption-lines-of-code-partially-deleted-truncated/m-p/629820#M186358</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-03-05T14:24:30Z</dc:date>
    </item>
  </channel>
</rss>

