<?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: Bringing data into SAS using Datalines option in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616914#M180702</link>
    <description>&lt;P&gt;Posting the syntax on here;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CMC;
alpha = 0.05;
L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);
U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);
put L= U=;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Jan 2020 14:09:09 GMT</pubDate>
    <dc:creator>sks521</dc:creator>
    <dc:date>2020-01-13T14:09:09Z</dc:date>
    <item>
      <title>Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616906#M180697</link>
      <description>&lt;P&gt;Hi I want to bring some data into SAS using 'Datalines' option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example of the syntax is copied into programme window. Can someone tell what's wrong with the syntax and how can I correct it please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CMC;
input Study: $32	Location: $32	Sample 9.  Numbers_CCC 8.;
datalines
;

Akenroye    	US      	1415721  	125774
Batra       	Australia	1184        	 916
Berry2013   	US	        200656    	 95736
Berry2017   	US      	1850027  	980514
Blackburn   	US      	141709    	46764
Cecil   	        Europe  	7831633   	1722959
Dosa        	US	        251	                113
Edelson     	US      	241540848	410619
Feinstein   	US      	144385188	2887704
Phelan      	US      	193500000	10062000
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2020 13:53:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616906#M180697</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2020-01-13T13:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616910#M180699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277970"&gt;@sks521&lt;/a&gt;&amp;nbsp; Please notice the change in the input statement with Informats with a period(.) as suffix and not having an explicit informat to read numbers for variables sample and numbers_ccc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;input Study: $32.	Location: $32.	Sample   Numbers_CCC ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CMC;
input Study: $32.	Location: $32.	Sample   Numbers_CCC ;
datalines
;

Akenroye    	US      	1415721  	125774
Batra       	Australia	1184        	 916
Berry2013   	US	        200656    	 95736
Berry2017   	US      	1850027  	980514
Blackburn   	US      	141709    	46764
Cecil   	        Europe  	7831633   	1722959
Dosa        	US	        251	                113
Edelson     	US      	241540848	410619
Feinstein   	US      	144385188	2887704
Phelan      	US      	193500000	10062000
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2020 13:58:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616910#M180699</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-13T13:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616913#M180701</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This step brings the data in correctly but when I want to perform calculations involving 'Sample' and 'Numbers_CCC' variables for example in the code on here; it gives me this message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;145 data CMC;&lt;BR /&gt;146 alpha = 0.05;&lt;BR /&gt;147 L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);&lt;BR /&gt;148 U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);&lt;BR /&gt;149 put L= U=;&lt;BR /&gt;150 run;&lt;/P&gt;&lt;P&gt;NOTE: Variable Numbers_CCC is uninitialized.&lt;BR /&gt;NOTE: Variable Sample is uninitialized.&lt;BR /&gt;L=. U=.&lt;BR /&gt;NOTE: Missing values were generated as a result of performing an operation on missing values.&lt;BR /&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;1 at 147:7 1 at 147:9 1 at 147:35 1 at 147:47 1 at 148:5 1 at 148:36&lt;BR /&gt;1 at 148:46&lt;BR /&gt;NOTE: The data set WORK.CMC has 1 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616913#M180701</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2020-01-13T14:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616914#M180702</link>
      <description>&lt;P&gt;Posting the syntax on here;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CMC;
