<?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: Help on SAS Format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798955#M33109</link>
    <description>&lt;P&gt;you seem like you don't listen. people have tried to help you. we gave you multiple solutions and you still ignore our advice &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 27 Feb 2022 11:45:34 GMT</pubDate>
    <dc:creator>tarheel13</dc:creator>
    <dc:date>2022-02-27T11:45:34Z</dc:date>
    <item>
      <title>Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798827#M33090</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am facing this issue. Please help me with the error.&amp;nbsp; I have a dataset named continent with 2 variables-continentid and continent name. I want to create a control input dataset named continent and store it in myfmt catalog&amp;nbsp; and use the format on continentid var.name of the format is continent&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="archita_0-1645874760691.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68961i6F42AB9A025AF333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="archita_0-1645874760691.png" alt="archita_0-1645874760691.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 11:30:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798827#M33090</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-26T11:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798829#M33091</link>
      <description>&lt;P&gt;Please post logs as text using this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For SAS code, use the "little running man" right next to it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You assign constant character values to variables start and label; I guess that you wanted to assign the values contained in the variables continent_id and continent_name, so remove the quotes around the variables names.&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 11:35:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798829#M33091</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-26T11:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798875#M33092</link>
      <description>&lt;P&gt;is continent id char or numeric?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 17:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798875#M33092</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-26T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798880#M33095</link>
      <description>&lt;P&gt;The CNTLIN data set, continent, was created incorrectly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the start and label, it assigns only one value which will always map the VALUE continent_ID to the continent_name. I think you likely meant to refer to those as variables not constants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Remove the quotes around the variables.&amp;nbsp;&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;FYI - if you post a picture of your code we'll have to explain to you how to modify it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you post the actual code, we can show the suggested changes. Post your code and log directly in the future, not an image.&amp;nbsp;&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/130051"&gt;@archita&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I am facing this issue. Please help me with the error.&amp;nbsp; I have a dataset named continent with 2 variables-continentid and continent name. I want to create a control input dataset named continent and store it in myfmt catalog&amp;nbsp; and use the format on continentid var.name of the format is continent&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="archita_0-1645874760691.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/68961i6F42AB9A025AF333/image-size/medium?v=v2&amp;amp;px=400" role="button" title="archita_0-1645874760691.png" alt="archita_0-1645874760691.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 20:04:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798880#M33095</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-26T20:04:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798884#M33096</link>
      <description>Hi continentid is numeric</description>
      <pubDate>Sat, 26 Feb 2022 19:27:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798884#M33096</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-26T19:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798885#M33097</link>
      <description>&lt;P&gt;hmm so why did you use $ then if it's a numeric variable?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 19:33:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798885#M33097</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-26T19:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798891#M33100</link>
      <description>&lt;P&gt;contentID is not used in your format as shown.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See my previous post.&amp;nbsp;&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/130051"&gt;@archita&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi continentid is numeric&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 20:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798891#M33100</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-26T20:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798892#M33101</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data continent;
	length continentName $50;
	infile datalines truncover dlm='|';
	input continent_id continentName $;
	datalines;
	1|Asia
	2|Africa
	3|N. America
	4|S. America
	5|Antarctica
	6|Europe
	7|Australia
	;
run;

proc print data= continent;
run;

data outfmt(keep=start label fmtname);
	set continent(rename=(continent_id=start continentname=label));
	fmtname='continent';
run;

proc format library=work cntlin=outfmt;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This should do it. next time post sample data as datalines.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 20:10:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798892#M33101</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-26T20:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798944#M33105</link>
      <description>Hi , Thank you for the help.I am still getting the same error.&lt;BR /&gt;This is the error:-&lt;BR /&gt;27 proc format library=blib.myfmt cntlin=continent;&lt;BR /&gt;ERROR: For format CONTINENT, this range is repeated, or values overlap: .-..&lt;BR /&gt;28 quit;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 5 observations read from the data set WORK.CONTINENT.&lt;BR /&gt;NOTE: PROCEDURE FORMAT used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 27 Feb 2022 10:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798944#M33105</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-27T10:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798945#M33106</link>
      <description>&lt;P&gt;Post the &lt;EM&gt;complete&lt;/EM&gt; log of the step that creates the continent dataset. Use this button to post the log (&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;do NOT skip this&lt;/FONT&gt;&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 10:50:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798945#M33106</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-27T10:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798946#M33107</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;data continent;
set blib.continent;
keep fmtname start label;
fmtname='CONTINENT';
start='Continent_ID';
label='Continent_Name';
run;
proc format library=blib.myfmt cntlin=continent;
select CONTINENT;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="lia-align-left"&gt;This the code I am running currently still getting same error&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798946#M33107</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-27T11:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798953#M33108</link>
      <description>&lt;P&gt;Against &lt;U&gt;&lt;EM&gt;repeated advice from multiple people&lt;/EM&gt;&lt;/U&gt;, you still set start and label to constant values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;start='Continent_ID';
label='Continent_Name';&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Change this to:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;start = Continent_ID;
label = Continent_Name;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:42:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798953#M33108</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-02-27T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798955#M33109</link>
      <description>&lt;P&gt;you seem like you don't listen. people have tried to help you. we gave you multiple solutions and you still ignore our advice &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:45:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798955#M33109</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-27T11:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798956#M33110</link>
      <description>&lt;P&gt;once again, you are not listening. we told you what you have to change in your code. the reason you are getting errors is because you have not implemented the change...&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 11:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798956#M33110</guid>
      <dc:creator>tarheel13</dc:creator>
      <dc:date>2022-02-27T11:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798959#M33111</link>
      <description>Hi,I am sorry for the inconvenience, I missed the code so was not getting the results dint do deliberately. now its working.. thank you so much.</description>
      <pubDate>Sun, 27 Feb 2022 12:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798959#M33111</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-27T12:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798960#M33112</link>
      <description>Hi, I dint do it deliberately , I missed some part . Sorry for the inconvenience. The code is now working for me. Thanks a lot.</description>
      <pubDate>Sun, 27 Feb 2022 12:04:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798960#M33112</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-27T12:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help on SAS Format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798961#M33113</link>
      <description>I am sorry , dint do it deliberately ,missed some parts of code. THe code is now working . Thanks a lot.</description>
      <pubDate>Sun, 27 Feb 2022 12:05:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Help-on-SAS-Format/m-p/798961#M33113</guid>
      <dc:creator>archita</dc:creator>
      <dc:date>2022-02-27T12:05:45Z</dc:date>
    </item>
  </channel>
</rss>

