<?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 SET SDTM Tamplate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468031#M285388</link>
    <description>&lt;P&gt;I have a dataset with 5 variables including VNUMBER VNAME VLABEL VTYPE and VLENGTH. I want to set a table has all variables with the name from the VNAME value, label from VLABEL and length from VLENGTH. If VTYPE equal to 1, the variable is numeric. If VTYPE equal to 2, the variable is character. Here is the original dataset. How&amp;nbsp;should program it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jun 2018 12:54:25 GMT</pubDate>
    <dc:creator>anchensun</dc:creator>
    <dc:date>2018-06-06T12:54:25Z</dc:date>
    <item>
      <title>SET SDTM Tamplate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468031#M285388</link>
      <description>&lt;P&gt;I have a dataset with 5 variables including VNUMBER VNAME VLABEL VTYPE and VLENGTH. I want to set a table has all variables with the name from the VNAME value, label from VLABEL and length from VLENGTH. If VTYPE equal to 1, the variable is numeric. If VTYPE equal to 2, the variable is character. Here is the original dataset. How&amp;nbsp;should program it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468031#M285388</guid>
      <dc:creator>anchensun</dc:creator>
      <dc:date>2018-06-06T12:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: SET SDTM Tamplate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468032#M285389</link>
      <description>&lt;P&gt;First of all, never supply example data in a picture. Unless you expect everyone else here to tediously type text from a picture.&lt;/P&gt;
&lt;P&gt;See my footnotes for how to convert a dataset to data step code and how to post the resulting code so that it can be reliably run with copy/paste and submit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your question, look into call execute.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2018 12:49:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468032#M285389</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-06-06T12:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: SET SDTM Tamplate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468043#M285390</link>
      <description>&lt;P&gt;Not going to do it for you, but to start:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set meta end=last;
  if _n_=1 then call execute('data want;');
  if vtype=1 then call execute(cat(' attrib ',strip(vname),';'));
  else call execute('...');
  if last then call execute(';run;');
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Jun 2018 13:36:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SET-SDTM-Tamplate/m-p/468043#M285390</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-06T13:36:00Z</dc:date>
    </item>
  </channel>
</rss>

