<?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 Need Data Step Solution in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491867#M129123</link>
    <description>&lt;P&gt;&amp;nbsp;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some text&amp;nbsp; Like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q1. Which among the following are cor-&lt;BR /&gt;rect about the provisions of the Govern-&lt;BR /&gt;ment of India Act, 1858?&lt;BR /&gt;(a) It ended the system of double government by abol-&lt;BR /&gt;ishing the Board of Control and Court of Directors&lt;BR /&gt;(b) It also provided for the establishment of new legis-&lt;BR /&gt;lative councils for Bengal&lt;BR /&gt;(c) It reconstituted the Council of the Governor-General&lt;BR /&gt;(d) The number of additional member in the Provincial&lt;BR /&gt;Legislative Councils was also increased&lt;BR /&gt;Ans: (a)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your support how to show the data below format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Question&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;Ans&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Which among the following are cor-&lt;BR /&gt;rect about the provisions of the Govern-&lt;BR /&gt;ment of India Act, 1858?&lt;/TD&gt;&lt;TD&gt;It ended the system of double government by abol-&lt;BR /&gt;ishing the Board of Control and Court of Directors&lt;/TD&gt;&lt;TD&gt;It also provided for the establishment of new legis-&lt;BR /&gt;lative councils for Bengal&lt;/TD&gt;&lt;TD&gt;It reconstituted the Council of the Governor-General&lt;/TD&gt;&lt;TD&gt;The number of additional member in the Provincial Legislative Councils was also increased&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 02 Sep 2018 04:54:25 GMT</pubDate>
    <dc:creator>amitthakur</dc:creator>
    <dc:date>2018-09-02T04:54:25Z</dc:date>
    <item>
      <title>Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491867#M129123</link>
      <description>&lt;P&gt;&amp;nbsp;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some text&amp;nbsp; Like that.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Q1. Which among the following are cor-&lt;BR /&gt;rect about the provisions of the Govern-&lt;BR /&gt;ment of India Act, 1858?&lt;BR /&gt;(a) It ended the system of double government by abol-&lt;BR /&gt;ishing the Board of Control and Court of Directors&lt;BR /&gt;(b) It also provided for the establishment of new legis-&lt;BR /&gt;lative councils for Bengal&lt;BR /&gt;(c) It reconstituted the Council of the Governor-General&lt;BR /&gt;(d) The number of additional member in the Provincial&lt;BR /&gt;Legislative Councils was also increased&lt;BR /&gt;Ans: (a)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need your support how to show the data below format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Question&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;TD&gt;B&lt;/TD&gt;&lt;TD&gt;C&lt;/TD&gt;&lt;TD&gt;D&lt;/TD&gt;&lt;TD&gt;Ans&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Which among the following are cor-&lt;BR /&gt;rect about the provisions of the Govern-&lt;BR /&gt;ment of India Act, 1858?&lt;/TD&gt;&lt;TD&gt;It ended the system of double government by abol-&lt;BR /&gt;ishing the Board of Control and Court of Directors&lt;/TD&gt;&lt;TD&gt;It also provided for the establishment of new legis-&lt;BR /&gt;lative councils for Bengal&lt;/TD&gt;&lt;TD&gt;It reconstituted the Council of the Governor-General&lt;/TD&gt;&lt;TD&gt;The number of additional member in the Provincial Legislative Councils was also increased&lt;/TD&gt;&lt;TD&gt;A&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 04:54:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491867#M129123</guid>
      <dc:creator>amitthakur</dc:creator>
      <dc:date>2018-09-02T04:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491870#M129126</link>
      <description>Hi:&lt;BR /&gt;  It is nearly impossible to help you without knowing what the original data structure looks like. Where is this data stored? How is it stored? What are the column names. Does your data have a row for each question or does your data have multiple rows for the question and the possible answers.&lt;BR /&gt;&lt;BR /&gt;Without more information about the data, it is nearly impossible to help.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Sun, 02 Sep 2018 05:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491870#M129126</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-09-02T05:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491871#M129127</link>
      <description>&lt;P&gt;store in text file in my systems&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 05:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491871#M129127</guid>
      <dc:creator>amitthakur</dc:creator>
      <dc:date>2018-09-02T05:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491872#M129128</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.question;&lt;BR /&gt;infile cards dlm= '? ()';&lt;BR /&gt;input Q $optiona $ optionob $ optionc $optiond $ correctans;&lt;/P&gt;&lt;P&gt;cards;&lt;BR /&gt;Q1. Which among the following are cor-&lt;BR /&gt;rect about the provisions of the Govern-&lt;BR /&gt;ment of India Act, 1858?&lt;BR /&gt;(a) It ended the system of double government by abol-&lt;BR /&gt;ishing the Board of Control and Court of Directors&lt;BR /&gt;(b) It also provided for the establishment of new legis-&lt;BR /&gt;lative councils for Bengal&lt;BR /&gt;(c) It reconstituted the Council of the Governor-General&lt;BR /&gt;(d) The number of additional member in the Provincial&lt;BR /&gt;Legislative Councils was also increased&lt;BR /&gt;Ans: (a)&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Sep 2018 05:36:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491872#M129128</guid>
      <dc:creator>amitthakur</dc:creator>
      <dc:date>2018-09-02T05:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491874#M129130</link>
      <description>this is original data stricture Q is Question, (A), (B) (C) (D) is options and Ans is (a)&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Sep 2018 05:49:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491874#M129130</guid>
      <dc:creator>amitthakur</dc:creator>
      <dc:date>2018-09-02T05:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491882#M129135</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options compress=yes;
data have;
infile 'c:\temp\test.txt' lrecl=2000;
length temp $ 32767 question a b c d ans $ 2000;
retain temp question a b c d;
input;
temp=cats(temp,_infile_);
if _infile_ =: '(a)' then do;
question=substr(temp,1,find(temp,'(a)')-1);
temp=substr(temp,find(temp,'(a)'));
end;

if _infile_ =: '(b)' then do;
a=substr(temp,1,find(temp,'(b)')-1);
temp=substr(temp,find(temp,'(b)'));
end;

if _infile_ =: '(c)' then do;
b=substr(temp,1,find(temp,'(c)')-1);
temp=substr(temp,find(temp,'(c)'));
end;

if _infile_ =: '(d)' then do;
c=substr(temp,1,find(temp,'(d)')-1);
temp=substr(temp,find(temp,'(d)'));
end;

if _infile_ =: 'Ans:' then do;
d=substr(temp,1,find(temp,'Ans:')-1);
ans=substr(temp,find(temp,'Ans:'));
output;
end;
drop temp;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 02 Sep 2018 11:13:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491882#M129135</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2018-09-02T11:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need Data Step Solution</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491915#M129164</link>
      <description>&lt;P&gt;For files like these the full pattern is very important.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it guaranteed to follow that structure? You can't have short answer or fill in the blank type questions? You always have options A, B, C, D? No chance of just A, B, C or ABCDE?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sun, 02 Sep 2018 17:48:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Need-Data-Step-Solution/m-p/491915#M129164</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-09-02T17:48:15Z</dc:date>
    </item>
  </channel>
</rss>

