<?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: Problem with SAS Studio reading data from DATALINES in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486686#M6040</link>
    <description>&lt;P&gt;Where did you get the program?&lt;/P&gt;
&lt;P&gt;It looks like your program is not using normal spaces in the places that look like spaces on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice how the INPUT statement echoed in the log appears to reference just one variable name?&lt;BR /&gt;And how the notes about invalid data appear to be reading the entire line into a single variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it might help to copy the code lines into Notepad or other text editor and fix those space issues.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Aug 2018 14:31:56 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-08-14T14:31:56Z</dc:date>
    <item>
      <title>Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486583#M6031</link>
      <description>&lt;P&gt;Hello everyone!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I am having issues with SAS Studio reading data into the work library using the DATALINES statement.&lt;/P&gt;&lt;P&gt;The dataset I am using have been copied from an MS-Excel document and pasted into the coding window for SAS Studio.&lt;/P&gt;&lt;P&gt;Below are screenshots of part of my code, the log window and the result window.&lt;/P&gt;&lt;P&gt;I will be sincerely grateful if someone could help figure out what exactly is going on.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Dami.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code" style="width: 569px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22427i436E1A7273025962/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.JPG" alt="code" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;code&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log (2)" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22426i70F05C1898C7204F/image-size/large?v=v2&amp;amp;px=999" role="button" title="log 2.JPG" alt="log (2)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;log (2)&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="log (1)" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22428i0CF0BF8D15417908/image-size/large?v=v2&amp;amp;px=999" role="button" title="log.JPG" alt="log (1)" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;log (1)&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output window" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22425i9E2E98AC82648E6E/image-size/large?v=v2&amp;amp;px=999" role="button" title="output.JPG" alt="output window" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;output window&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 08:49:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486583#M6031</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T08:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486587#M6032</link>
      <description>&lt;P&gt;You should make a minimal working example of your problem that people can run. That way it is much easier to help you.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:22:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486587#M6032</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2018-08-14T09:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486598#M6033</link>
      <description>&lt;P&gt;Screenshots of of very little help, for the invalid data, have you used tab as the delimiter between the values?&amp;nbsp; You may have to set&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;infile datalines dlm='09'x;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;As for the ods error, it looks like, as you haven't given a path for the file, it defaults to its install location, which you can't write to.&amp;nbsp; Write to somewhere you do have write access:&lt;/P&gt;
&lt;PRE&gt;ods html body='/somewhere/you/have/write/access/ttest.htm';
   &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 09:56:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486598#M6033</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T09:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486621#M6035</link>
      <description>&lt;P&gt;thanks for your responses. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt; and &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my sincere apologies for not including the code earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here it goes:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT;
VALUE AGEE 		1 =  "YOUNG"
				2 = "OLD";
VALUE STATEE 	0 =  "M0"
				1 = "M1";
				RUN;
DATA RAWCT;
INPUT Age	State	Plate	fcrl5	fcrls	fcrla	fcrl1	fcrl6	fcrlb	fcgrt	meanHKG;
datalines;
1	0	1	28.35	33.5	28.74	24.68	29.22	32.02	27.01	21.41
1	0	2	33.7	32.3	32.45	24.62	35	35	26.93	20.79666667
1	0	3	28.59	31.24	32.13	24.68	33.37	30.89	25.85	19.49333333
1	0	4	33.11	35	32.99	26.3	35	34.38	28.39	21.52666667
1	0	5	.	.	.	.	.	.	.	.
1	1	1	29.06	35	29.82	25.28	31.22	33.65	27.09	20.03333333
1	1	2	32.79	35	31.96	25.71	35	34.54	26.03	20.03
1	1	3	27.07	35	33.09	26.71	35	31.99	27.01	18.99666667
1	1	4	31.79	35	27.06	27.83	34.39	33.24	28.7	20.86666667
1	1	5	29.64	35	30.61	28.01	31.85	32.68	31.01	21.14666667
2	0	1	29.21	30.38	30.35	24.83	32.06	33.29	25.31	20.31333333
2	0	2	32.39	29.53	29.87	23.89	35	35	24.85	19.71666667
2	0	3	26.27	31.48	30.63	24.97	32.8	31	25.85	19.99666667
2	0	4	31.35	35	32.85	25.32	32.46	32.44	28.22	21.15
2	0	5	29.6	35	30.22	25.67	31.7	31.35	27.78	21.19666667
2	1	1	28.11	35	28.99	27.74	29.99	32.89	28.05	20.34
2	1	2	30.64	35	32.6	27.16	35	34.18	26.7	20.01
2	1	3	26.68	35	30.7	27.28	31.48	31.65	27.34	20.06333333
2	1	4	30.53	35	25.21	27.9	32.58	32.09	28.76	21.01333333
2	1	5	28.29	35	29.34	27.73	29.99	31.29	28.89	20.67
;
run;
DATA NORMALISEDCT;
SET RAWCT;
	ARRAY RAWCT(11) Age	State	Plate	fcrl5	fcrls	fcrla	fcrl1	fcrl6	fcrlb	fcgrt	meanHKG;
	ARRAY DCT(11)	Age	State	Plate	fcrl5	fcrls	fcrla	fcrl1	fcrl6	fcrlb	fcgrt	meanHKG;
	DO I = 4 TO 11;
 		DCT(I) = MEANHKG - RAWCT(I);
 		DROP I MEANHKG;
	END;
