<?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 How to enable inserting underscore '_' in batch jobs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740576#M231371</link>
    <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;SAS 9.4, TS1M7 on WIN x64&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In BASE SAS, ROC IMPORT inserts a underscore if there is space in a variable name, for example, &lt;STRONG&gt;'end date'&lt;/STRONG&gt; after proc import will be &lt;STRONG&gt;'end_date'&lt;/STRONG&gt; (the single tick for emphasis).&amp;nbsp; If the job is scheduled using SAS schedule manager, OSS server, that does not work.&amp;nbsp; Is there an option, or a workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shoin&lt;/P&gt;</description>
    <pubDate>Tue, 11 May 2021 18:52:55 GMT</pubDate>
    <dc:creator>shoin</dc:creator>
    <dc:date>2021-05-11T18:52:55Z</dc:date>
    <item>
      <title>How to enable inserting underscore '_' in batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740576#M231371</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;SAS 9.4, TS1M7 on WIN x64&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In BASE SAS, ROC IMPORT inserts a underscore if there is space in a variable name, for example, &lt;STRONG&gt;'end date'&lt;/STRONG&gt; after proc import will be &lt;STRONG&gt;'end_date'&lt;/STRONG&gt; (the single tick for emphasis).&amp;nbsp; If the job is scheduled using SAS schedule manager, OSS server, that does not work.&amp;nbsp; Is there an option, or a workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shoin&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 18:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740576#M231371</guid>
      <dc:creator>shoin</dc:creator>
      <dc:date>2021-05-11T18:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable inserting underscore '_' in batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740589#M231376</link>
      <description>&lt;P&gt;Describe "does not work". Not at all clear.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BTW reliance on Proc Import for any sort of production job is dangerous because you do not have much control over what happens. If this "import" involves any sort of text file you would be &lt;STRONG&gt;way&lt;/STRONG&gt; better off to write a data step to read the data and avoid any form of changing properties and have actual control over all of the variable names.&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:26:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740589#M231376</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-05-11T19:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to enable inserting underscore '_' in batch jobs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740594#M231381</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Check your option settings for validvarname, it's likely set to ANY when you run in batch. Setting it at the top of your program to V7 will override that and you should get the desired behaviour.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15279"&gt;@shoin&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;SAS 9.4, TS1M7 on WIN x64&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In BASE SAS, ROC IMPORT inserts a underscore if there is space in a variable name, for example, &lt;STRONG&gt;'end date'&lt;/STRONG&gt; after proc import will be &lt;STRONG&gt;'end_date'&lt;/STRONG&gt; (the single tick for emphasis).&amp;nbsp; If the job is scheduled using SAS schedule manager, OSS server, that does not work.&amp;nbsp; Is there an option, or a workaround?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance for your time&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Shoin&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 19:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-enable-inserting-underscore-in-batch-jobs/m-p/740594#M231381</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-05-11T19:41:26Z</dc:date>
    </item>
  </channel>
</rss>

