<?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: Retaining variables from specifications in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879393#M347408</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438037"&gt;@ajaykumar0901&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Actually I was asked in an interview, You can consider any example which&lt;BR /&gt;is in excel.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would assume that the Excel file was used as metadata.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps it had the list of variables that should exist and the question was how to use it to define a dataset that met the specifications.&amp;nbsp; For example the file might have had a variable named NAME that had the name to use for the variable and LABEL that had the label to attach to the variable and FORMAT that had the format to attach to the variable.&amp;nbsp; It probably should also have a TYPE and LENGTH value so you set the variable type. Or perhaps the LENGTH metadata is used to specify both by adding a $ before the length of character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps it had other specifications they want implemented. Perhaps edit checks that should be preformed for certain variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jun 2023 15:58:47 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-06-06T15:58:47Z</dc:date>
    <item>
      <title>Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879355#M347399</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I was trying to retain the variables from the Specifications which is in XLSX sheet.&lt;/P&gt;&lt;P&gt;Can you please give the hint how to retain the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 14:32:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879355#M347399</guid>
      <dc:creator>ajaykumar0901</dc:creator>
      <dc:date>2023-06-06T14:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879364#M347402</link>
      <description>&lt;P&gt;More detail is needed. Explain. Show us the data. How are you getting this Excel file into SAS?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 14:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879364#M347402</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-06T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879367#M347403</link>
      <description>Actually I was asked in an interview, You can consider any example which&lt;BR /&gt;is in excel.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 14:53:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879367#M347403</guid>
      <dc:creator>ajaykumar0901</dc:creator>
      <dc:date>2023-06-06T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879379#M347405</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438037"&gt;@ajaykumar0901&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I was trying to retain the variables from the Specifications which is in XLSX sheet.&lt;/P&gt;
&lt;P&gt;Can you please give the hint how to retain the variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I have no idea what "specifications" means in this context.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You retain variables using the RETAIN statement.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879379#M347405</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-06-06T15:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879393#M347408</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438037"&gt;@ajaykumar0901&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Actually I was asked in an interview, You can consider any example which&lt;BR /&gt;is in excel.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I would assume that the Excel file was used as metadata.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So perhaps it had the list of variables that should exist and the question was how to use it to define a dataset that met the specifications.&amp;nbsp; For example the file might have had a variable named NAME that had the name to use for the variable and LABEL that had the label to attach to the variable and FORMAT that had the format to attach to the variable.&amp;nbsp; It probably should also have a TYPE and LENGTH value so you set the variable type. Or perhaps the LENGTH metadata is used to specify both by adding a $ before the length of character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or perhaps it had other specifications they want implemented. Perhaps edit checks that should be preformed for certain variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 15:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879393#M347408</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-06-06T15:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879395#M347409</link>
      <description>Hi Team,&lt;BR /&gt;&lt;BR /&gt;Please find the attachment of excel. Now I have to read the excel file and&lt;BR /&gt;the order to be maintained the same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:24:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879395#M347409</guid>
      <dc:creator>ajaykumar0901</dc:creator>
      <dc:date>2023-06-06T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879397#M347410</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/438037"&gt;@ajaykumar0901&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Team,&lt;BR /&gt;&lt;BR /&gt;Please find the attachment of excel. Now I have to read the excel file and&lt;BR /&gt;the order to be maintained the same.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If you attached something it didn't take.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is supposed to relate to SAS data sets after reading then "order" may be problematic depending on how that spreadsheet is organized. If the rows of the spreadsheet are supposed to describe variables then basically that is not the "order" of variables in a data set as SAS data set variables are from "columns".&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:31:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879397#M347410</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-06-06T16:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retaining variables from specifications</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879402#M347412</link>
      <description>&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/p0t2ac0tfzcgbjn112mu96hkgg9o.htm" target="_self"&gt;Retain in SAS&lt;/A&gt; is a type of functionality but it can also be used in laymans terms, e.g keep only these variables.&lt;/P&gt;
&lt;P&gt;You'll first want to ensure you have the correct understanding of the question. Can you clarify what type of functionality you're trying to achieve here?&lt;/P&gt;
&lt;P&gt;The exact wording of the question is likely important.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jun 2023 16:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Retaining-variables-from-specifications/m-p/879402#M347412</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-06-06T16:44:28Z</dc:date>
    </item>
  </channel>
</rss>