RUN;
ODS HTML;
TITLE1 "DELTA CT COMPUTATION FOR TARGET GENES";
TITLE2 "DCT =  CT OF HKG -  CT OF TARGET";
PROC PRINT DATA = NORMALISEDCT NOOBS;
FORMAT AGE AGEE. STATE STATEE.;
RUN; 
ODS HTML CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;There are about 75 variables in my original dataset but i have shortened it for the sake of readability.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 11:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486621#M6035</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T11:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486626#M6036</link>
      <description>&lt;P&gt;Look like you got some hidden characters when you copied from Excel. I typed the first 2 lines of the datalines by hand, and this works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA RAWCT;
INPUT Age State Plate fcrl5 fcrls fcrla fcrl1 fcrl6 fcrlb fcgrt meanHKG;
datalines;
1 1 2 33.7  32.3 32.45 24.62 35 35 26.93 20.79666667
1 0 1 28.35 33.5 28.74 24.68 29.22 32.02 27.01 21.41
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I would suggest the you import the excel sheet instead of copying data into sas.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486626#M6036</guid>
      <dc:creator>rudfaden</dc:creator>
      <dc:date>2018-08-14T12:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486641#M6037</link>
      <description>&lt;P&gt;I would agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt;, the data imports fine for me as well.&amp;nbsp; I wouldn't however import an Excel file.&amp;nbsp; SAve the file to CSV, then use a datastep to read the csv in, specifying informats and lengths and such like.&amp;nbsp; Proc import + Excel = garbage data.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 12:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486641#M6037</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-08-14T12:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486686#M6040</link>
      <description>&lt;P&gt;Where did you get the program?&lt;/P&gt;
&lt;P&gt;It looks like your program is not using normal spaces in the places that look like spaces on the screen.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Notice how the INPUT statement echoed in the log appears to reference just one variable name?&lt;BR /&gt;And how the notes about invalid data appear to be reading the entire line into a single variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it might help to copy the code lines into Notepad or other text editor and fix those space issues.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:31:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486686#M6040</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-08-14T14:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486738#M6041</link>
      <description>&lt;P&gt;As others have noted, when copy/pasting from Excel to the DATA step, the data are separated by special tab characters instead of spaces, which are causing the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another remedy to the issue is to change your SAS Studio preferences to substitute tabs with spaces.&amp;nbsp; Depending on which version you are using (this screenshot is from version 3.71), go to Preferences --&amp;gt; Editor --&amp;gt; Check the "Substitute spaces for tabs" option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spacesTabs.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22446iABFE298B41FD9BD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="spacesTabs.png" alt="spacesTabs.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then, if you copy/paste the data back into the editor, the tabs will now display as spaces and the data successfully imported when I tried it.&amp;nbsp; If you still have issues, then please post back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 16:05:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486738#M6041</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2018-08-14T16:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486803#M6042</link>
      <description>&lt;P&gt;Apparently, you are absolutely correct.&lt;BR /&gt;IMPORT step did the job of reading in the dataset as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt;&amp;nbsp;suggested, but i got the following in the LOG window:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;81 FILENAME REFFILE '/folders/myfolders/test.xlsx';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;82&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;83 PROC IMPORT DATAFILE=REFFILE&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;84 DBMS=XLSX&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;85 OUT=WORK.rawct;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;86 GETNAMES=YES;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;87 RUN;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;options MSGLEVEL=I.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The import data set has 20 observations and 75 variables.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: WORK.RAWCT data set was successfully created.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.07 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;cpu time 0.05 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;PRE class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;And in the end...it meant I could not run as simple as a PROC MEANS step on the variables in the dataset&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:05:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486803#M6042</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T20:05:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486814#M6043</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159490"&gt;@BrianGaines&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;As others have noted, when copy/pasting from Excel to the DATA step, the data are separated by special tab characters instead of spaces, which are causing the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another remedy to the issue is to change your SAS Studio preferences to substitute tabs with spaces.&amp;nbsp; Depending on which version you are using (this screenshot is from version 3.71), go to Preferences --&amp;gt; Editor --&amp;gt; Check the "Substitute spaces for tabs" option:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="spacesTabs.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/22446iABFE298B41FD9BD1/image-size/large?v=v2&amp;amp;px=999" role="button" title="spacesTabs.png" alt="spacesTabs.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then, if you copy/paste the data back into the editor, the tabs will now display as spaces and the data successfully imported when I tried it.&amp;nbsp; If you still have issues, then please post back.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I have done as you have explained in the attached screenshot.&lt;BR /&gt;However, this is what i get when in the LOG window:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 /* Generated Code (IMPORT) */&lt;BR /&gt;74 /* Source File: test.xlsx */&lt;BR /&gt;75 /* Source Path: /folders/myfolders */&lt;BR /&gt;76 /* Code generated on: 14/08/2018 22:10 */&lt;BR /&gt;77&lt;BR /&gt;78 %web_drop_table(WORK.rawct);&lt;BR /&gt;79&lt;BR /&gt;80&lt;BR /&gt;81 FILENAME REFFILE '/folders/myfolders/test.xlsx';&lt;BR /&gt;82&lt;BR /&gt;83 PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;84 DBMS=XLSX&lt;BR /&gt;85 OUT=WORK.rawct;&lt;BR /&gt;86 GETNAMES=YES;&lt;BR /&gt;87 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: One or more variables were converted because the data type is not supported by the V9 engine. For more details, run with&lt;BR /&gt;options MSGLEVEL=I.&lt;BR /&gt;NOTE: The import data set has 20 observations and 75 variables.&lt;BR /&gt;NOTE: WORK.RAWCT data set was successfully created.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 0.29 seconds&lt;BR /&gt;cpu time 0.20 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;88&lt;BR /&gt;89 PROC CONTENTS DATA=WORK.rawct; RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 1.47 seconds&lt;BR /&gt;cpu time 1.45 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;90&lt;BR /&gt;91&lt;BR /&gt;92 %web_open_table(WORK.rawct);&lt;BR /&gt;93&lt;BR /&gt;94 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then when i run the following test code....&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;proc sort data = work.rawct out = sorted;