alpha = 0.05;
L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);
U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);
put L= U=;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:09:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616914#M180702</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2020-01-13T14:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616924#M180708</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277970"&gt;@sks521&lt;/a&gt;&amp;nbsp;&amp;nbsp;okay, So basically you are trying to do the following&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Read a set of raw datalines and create a SAS dataset&lt;/P&gt;
&lt;P&gt;2. Using the dataset created, do some manipulation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So 1. is complete now as the read and create part is done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For 2. You need a SET statement to read the dataset records that you created for manipulation and any more processing like&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; CMC_2&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;BR /&gt;set cmc;&lt;/PRE&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; CMC2&lt;SPAN class="token punctuation"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;set cmc;/*notice here*/
alpha &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;0.05&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
L &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;betainv&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt; alpha&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;Sample&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;Numbers_CCC&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;Numbers_CCC&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
U &lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;betainv&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt; alpha&lt;SPAN class="token operator"&gt;/&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;2&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;Numbers_CCC&lt;SPAN class="token operator"&gt;+&lt;/SPAN&gt;&lt;SPAN class="token number"&gt;1&lt;/SPAN&gt; &lt;SPAN class="token punctuation"&gt;,&lt;/SPAN&gt;Sample&lt;SPAN class="token operator"&gt;-&lt;/SPAN&gt;Numbers_CCC&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;put&lt;/SPAN&gt; L&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt; U&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:29:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616924#M180708</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-13T14:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616926#M180709</link>
      <description>&lt;P&gt;Thanks but it still doesn't perform any calculations. For example you could tell that I want to calculate upper and lower confidence limits for each study proportion but I get this message;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;151 data numeric;&lt;BR /&gt;152 set CMC;&lt;BR /&gt;153 alpha = 0.05;&lt;BR /&gt;154 L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);&lt;BR /&gt;155 U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);&lt;BR /&gt;156 put L= U=;&lt;BR /&gt;157 run;&lt;/P&gt;&lt;P&gt;L=. U=.&lt;BR /&gt;NOTE: Missing values were generated as a result of performing an operation on missing values.&lt;BR /&gt;Each place is given by: (Number of times) at (Line):(Column).&lt;BR /&gt;1 at 154:7 1 at 154:9 1 at 154:35 1 at 154:47 1 at 155:5 1 at 155:36&lt;BR /&gt;1 at 155:46&lt;BR /&gt;NOTE: There were 1 observations read from the data set WORK.CMC.&lt;BR /&gt;NOTE: The data set WORK.NUMERIC has 1 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:29:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616926#M180709</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2020-01-13T14:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616927#M180710</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277970"&gt;@sks521&lt;/a&gt;&amp;nbsp; Here is my test and the LOG report. Plz take a look&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CMC;
input Study: $32.	Location: $32.	Sample   Numbers_CCC ;
datalines
;

Akenroye    	US      	1415721  	125774
Batra       	Australia	1184        	 916
Berry2013   	US	        200656    	 95736
Berry2017   	US      	1850027  	980514
Blackburn   	US      	141709    	46764
Cecil   	        Europe  	7831633   	1722959
Dosa        	US	        251	                113
Edelson     	US      	241540848	410619
Feinstein   	US      	144385188	2887704
Phelan      	US      	193500000	10062000
;
run;

data CMC2;
set cmc;
alpha = 0.05;
L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);
U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);
put L= U=;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LOG:
1025  data CMC2;
1026  set cmc;
1027  alpha = 0.05;
1028  L = 1 - betainv(1 - alpha/2,Sample-Numbers_CCC+1,Numbers_CCC);
1029  U = betainv(1 - alpha/2,Numbers_CCC+1 ,Sample-Numbers_CCC);
1030  put L= U=;
1031  run;

L=0.0883727737 U=0.0893108111
L=0.7487263591 U=0.7972035916
L=0.4749274859 U=0.4793033005
L=0.5292803219 U=0.5307192491
L=0.3275519989 U=0.3324553819
L=0.2197098846 U=0.220290256
L=0.3875709568 U=0.5140174366
L=0.0016948068 U=0.0017052015
L=0.0199771721 U=0.0200228505
L=0.0519687208 U=0.0520312926
NOTE: There were 10 observations read from the data set WORK.CMC.
NOTE: The data set WORK.CMC2 has 10 observations and 7 variables.
NOTE: DATA statement used (Total process time):
      real time           0.04 seconds
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616927#M180710</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2020-01-13T14:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Bringing data into SAS using Datalines option</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616932#M180712</link>
      <description>&lt;P&gt;Working fine now. Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2020 14:40:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Bringing-data-into-SAS-using-Datalines-option/m-p/616932#M180712</guid>
      <dc:creator>sks521</dc:creator>
      <dc:date>2020-01-13T14:40:35Z</dc:date>
    </item>
  </channel>
</rss>

