<?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: What happened to my data? in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901652#M40203</link>
    <description>&lt;P&gt;Thank you for the suggestion. My data looks just like it should, with all the data intact, so I'm unclear why it is not producing my desired results.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Nov 2023 00:41:24 GMT</pubDate>
    <dc:creator>BLT2023</dc:creator>
    <dc:date>2023-11-06T00:41:24Z</dc:date>
    <item>
      <title>What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901601#M40189</link>
      <description>&lt;P&gt;I'm working on a class project. Attached is the XLSX file I am working with. On the first project, I wrote the following code:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;LIBNAME Check XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";
LIBNAME Check CLEAR;

LIBNAME	CoImpt XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";

DATA CoImpt.Poverty;
	SET CoImpt.Poverty;
	RUN;
PROC TRANSPOSE DATA=CoImpt.Poverty OUT=CoImpt.tPOVERTY;
RUN;	

PROC PRINT
		DATA = CoImpt.Poverty;
	RUN;
	PROC CONTENTS DATA=coimpt.tPoverty;
	RUN;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;And here is the log for this code:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         LIBNAME Check XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";
 NOTE: Libref CHECK was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: /home/u63571562/BIOS6680_2023/CDPHE Study/Data/1_Source/poverty.xlsx
 70         LIBNAME Check CLEAR;
 NOTE: Libref CHECK has been deassigned.
 71         
 72         LIBNAMECoImpt XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";
 NOTE: Libref COIMPT was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: /home/u63571562/BIOS6680_2023/CDPHE Study/Data/1_Source/poverty.xlsx
 73         
 74         DATA CoImpt.Poverty;
 75         SET CoImpt.Poverty;
 76         RUN;
 
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: The data set COIMPT.Poverty has 0 observations and 1 variables.
 NOTE: The export data set has 0 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.06 seconds
       user cpu time       0.05 seconds
       system cpu time     0.01 seconds
       memory              7988.53k
       OS Memory           27756.00k
       Timestamp           11/05/2023 02:37:31 AM
       Step Count                        39  Switch Count  1
       Page Faults                       0
       Page Reclaims                     2782
       Page Swaps                        0
       Voluntary Context Switches        41
       Involuntary Context Switches      0
       Block Input Operations            128
       Block Output Operations           184
       
 
 77         PROC TRANSPOSE DATA=CoImpt.Poverty OUT=CoImpt.tPOVERTY;
 78         RUN;
 
 NOTE: No variables to transpose.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: The data set COIMPT.tPOVERTY has 0 observations and 1 variables.
 NOTE: The export data set has 0 observations and 1 variables.
 NOTE: PROCEDURE TRANSPOSE used (Total process time):
       real time           0.06 seconds
       user cpu time       0.05 seconds
       system cpu time     0.00 seconds
       memory              7977.31k
       OS Memory           28012.00k
       Timestamp           11/05/2023 02:37:32 AM
       Step Count                        40  Switch Count  1
       Page Faults                       0
       Page Reclaims                     2378
       Page Swaps                        0
       Voluntary Context Switches        41
       Involuntary Context Switches      0
       Block Input Operations            176
       Block Output Operations           176
       
 
 78       !     
 79         
 80         PROC PRINT
 81         DATA = CoImpt.Poverty;
 82         RUN;
 
 NOTE: Access by observation number not available. Observation numbers will be counted by PROC PRINT.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: No observations in data set COIMPT.Poverty.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.01 seconds
       user cpu time       0.01 seconds
       system cpu time     0.00 seconds
       memory              3986.59k
       OS Memory           23028.00k
       Timestamp           11/05/2023 02:37:32 AM
       Step Count                        41  Switch Count  0
       Page Faults                       0
       Page Reclaims                     783
       Page Swaps                        0
       Voluntary Context Switches        10
       Involuntary Context Switches      0
       Block Input Operations            48
       Block Output Operations           0
       
 
 83         
 83       !  PROC CONTENTS DATA=coimpt.tPoverty;
 84         RUN;
 
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.03 seconds
       user cpu time       0.02 seconds
       system cpu time     0.01 seconds
       memory              5223.06k
       OS Memory           24056.00k
       Timestamp           11/05/2023 02:37:32 AM
       Step Count                        42  Switch Count  0
       Page Faults                       0
       Page Reclaims                     1037
       Page Swaps                        0
       Voluntary Context Switches        2
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           16
       
 
 85         
 86         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 96  &lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;This worked fine until now, and for some reason, now nothing is showing up in the output data. In the current project, I wrote this code:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;PROC PRINT DATA = CoImpt.Poverty;
	RUN;