by age state plate;
run;
proc print data = sorted;
run;

proc means data = sorted mean stddev stderr;
var fcrl5 fcrls fcgr4;
run;&lt;/PRE&gt;&lt;P&gt;i get the following in the LOG window:&lt;BR /&gt;&lt;BR /&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 proc means data = sorted mean stddev stderr;&lt;BR /&gt;74 var fcrl5 fcrls fcgr4;&lt;BR /&gt;ERROR: Variable fcrl5 in list does not match type prescribed for this list.&lt;BR /&gt;ERROR: Variable fcrls in list does not match type prescribed for this list.&lt;BR /&gt;ERROR: Variable fcgr4 in list does not match type prescribed for this list.&lt;BR /&gt;75 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE MEANS used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;76&lt;BR /&gt;77 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;90&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486814#M6043</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486822#M6044</link>
      <description>&lt;P&gt;My suggested fix pertained to being able to copy/paste data from an Excel file into the SAS Studio editor to be used with DATALINES.&amp;nbsp; However, in the code you provided, you are using PROC IMPORT to import the Excel file directly.&amp;nbsp; So my suggestion will not help with that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After selecting the "&lt;SPAN&gt;Substitute spaces for tabs" option, did you try to use the data step to to import the data?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:27:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486822#M6044</guid>
      <dc:creator>BrianGaines</dc:creator>
      <dc:date>2018-08-14T20:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486827#M6045</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I would agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/117666"&gt;@rudfaden&lt;/a&gt;, the data imports fine for me as well.&amp;nbsp; I wouldn't however import an Excel file.&amp;nbsp; SAve the file to CSV, then use a datastep to read the csv in, specifying informats and lengths and such like.&amp;nbsp; Proc import + Excel = garbage data.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you so much&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;!!!&lt;/P&gt;&lt;P&gt;That worked flawlessly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saved the original file in CSV format and imported the dataset into SAS Studio it worked!.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following from the LOG window indicates that SAS did the job of specifying informats for the dataset.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;72&lt;BR /&gt;73 /* Generated Code (IMPORT) */&lt;BR /&gt;74 /* Source File: test_002.csv */&lt;BR /&gt;75 /* Source Path: /folders/myfolders */&lt;BR /&gt;76 /* Code generated on: 14/08/2018 22:23 */&lt;BR /&gt;77&lt;BR /&gt;78 %web_drop_table(WORK.rawct);&lt;BR /&gt;NOTE: Table WORK.RAWCT has been dropped.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;79&lt;BR /&gt;80&lt;BR /&gt;81 FILENAME REFFILE '/folders/myfolders/test_002.csv';&lt;BR /&gt;82&lt;BR /&gt;83 PROC IMPORT DATAFILE=REFFILE&lt;BR /&gt;84 DBMS=CSV&lt;BR /&gt;85 OUT=WORK.rawct;&lt;BR /&gt;86 GETNAMES=YES;&lt;BR /&gt;87 RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;BR /&gt;WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;88 /**********************************************************************&lt;BR /&gt;89 * PRODUCT: SAS&lt;BR /&gt;90 * VERSION: 9.4&lt;BR /&gt;91 * CREATOR: External File Interface&lt;BR /&gt;92 * DATE: 14AUG18&lt;BR /&gt;93 * DESC: Generated SAS Datastep Code&lt;BR /&gt;94 * TEMPLATE SOURCE: (None Specified.)&lt;BR /&gt;95 ***********************************************************************/&lt;BR /&gt;96 data WORK.RAWCT ;&lt;BR /&gt;97 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;98 infile REFFILE delimiter = ',' MISSOVER DSD firstobs=2 ;&lt;BR /&gt;99 informat Age best32. ;&lt;BR /&gt;100 informat State best32. ;&lt;BR /&gt;101 informat Plate best32. ;&lt;BR /&gt;...&lt;BR /&gt;;&lt;BR /&gt;248 format meanHKG best12. ;&lt;BR /&gt;249 input&lt;BR /&gt;250 Age&lt;/P&gt;&lt;P&gt;251 ...&lt;/P&gt;&lt;P&gt;324 meanHKG&lt;BR /&gt;325 ;&lt;BR /&gt;326 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;327 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile REFFILE is:&lt;BR /&gt;Filename=/folders/myfolders/test_002.csv,&lt;BR /&gt;Owner Name=root,Group Name=vboxsf,&lt;BR /&gt;Access Permission=-rwxrwx---,&lt;BR /&gt;Last Modified=14 August 2018 22:23:02,&lt;BR /&gt;File Size (bytes)=8010&lt;BR /&gt;&lt;BR /&gt;NOTE: 20 records were read from the infile REFFILE.&lt;BR /&gt;The minimum record length was 149.&lt;BR /&gt;The maximum record length was 419.&lt;BR /&gt;NOTE: The data set WORK.RAWCT has 20 observations and 75 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;20 rows created in WORK.RAWCT from REFFILE.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: WORK.RAWCT data set was successfully created.&lt;BR /&gt;NOTE: The data set WORK.RAWCT has 20 observations and 75 variables.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 1.82 seconds&lt;BR /&gt;cpu time 0.35 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;328&lt;BR /&gt;329 PROC CONTENTS DATA=WORK.rawct; RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE CONTENTS used (Total process time):&lt;BR /&gt;real time 0.31 seconds&lt;BR /&gt;cpu time 0.31 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;330&lt;BR /&gt;331&lt;BR /&gt;332 %web_open_table(WORK.rawct);&lt;BR /&gt;333&lt;BR /&gt;334 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;347&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:34:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486827#M6045</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T20:34:13Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486831#M6047</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;&lt;BR /&gt;I prepared the raw data from Microsoft Excel 2013 version and wrote the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I noticed and initially I could not figure out why but in the end, i thought i got that error probably because I did not state that the delimiter was TAB in the case of my dataset or SAS Studio just has really big issues with importing TAB delimited .xlsx documents.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And given what other contributors have observed and suggested, I think it is safe to say that SAS Studio does not have the capacity to handle imports from .xlsx-based documents.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:42:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486831#M6047</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T20:42:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with SAS Studio reading data from DATALINES</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486835#M6048</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159490"&gt;@BrianGaines&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;My suggested fix pertained to being able to copy/paste data from an Excel file into the SAS Studio editor to be used with DATALINES.&amp;nbsp; However, in the code you provided, you are using PROC IMPORT to import the Excel file directly.&amp;nbsp; So my suggestion will not help with that.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After selecting the "&lt;SPAN&gt;Substitute spaces for tabs" option, did you try to use the data step to to import the data?&lt;/SPAN&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Yes, you are right. I did not follow your suggestion to the letter. I apologise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And yes! It worked! I just did as you suggested and used the data step, and it worked absolutely fine.&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 20:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Problem-with-SAS-Studio-reading-data-from-DATALINES/m-p/486835#M6048</guid>
      <dc:creator>dammie_101</dc:creator>
      <dc:date>2018-08-14T20:50:01Z</dc:date>
    </item>
  </channel>
</rss>

