<?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: Input Control data set for creating formats in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258315#M49728</link>
    <description>&lt;P&gt;Great, that answers the question! &amp;nbsp;Thanks a lot.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2016 18:25:13 GMT</pubDate>
    <dc:creator>evp000</dc:creator>
    <dc:date>2016-03-22T18:25:13Z</dc:date>
    <item>
      <title>Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258296#M49718</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I had a problem yesterday. I was trying to create both numeric and character formats from and input control data set. &amp;nbsp;I ended up having to do the numeric ones separate from the character ones. &amp;nbsp;The program gave me an error (&lt;SPAN&gt;ERR&lt;/SPAN&gt;&lt;SPAN&gt;OR: Start is greater than end: -. missing end)&lt;/SPAN&gt;&amp;nbsp;when the END variable existed and there was no value in it. &amp;nbsp;This happened when it wasn't a range, just one value in START, for character formats. &amp;nbsp;So the workaround was to have both START and END in the input control dataset for the numeric formats, and just START in the character formats. &amp;nbsp;Have any of you encountered this?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 17:51:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258296#M49718</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2016-03-22T17:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258302#M49721</link>
      <description>&lt;P&gt;Can you please post an example so that we can replicate the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:02:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258302#M49721</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-03-22T18:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258307#M49725</link>
      <description>&lt;P&gt;If you have both START and END in your data, and you want it to be treated as a single value rather than a range, just code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;end = start;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:09:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258307#M49725</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-22T18:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258310#M49726</link>
      <description>&lt;P&gt;Thanks for your resonses. I'll post an example shortly, but as for "end=start", how/where do I code that for an input control dataset when sometimes I have an END value, and sometimes I don't?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:11:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258310#M49726</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2016-03-22T18:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258314#M49727</link>
      <description>&lt;P&gt;Where you add it ... depends on how you are constructing the CNTLIN= data set.&amp;nbsp; You might have to modify the statement to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if end = '&amp;nbsp; '&amp;nbsp; then end = start;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But this sort of a statement likely becomes part of the creation of the CNTLIN= data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have a more complex situation where you are concatenating a series of data sets to form one large CNTLIN= data set, you might use in= variables:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data all_formats;&lt;/P&gt;
&lt;P&gt;set character_formats (in=in1) numeric_formats (in=in2);&lt;/P&gt;
&lt;P&gt;if in2 then end=start;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But the bottom line is that when you have both START and END in your data set, you need to treat them as if they are forming a range.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258314#M49727</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-22T18:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Input Control data set for creating formats</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258315#M49728</link>
      <description>&lt;P&gt;Great, that answers the question! &amp;nbsp;Thanks a lot.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2016 18:25:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-Control-data-set-for-creating-formats/m-p/258315#M49728</guid>
      <dc:creator>evp000</dc:creator>
      <dc:date>2016-03-22T18:25:13Z</dc:date>
    </item>
  </channel>
</rss>

