<?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: SAS beginner- Printing Raw Data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338606#M77141</link>
    <description>&lt;P&gt;No clue, thats the only error i have left. And no matter what i do its the same thing, im doing something wrong or leaving something out. I modified the code, and still have the same error 5x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ODS PDF FILE="//Program 1-results.pdf" startpage=NO;
TITLE COLOR=black 'Test';
title 'census';
data work.census;
  infile '/home/.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;
proc print data=gender;
  var lowest_population highest_population;
run;

proc print data=gender;
  where sex='male' and population &amp;gt; 100000;
run;
proc print data=gender;
  where sex='female' and population &amp;gt; 100000;
run;
proc print data=gender;
  where sex='female' and population &amp;lt; 1;
run;
proc print data=gender;
  where sex='male' and population &amp;lt; 1;
run;

data work.fullList;
  infile '/home/ Females Full Time Year Round.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;

proc print data=fulllist;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 Mar 2017 22:56:20 GMT</pubDate>
    <dc:creator>SixUnder</dc:creator>
    <dc:date>2017-03-06T22:56:20Z</dc:date>
    <item>
      <title>SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337212#M76547</link>
      <description>&lt;P&gt;My last one of these bad boys. Ok, so here goes...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="tab_content"&gt;&lt;DIV class="instructions-content supportmaterial-columndivider"&gt;&lt;DIV&gt;&lt;P class="assignmentslevel1"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Use&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;the raw data file created previously. (ATTACHED)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Write&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;a SAS®&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;program that uses the PRINT procedure to produce a list that shows the contents of the raw data file. Illustrate that the gender categories of the original data were preserved. &lt;FONT color="#000000"&gt;How about using the same proc print i used on the last question.&lt;/FONT&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print;
Title 'raw Data results';
*name of file;
Var Lowest_population Highest_population;
* would like those as headers, and list male, female on the left hand side;
*hrmm, will this work?;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="assignmentslevel1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;SPAN&gt;Write&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="apple-converted-space"&gt;&lt;STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;a second SAS®&lt;SPAN class="apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;program to produce a report showing only the highest and lowest earning value or category for each gender. Ensure that labels are appropriate to convey the meaning of the data. Additionally, create a table that shows all of the earning variable contents for one gender category.&lt;/FONT&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&lt;SPAN&gt;For the first part, highest and lowest, im taking that is the single lowest and highest for each gender, so the table will only have what 4 entries in it. The second part looks as if they want a list of each variable for all of one of the sexs. So, what about...this for the first part. I think this will do one of each entries, but not both, not sure on the proper method to single these out.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Proc print data=census;

Where sex='male';

Where Population&amp;gt;100000;

Run;

Proc print data=census;

Where sex='female';

Where population&amp;lt; 1;

Run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="assignmentslevel1"&gt;&lt;SPAN&gt;For the second portion, would it be as simple as doing something like this? for all (variable) entries...&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data FullList;
	infile '.csv' DSD Missover firstobs=2;
	Input Gender $ Wages_Low Wages_High Estimated Max_Earnings;
Proc Print Data=FullList;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P class="assignmentslevel1"&gt;&lt;SPAN&gt;Will this work? Am i on the right track?&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="assignmentslevel1"&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 02 Mar 2017 02:22:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337212#M76547</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-02T02:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337234#M76560</link>
      <description>&lt;P&gt;Neither are correct.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 04:12:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337234#M76560</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-02T04:12:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337276#M76582</link>
      <description>&lt;P&gt;Several points:&lt;/P&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;Proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;print&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;                               ** No dataset specified - always specify the dataset&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;Title&lt;/SPAN&gt; &lt;SPAN class="token string"&gt;'raw Data results'&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;                 ** Unless there is good reason keep titles outside procedures.&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;Var&lt;/SPAN&gt; Lowest_population Highest_population&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;PRE&gt;Proc print data=census;
