<?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 data source and variable name stored in sas dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841179#M332587</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Your help is appreciated if You can!&lt;/P&gt;&lt;P&gt;I need to create dataset, all information about my data source and variables to be used for each single raw are stored in&amp;nbsp; a sas dataset, lets say with the below structure&lt;/P&gt;&lt;P&gt;data source_info;&lt;BR /&gt;input raw_name $ var_param $ var_paramcd $ var_aval $;&lt;BR /&gt;datalines;&lt;BR /&gt;raw1 var1_1 var1_2 var1_3&lt;BR /&gt;raw2 var2_1 var2_2 var2_3&lt;BR /&gt;raw3 var3_1 var3_2 var3_3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to go through the file verticaly and for each record(raw data) output the data for parameter name, parameter code and AVAL, based on the VARx_y.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jho&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2022 16:05:05 GMT</pubDate>
    <dc:creator>Jho1</dc:creator>
    <dc:date>2022-10-27T16:05:05Z</dc:date>
    <item>
      <title>data source and variable name stored in sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841179#M332587</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Your help is appreciated if You can!&lt;/P&gt;&lt;P&gt;I need to create dataset, all information about my data source and variables to be used for each single raw are stored in&amp;nbsp; a sas dataset, lets say with the below structure&lt;/P&gt;&lt;P&gt;data source_info;&lt;BR /&gt;input raw_name $ var_param $ var_paramcd $ var_aval $;&lt;BR /&gt;datalines;&lt;BR /&gt;raw1 var1_1 var1_2 var1_3&lt;BR /&gt;raw2 var2_1 var2_2 var2_3&lt;BR /&gt;raw3 var3_1 var3_2 var3_3&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I need to go through the file verticaly and for each record(raw data) output the data for parameter name, parameter code and AVAL, based on the VARx_y.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Jho&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841179#M332587</guid>
      <dc:creator>Jho1</dc:creator>
      <dc:date>2022-10-27T16:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: data source and variable name stored in sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841183#M332589</link>
      <description>&lt;P&gt;I'm really confused by your description. Could you please show us a sample output that matches the input data you show?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:40:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841183#M332589</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-10-27T16:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: data source and variable name stored in sas dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841185#M332591</link>
      <description>&lt;P&gt;Actual values and working through and example would be useful.&lt;/P&gt;
&lt;P&gt;I can't tell what you expect for output.&lt;/P&gt;
&lt;P&gt;How do you expect to provide the "Varx_y" value?&lt;/P&gt;
&lt;P&gt;Did you mean to say " for each record(raw_name)" instead of " for each record(raw data)"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please be consistent about discussing values in terms of variable names. We have to guess what you mean when provide variable names that do not match terms discussed like " parameter name, parameter code and AVAL" when there are no variable actually with those names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe you want something like this:&lt;/P&gt;
&lt;PRE&gt;Data want;
   set source_info;
   where raw_name ='raw1';
run;&lt;/PRE&gt;
&lt;P&gt;Remember that computers are pretty literal and if your spelling of 'raw1' is different in the actual data set, such as "Raw1" or "raw 1" or "raw_1" then the where condition might not find what you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2022 16:46:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-source-and-variable-name-stored-in-sas-dataset/m-p/841185#M332591</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-27T16:46:34Z</dc:date>
    </item>
  </channel>
</rss>