PROC TRANSPOSE	DATA = CoImpt.Poverty;
	RUN;

PROC PRINT DATA = CoImpt.Poverty;
	RUN;&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;And here is the log for this code:&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         PROC PRINT DATA = CoImpt.Poverty;
 70         RUN;
 
 NOTE: Access by observation number not available. Observation numbers will be counted by PROC PRINT.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: No observations in data set COIMPT.Poverty.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.01 seconds
       user cpu time       0.01 seconds
       system cpu time     0.00 seconds
       memory              3992.46k
       OS Memory           26052.00k
       Timestamp           11/05/2023 02:37:37 AM
       Step Count                        48  Switch Count  0
       Page Faults                       0
       Page Reclaims                     956
       Page Swaps                        0
       Voluntary Context Switches        13
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 71         
 72         PROC TRANSPOSEDATA = CoImpt.Poverty;
 73         RUN;
 
 NOTE: No variables to transpose.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: The data set WORK.DATA3 has 0 observations and 1 variables.
 NOTE: PROCEDURE TRANSPOSE used (Total process time):
       real time           0.01 seconds
       user cpu time       0.02 seconds
       system cpu time     0.00 seconds
       memory              4362.15k
       OS Memory           26312.00k
       Timestamp           11/05/2023 02:37:37 AM
       Step Count                        49  Switch Count  2
       Page Faults                       0
       Page Reclaims                     734
       Page Swaps                        0
       Voluntary Context Switches        17
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 74         
 75         PROC PRINT DATA = CoImpt.Poverty;
 76         RUN;
 
 NOTE: Access by observation number not available. Observation numbers will be counted by PROC PRINT.
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: No observations in data set COIMPT.Poverty.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.01 seconds
       user cpu time       0.02 seconds
       system cpu time     0.00 seconds
       memory              3992.46k
       OS Memory           26052.00k
       Timestamp           11/05/2023 02:37:37 AM
       Step Count                        50  Switch Count  0
       Page Faults                       0
       Page Reclaims                     664
       Page Swaps                        0
       Voluntary Context Switches        2
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 77         
 78         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 88 &lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;It was also working earlier, and now it is not. I don't know why it stopped working, and I don't know how to fix it. There are no errors or messages in the log for either section of code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was working on removing the word "FIPS" from each observation after it is transposed, but I am not sure how to do that with a base xlsx file. Any help greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 02:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901601#M40189</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-05T02:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901605#M40190</link>
      <description>&lt;P&gt;Why would read from the POVERTY sheet in the XLSX and immediately write back into the exact same sheet in the exact same XLSX file?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA CoImpt.Poverty;
  SET CoImpt.Poverty;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;If it worked it would destroy your source data.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What did you think the CHECK libref was "checking"?&amp;nbsp; If you make a libref pointing to an XLSX file SAS is not going to check if the XLSX file exists or not.&amp;nbsp; It does not know if you intended to read something from that file (like the SET statement above) or write something into that file (like the DATA statement above).&amp;nbsp; So the libname statement will succeed if there is no file.&amp;nbsp; The only way it would fail would be if the file exist but it is not a valid XLSX file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 03:47:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901605#M40190</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-05T03:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901606#M40191</link>
      <description>&lt;P&gt;Can you go more into solutions for this? New to SAS and still learning.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 04:28:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901606#M40191</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-05T04:28:01Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901611#M40193</link>
      <description>&lt;P&gt;The sheet has more than a thousand columns (up to Excel column AUU!), which may crack limits in the XLSX engine.&lt;/P&gt;