Where sex='male';
Where Population&amp;gt;100000;        ** Where clauses do not work like this
                                               ** Look into the "and" operator 
Run;

Proc print data=census;
Where sex='female';
Where population&amp;lt; 1;
Run;&lt;/PRE&gt;
&lt;PRE&gt;Data FullList;
	infile '.csv' DSD Missover firstobs=2;        ** No filename specified
	Input Gender $ Wages_Low Wages_High Estimated Max_Earnings;  ** Don't use tab, this renders differently&lt;BR /&gt;  ** in different editors, use 2 spaces (can be configured in SAS options
** Missing run;

Proc Print Data=FullList;
run;&lt;/PRE&gt;
&lt;P&gt;As an overview, nowadays it is far more important to make code as simple and readable as possible. &amp;nbsp;Consitent casing, indentations, finishing blaocks etc all contribute to this, so let me take your code (and I don't guarentee this will run as I don't have the census or csv file so can't check):&lt;/P&gt;
&lt;PRE&gt;/* Assumes there is a dataset called work.census */
title 'raw Data results';
proc print data=work.census;
  var lowest_population highest_population;
run;

proc print data=census;
  where sex='male' and population &amp;gt; 100000;
run;

proc print data=census;
  where sex='female' and population &amp;lt; 1;
run;

/* Assumes there is a file on C drive call mydatafile.csv, and it is in the format given by the input line */
data work.fullList;
  infile 'c:\mydatafile.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;

proc print data=fulllist;
run;&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2017 09:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337276#M76582</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-02T09:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337922#M76825</link>
      <description>yes there is a .csv file to infile at the proc step. As far as the data step at the beginning.... do i need to create a.....&lt;BR /&gt;data census; ?&lt;BR /&gt;&lt;BR /&gt;As with my original code, this program is only giving me the one variable of each, where i need the lowest and highest of both male and female.</description>
      <pubDate>Fri, 03 Mar 2017 17:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/337922#M76825</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-03T17:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338297#M77007</link>
      <description>&lt;P&gt;where does the pdf i already have come into play? I see the fullist report. I get that, and it will display from my existing .csv delimited file. However, i need to generate those 4 required variables from the exising report, unless i am reading it wrong. I suppose i am just clarifying that the original lines under the title will read code from the pdf file i had previously.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Mar 2017 20:49:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338297#M77007</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-05T20:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338332#M77028</link>
      <description>&lt;P&gt;SAS can't read or combine PDFs, unless you're referring to text analytics and have SAS EM.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PDF cannot be incorporated into your solution.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 01:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338332#M77028</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-06T01:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338382#M77047</link>
      <description>&lt;P&gt;What PDF, I don't see a mention of it in your original post. &amp;nbsp;Make sure you clearly provide all information - provide example test data (in the form of a datastep) and what you want out at the end. &amp;nbsp;As for PDF, this is an "End Product" file format, and is of very little use trying to create anything from it. &amp;nbsp;You need to store the data which created that report, and use that data in the next run.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 09:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338382#M77047</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-03-06T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338496#M77084</link>
      <description>&lt;P&gt;PDF listed, and attached above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SO your saying i need two .csv files&amp;nbsp; to generate this from?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 16:56:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338496#M77084</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-06T16:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338601#M77138</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ODS PDF FILE="/home//Program 1-results.pdf" startpage=NO;
TITLE COLOR=black 'Test';
title 'census';
proc print data=work.census;
  var lowest_population highest_population;
run;
proc print data=census;
  where sex='male' and population &amp;gt; 100000;
run;
proc print data=census;
  where sex='female' and population &amp;gt; 100000;
run;
proc print data=census;
  where sex='female' and population &amp;lt; 1;
run;
proc print data=census;
  where sex='male' and population &amp;lt; 1;
run;

data work.fullList;
  infile '/home/ Females Full Time Year Round.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;

proc print data=fulllist;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Ok, i have this written out. However as you will see i still have 4 errors of which all are the same. Can anyone help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error Work.file.census does not exist, actually its in here 5 times. I understand it is because the datset is not there. Do i simply just need to add&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data=work.file.census;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or can anyone offer me a suggestion? I have my pdf imported, and the second portion requires the csv and its in there, however i still get that one error 5 times. I have it entered incorrectly, i thought perhaps someone could shed some light on where i have errored in my ways.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PDF, and CSV attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="sasSource"&gt;62 title 'census';&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;63 proc print data=work.census;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.CENSUS.DATA does not exist.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;64 var lowest_population highest_population;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;65 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 67.28k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 24488.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 03/06/2017 10:22:52 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 71 Switch Count 30&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 11&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 64&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;66&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;67 proc print data=census;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.CENSUS.DATA does not exist.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;68 where sex='male' and population &amp;gt; 100000;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: No data sets qualify for WHERE processing.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;69 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 75.59k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 24488.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 03/06/2017 10:22:52 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 72 Switch Count 32&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 10&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 72&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;70 proc print data=census;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.CENSUS.DATA does not exist.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;71 where sex='female' and population &amp;gt; 100000;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: No data sets qualify for WHERE processing.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;72 run;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;NOTE: PROCEDURE PRINT used (Total process time):&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;real time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;user cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;system cpu time 0.00 seconds&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;memory 75.43k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;OS Memory 24488.00k&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Timestamp 03/06/2017 10:22:52 PM&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Step Count 73 Switch Count 32&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Faults 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Reclaims 10&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Page Swaps 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Voluntary Context Switches 72&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Involuntary Context Switches 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Input Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;Block Output Operations 0&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;73 proc print data=census;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.CENSUS.DATA does not exist.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;74 where sex='female' and population &amp;lt; 1;&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: No data sets qualify for WHERE processing.&lt;/DIV&gt;&lt;DIV class="sasSource"&gt;75 run;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:33:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338601#M77138</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-06T22:33:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338602#M77139</link>
      <description>&lt;P&gt;&lt;SPAN&gt;ERROR: File WORK.CENSUS.DATA does not exist.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Where's the code that creates the Census dataset?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:44:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338602#M77139</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-06T22:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338606#M77141</link>
      <description>&lt;P&gt;No clue, thats the only error i have left. And no matter what i do its the same thing, im doing something wrong or leaving something out. I modified the code, and still have the same error 5x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods _all_ close;
ODS PDF FILE="//Program 1-results.pdf" startpage=NO;
TITLE COLOR=black 'Test';
title 'census';
data work.census;
  infile '/home/.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;
proc print data=gender;
  var lowest_population highest_population;
run;

proc print data=gender;
  where sex='male' and population &amp;gt; 100000;
run;
proc print data=gender;
  where sex='female' and population &amp;gt; 100000;
run;
proc print data=gender;
  where sex='female' and population &amp;lt; 1;
run;
proc print data=gender;
  where sex='male' and population &amp;lt; 1;
run;

data work.fullList;
  infile '/home/ Females Full Time Year Round.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;

proc print data=fulllist;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338606#M77141</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-06T22:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338613#M77142</link>
      <description>&lt;P&gt;If you didn't import a datafile or save it from a previous session where are you expecting SAS to get the Census dataset from? You do have to provide the data....&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 23:18:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338613#M77142</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-06T23:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338625#M77149</link>
      <description>&lt;P&gt;The PDF and the CSV files both contain the data for each part of the program.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 00:34:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338625#M77149</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-07T00:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338631#M77153</link>
      <description>&lt;P&gt;PDFs can't be used as a data source.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code in the last post changed. There's an import as the first step, fix that and The rest of the errors will disappear. I'm 99% sure you did this in your last question. Not sure it was ever correct there either, &amp;nbsp;so I suggest reviewing how to import a CSV file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://stats.idre.ucla.edu/sas/faq/how-do-i-read-in-a-delimited-ascii-file-in-sas/" target="_blank"&gt;http://stats.idre.ucla.edu/sas/faq/how-do-i-read-in-a-delimited-ascii-file-in-sas/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 01:03:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338631#M77153</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-07T01:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338633#M77155</link>
      <description>&lt;P&gt;text file only?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 01:06:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338633#M77155</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-07T01:06:26Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338635#M77157</link>
      <description>&lt;P&gt;This is commented out in my code now, but is this what your referring to? I am getting pulled in so many directions, not by you. I thank you kindly for your responses. For the record i fixed my program last week, and it worked correctly. I had ot add a couple lines.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC EXPORT

DATA=DOLoop

DBMS=TAB

LABEL

OUTFILE='/home/.pdf'

Replace;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In addition, another part i have commented out is this, because as you said, I cant use a pdf file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data InputData;

infile '\home/.pdf'  dlm=' ' firstobs=2;

Input Gender $ Population Salary_Low Salary_High;

 

Proc Print Data=InputData;

Title 'pdf file from last week';

Var Gender Salary_Low Salary_High Population;

run;&lt;/CODE&gt; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 01:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338635#M77157</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-07T01:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338637#M77158</link>
      <description>&lt;P&gt;This step needs to work, once this does the rest will be correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.census;
  infile '/home/.csv' dsd missover firstobs=2;
  input gender $ wages_low wages_high estimated max_Earnings;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Mar 2017 01:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338637#M77158</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-07T01:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338644#M77159</link>
      <description>&lt;P&gt;Im missing something, that i get and I am racking my brain and making it worse. I keep commenting out code, and uncommenting it im almost down a rabbit hole... Its like my csv layout is wrong and im missing something important here...&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 02:00:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338644#M77159</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-07T02:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338650#M77162</link>
      <description>&lt;P&gt;There's no filename in your CSV path, unless your file name is a period?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 02:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338650#M77162</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-03-07T02:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS beginner- Printing Raw Data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338667#M77170</link>
      <description>&lt;P&gt;Ok, i redid my previous work and changed it from a pdf to a text file. My table is displaying now, but none of the fields are populated. I am attaching my text file. and code. I am so tired of re-doing this bad boy... It should work, the fields just wont fill in now....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What needs modified?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Raw File*/

Data InputData;
infile '/home/ktylu10/Program 1-results.txt'  dlm=' ' firstobs=2;
Input Gender $ Earnings Population Low_wages3 High_Wages3;

Proc Print Data=InputData;
Title 'Raw File from Week 4';



*Lowest and Highest Value;
Proc Report Data=InputData nofs headline headskip
out=Reporting1;
Title 'Highest and Lowest Earning Value per Gender';
Columns Gender ('Earnings' Low_wages3 High_Wages3);
Define Gender / Group;
Define Low_wages3 / Analysis Min;
Define High_Wages3 / Analysis Max;
run;


* Lowest and Highest Earning per Gender;
Proc Report Data=InputData nofs headline headskip
out=Reporting2;
Title 'Highest and Lowest Earnings per Category and Gender';
Columns Gender ('Earnings' Low_wages3 High_Wages3);
Define Gender / Group;
Define Low_wages3 / Display;
Define High_Wages3 / Display;
run;


* Table;

Data Table;
set InputData;
Earnings = catx(' ', Low_wages3, 'to', High_Wages3);
Run;

proc tabulate data=Table order=formatted ;
class Gender Earnings;
Var Population;
table Earnings, Population*Gender; 
where Gender='Male';
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 03:47:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-beginner-Printing-Raw-Data/m-p/338667#M77170</guid>
      <dc:creator>SixUnder</dc:creator>
      <dc:date>2017-03-07T03:47:20Z</dc:date>
    </item>
  </channel>
</rss>