&lt;P&gt;Did you pivot that in Excel? If yes, import the original table into SAS.&lt;/P&gt;
&lt;P&gt;Or, save as csv and try to import that.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 07:53:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901611#M40193</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-05T07:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901640#M40197</link>
      <description>&lt;P&gt;For the project, I cannot pivot anything in excel. I am to use PROC TRANSPOSE to do this in SAS. I wrote code for this and it worked fine, until problems in original post occurred.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 22:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901640#M40197</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-05T22:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901645#M40199</link>
      <description>&lt;P&gt;First thing you need to change: Do not overwrite your source table but create a new table. Normally you create such tables in WORK and only write to a permanent location if you need to keep the result target table after your SAS session terminated.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If "worked fine" means that it returned the desired result then I'm not sure what your desired result should be given below log Note.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1699227464085.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89435iF8C2EEEC0B6E8FDE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1699227464085.png" alt="Patrick_0-1699227464085.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below some code that doesn't overwrite your source data and that also actually transposes the data. I'm of course not sure if the transposed data is in the structure you want it. If not then please show us how the transformed data structure should look like.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname coimpt xlsx "c:\temp\poverty.xlsx";

data work.poverty_wide;
  set coimpt.poverty;
run;

libname coimpt clear;

proc transpose data=work.poverty_wide out=work.poverty_long(rename=(_name_=Fips) drop=_label_);
  id _name_;
run;

proc print
  data = work.poverty_wide;
run;
proc print
  data = work.poverty_long;
run;

proc contents data=work.poverty_long;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 23:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901645#M40199</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-05T23:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901648#M40201</link>
      <description>&lt;P&gt;Thank you for the response. When I run this code, this is my log (1 warning and 3 errors). I guess a better question is: since I have already made the mistake of overwriting my code within SAS, how do I fix it?&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         *Convert from wide to long using PROC TRANSPOSE*;
 70         libname coimpt xlsx "c:\temp\poverty.xlsx";
 NOTE: Libref COIMPT was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: c:\temp\poverty.xlsx
 71         
 72         data work.poverty_wide;
 73           set coimpt.poverty;
 ERROR: File COIMPT.poverty.DATA does not exist.
 74         run;
 
 NOTE: The SAS System stopped processing this step because of errors.
 WARNING: The data set WORK.POVERTY_WIDE may be incomplete.  When this step was stopped there were 0 observations and 0 variables.
 WARNING: Data set WORK.POVERTY_WIDE was not replaced because this step was stopped.
 NOTE: DATA statement used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              2798.03k
       OS Memory           31092.00k
       Timestamp           11/05/2023 11:54:48 PM
       Step Count                        244  Switch Count  0
       Page Faults                       0
       Page Reclaims                     652
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 75         
 76         libname coimpt clear;
 NOTE: Libref COIMPT has been deassigned.
 77         
 78         proc transpose data=work.poverty_wide out=work.poverty_long(rename=(_name_=Fips) drop=_label_);
 79           id _name_;
 80         run;
 
 NOTE: No variables to transpose.
 WARNING: The variable _label_ in the DROP, KEEP, or RENAME list has never been referenced.
 NOTE: There were 0 observations read from the data set WORK.POVERTY_WIDE.
 NOTE: The data set WORK.POVERTY_LONG has 0 observations and 1 variables.
 NOTE: PROCEDURE TRANSPOSE used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              977.34k
       OS Memory           28964.00k
       Timestamp           11/05/2023 11:54:48 PM
       Step Count                        245  Switch Count  2
       Page Faults                       0
       Page Reclaims                     104
       Page Swaps                        0
       Voluntary Context Switches        10
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           264
       
 
 81         
 82         proc print
 83           data = work.poverty_wide;
 84         run;
 
 NOTE: No observations in data set WORK.POVERTY_WIDE.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       user cpu time       0.00 seconds
       system cpu time     0.00 seconds
       memory              497.34k
       OS Memory           28704.00k
       Timestamp           11/05/2023 11:54:48 PM
       Step Count                        246  Switch Count  0
       Page Faults                       0
       Page Reclaims                     18
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 85         proc print
 86           data = work.poverty_long;
 87         run;
 
 NOTE: No observations in data set WORK.POVERTY_LONG.
 NOTE: PROCEDURE PRINT used (Total process time):
       real time           0.00 seconds
       user cpu time       0.01 seconds
       system cpu time     0.00 seconds
       memory              743.28k
       OS Memory           28964.00k
       Timestamp           11/05/2023 11:54:48 PM
       Step Count                        247  Switch Count  0
       Page Faults                       0
       Page Reclaims                     52
       Page Swaps                        0
       Voluntary Context Switches        0
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           0
       
 
 88         
 89         proc contents data=work.poverty_long;
 90         run;
 
 NOTE: PROCEDURE CONTENTS used (Total process time):
       real time           0.02 seconds
       user cpu time       0.02 seconds
       system cpu time     0.00 seconds
       memory              1965.65k
       OS Memory           29224.00k
       Timestamp           11/05/2023 11:54:48 PM
       Step Count                        248  Switch Count  0
       Page Faults                       0
       Page Reclaims                     99
       Page Swaps                        0
       Voluntary Context Switches        2
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           8
       
 
 91         
 92         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 102        &lt;/PRE&gt;&lt;/LI-SPOILER&gt;</description>
      <pubDate>Sun, 05 Nov 2023 23:56:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901648#M40201</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-05T23:56:45Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901649#M40202</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/454937"&gt;@BLT2023&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you for the response. When I run this code, this is my log (1 warning and 3 errors). I guess a better question is: since I have already made the mistake of overwriting my code within SAS, how do I fix it?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;First, I would check the state of your excel file, poverty.xlsx.&amp;nbsp; It looks like it is is stored in:&lt;/P&gt;
&lt;PRE&gt;/home/u63571562/BIOS6680_2023/CDPHE Study/Data/1_Source/poverty.xlsx&lt;/PRE&gt;
&lt;P&gt;Do you know how to copy poverty.xlsx to your PC, so that you can open it in Excel to see the values?&amp;nbsp; That would probably be the easiest way to check if you have accidentally overwritten your data.&amp;nbsp; If the file is essentially empty, you may need to ask a classmate or the professor to provide you with another copy.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 00:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901649#M40202</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-11-06T00:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901652#M40203</link>
      <description>&lt;P&gt;Thank you for the suggestion. My data looks just like it should, with all the data intact, so I'm unclear why it is not producing my desired results.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 00:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901652#M40203</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-06T00:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901653#M40204</link>
      <description>&lt;P&gt;That is good news that your data is still there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When writing a SAS program, generally you want to write it one step at a time, and test each step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your first step reads the data from the Excel sheet into a SAS dataset.&amp;nbsp; But it looks like that step is not working.&amp;nbsp; If you run:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME	CoImpt XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";

DATA Poverty;
  SET CoImpt.Poverty;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What do you see in the log?&amp;nbsp; If you see notes like you posted originally:&lt;/P&gt;
&lt;PRE&gt; NOTE: The import data set has 0 observations and 1 variables.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.&lt;/PRE&gt;
&lt;P&gt;that is a problem.&amp;nbsp; And that is the first problem you'll need to solve.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The name of the Excel file is poverty.xlsx.&amp;nbsp; When you open the Excel file, what is the name of the worksheet that has the data?&amp;nbsp; It's also named "Poverty"?&amp;nbsp; Or is it named the default "Sheet1".&amp;nbsp; Or something else?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 00:53:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901653#M40204</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-11-06T00:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901654#M40205</link>
      <description>&lt;P&gt;Here is the log based on your provided code. It is as you predicted. Also, yes, the sheet is also named poverty in the excel file.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 68         
 69         LIBNAMECoImpt XLSX "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";
 NOTE: Libref COIMPT was successfully assigned as follows: 
       Engine:        XLSX 
       Physical Name: /home/u63571562/BIOS6680_2023/CDPHE Study/Data/1_Source/poverty.xlsx
 70         
 71         DATA Poverty;
 72           SET CoImpt.Poverty;
 73         RUN;
 
 NOTE: The import data set has 0 observations and 1 variables.
 NOTE: There were 0 observations read from the data set COIMPT.Poverty.
 NOTE: The data set WORK.POVERTY has 0 observations and 1 variables.
 NOTE: DATA statement used (Total process time):
       real time           0.02 seconds
       user cpu time       0.02 seconds
       system cpu time     0.00 seconds
       memory              4694.50k
       OS Memory           36628.00k
       Timestamp           11/06/2023 12:56:28 AM
       Step Count                        413  Switch Count  2
       Page Faults                       0
       Page Reclaims                     1106
       Page Swaps                        0
       Voluntary Context Switches        21
       Involuntary Context Switches      0
       Block Input Operations            0
       Block Output Operations           160
       
 
 74         
 75         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 85         &lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 00:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901654#M40205</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-06T00:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901655#M40206</link>
      <description>&lt;P&gt;Sorry, I don't have any great idea.&amp;nbsp; You might try using a different engine to import the data, e.g.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;LIBNAME CoImpt excel "&amp;amp;CourseRoot/CDPHE Study/Data/1_Source/poverty.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might also try calling SAS tech support to see if they can help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I haven't looked in the file, but&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;said it has 1000+ columns?&amp;nbsp; Just as a test, you might make a copy of the file, and delete most of the columns, and then try to code again.&amp;nbsp; If the DATA step can read the file copy with fewer columns, that would confirm that the number of columns is a problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But I've read some Excel files with &amp;gt;1000 columns (unfortunately), and never had this problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like SAS really things there are now rows in the poverty worksheet, and just a single column.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 01:09:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901655#M40206</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-11-06T01:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901656#M40207</link>
      <description>&lt;P&gt;Thank you for all of your help! I really appreciate it.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 01:11:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901656#M40207</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-06T01:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901665#M40209</link>
      <description>&lt;P&gt;The code I've shared worked on my laptop with the Excel you provided. Please make sure that your real Excel has the same name (workbook and sheet including casing) and resides under a valid path accessible by your SAS session. If that's the case then the code should work as is.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 03:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901665#M40209</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-11-06T03:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901668#M40210</link>
      <description>&lt;P&gt;I have checked all of these things, and it is still not working. I cannot figure out why this would be the case&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 04:32:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901668#M40210</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-06T04:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901683#M40211</link>
      <description>&lt;P&gt;What is the name of the single variable in your dataset?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:17:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901683#M40211</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-06T09:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901684#M40212</link>
      <description>&lt;P&gt;And please don't use the "Spoiler" button. Use only this button for posting logs:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 09:18:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901684#M40212</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-06T09:18:24Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901720#M40213</link>
      <description>&lt;P&gt;So the file is not where you think it is.&amp;nbsp; Or the file that is there is not the one you want.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is your version of SAS really running on a Windows machine where a filename that starts with C:\ would make sense?&amp;nbsp; Is it the same machine where you can see the file?&amp;nbsp; If you are running SAS on a Windows server then C: on that server is not the same as C: on your PC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you used this code on Unix&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname coimpt xlsx "c:\temp\poverty.xlsx";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;It would point COIMPT libref to the file named "c:temppoverty.xlsx" in the current working directory since \ is an escape character to Unix and filenames that do not start with the root node, / , are relative and not absolute.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The LIBRNAME statement will work fine whether or not such a file existed.&amp;nbsp; SAS does not know if you are making the libref COIMPT so that you can begin creating a NEW file or if you are intending to read from an existing file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The file not existing would explain the notes in your next step:&lt;/P&gt;
&lt;PRE&gt; 72         data work.poverty_wide;
 73           set coimpt.poverty;
 ERROR: File COIMPT.poverty.DATA does not exist.
 74         run;&lt;/PRE&gt;
&lt;P&gt;Or if the file does exist but it does not have a sheet with a name like POVERTY.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 13:42:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901720#M40213</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-06T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901746#M40214</link>
      <description>&lt;P&gt;The single variable is _NAME_&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:08:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901746#M40214</guid>
      <dc:creator>BLT2023</dc:creator>
      <dc:date>2023-11-06T16:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: What happened to my data?</title>
      <link>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901748#M40215</link>
      <description>Are you sure this is your original file? It looks like the output from a proc transpose not exactly what I would expect as a raw data file.&lt;BR /&gt;</description>
      <pubDate>Mon, 06 Nov 2023 16:12:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/What-happened-to-my-data/m-p/901748#M40215</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-11-06T16:12:36Z</dc:date>
    </item>
  </channel>
</rss>

