<?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: help with error in code in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62469#M6320</link>
    <description>I looked in the log after I posted and this is what's there:&lt;BR /&gt;
1                                                          The SAS System                            08:40 Friday, February 26, 2010&lt;BR /&gt;
&lt;BR /&gt;
1          ;*';*";*/;quit;run;&lt;BR /&gt;
2          OPTIONS PAGENO=MIN;&lt;BR /&gt;
3          %LET _CLIENTTASKLABEL=%NRBQUOTE(Code);&lt;BR /&gt;
4          %LET _EGTASKLABEL=%NRBQUOTE(Code);&lt;BR /&gt;
5          %LET _CLIENTPROJECTNAME=%NRBQUOTE();&lt;BR /&gt;
6          %LET _SASPROGRAMFILE=;&lt;BR /&gt;
7          &lt;BR /&gt;
8          ODS _ALL_ CLOSE;&lt;BR /&gt;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices.  Graph defaults for these &lt;BR /&gt;
      drivers may be different from other SAS/GRAPH device drivers.  For further information, please contact Technical Support.&lt;BR /&gt;
9          OPTIONS DEV=ACTIVEX;&lt;BR /&gt;
10         FILENAME EGHTML TEMP;&lt;BR /&gt;
NOTE: Writing HTML(EGHTML) Body file: EGHTML&lt;BR /&gt;
11         ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault&lt;BR /&gt;
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")&lt;BR /&gt;
11       ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&amp;amp;sasworklocation&lt;BR /&gt;
11       ! ;&lt;BR /&gt;
12         &lt;BR /&gt;
13         %gaccessible;&lt;BR /&gt;
14         data weight_club;&lt;BR /&gt;
15         	input IdNumber 1-4 Name $ 6-24 Team $ StartWeight EndWeight;&lt;BR /&gt;
16         	Loss=StartWeight - EndWeight;&lt;BR /&gt;
17         	datalines;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Invalid data for StartWeight in line 19 33-39.&lt;BR /&gt;
NOTE: LOST CARD.&lt;BR /&gt;
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     &lt;BR /&gt;
20         ;&lt;BR /&gt;
NOTE: Invalid data errors for file CARDS occurred outside the printed range.&lt;BR /&gt;
NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;
IdNumber=1049 Name=Amelia Serrano	 Team=yellow StartWeight=. EndWeight=. Loss=. _ERROR_=1 _N_=2&lt;BR /&gt;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;
NOTE: The data set WORK.WEIGHT_CLUB has 1 observations and 6 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      user cpu time       0.00 seconds&lt;BR /&gt;
      system cpu time     0.00 seconds&lt;BR /&gt;
      Memory                            508k&lt;BR /&gt;
      Page Faults                       0&lt;BR /&gt;
      Page Reclaims                     206&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        8&lt;BR /&gt;
      Involuntary Context Switches      0&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;
20         ;&lt;BR /&gt;
21         run;&lt;BR /&gt;
22         &lt;BR /&gt;
23         %LET _CLIENTTASKLABEL=;&lt;BR /&gt;
24         %LET _EGTASKLABEL=;&lt;BR /&gt;
25         %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;
26         %LET _SASPROGRAMFILE=;&lt;BR /&gt;
27         &lt;BR /&gt;
28         ;*';*";*/;quit;run;&lt;BR /&gt;
29         ODS _ALL_ CLOSE;&lt;BR /&gt;
30         &lt;BR /&gt;
2                                                          The SAS System                            08:40 Friday, February 26, 2010&lt;BR /&gt;
&lt;BR /&gt;
31         &lt;BR /&gt;
32         QUIT; RUN;&lt;BR /&gt;
33         &lt;BR /&gt;
&lt;BR /&gt;
Maybe that will give someone a clue. &lt;BR /&gt;
&lt;BR /&gt;
Thanks, &lt;BR /&gt;
&lt;BR /&gt;
DanD</description>
    <pubDate>Fri, 26 Feb 2010 15:45:10 GMT</pubDate>
    <dc:creator>DanD</dc:creator>
    <dc:date>2010-02-26T15:45:10Z</dc:date>
    <item>
      <title>help with error in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62468#M6319</link>
      <description>I'm obviously new to SAS and EG4.1. I'm wrting code directly in the code window. When I run the following code I only get the first line of code and I don't know why. You can't tell it here but I started the Name in column 6, the team data in column 25 and StartWeight in column 33, then one space and EndWeight. Any help is appreciated.&lt;BR /&gt;
&lt;BR /&gt;
data weight_club;&lt;BR /&gt;
	input IdNumber 1-4 Name $ 6-24 Team $ StartWeight EndWeight;&lt;BR /&gt;
	Loss=StartWeight - EndWeight;&lt;BR /&gt;
	datalines;&lt;BR /&gt;
2023 David Shaw	        red	    189 165&lt;BR /&gt;
1049 Amelia Serrano	        yellow   145 124&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The output is:&lt;BR /&gt;
2023	David Shaw	red	189	165	24&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
DanD</description>
      <pubDate>Fri, 26 Feb 2010 15:31:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62468#M6319</guid>
      <dc:creator>DanD</dc:creator>
      <dc:date>2010-02-26T15:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: help with error in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62469#M6320</link>
      <description>I looked in the log after I posted and this is what's there:&lt;BR /&gt;
1                                                          The SAS System                            08:40 Friday, February 26, 2010&lt;BR /&gt;
&lt;BR /&gt;
1          ;*';*";*/;quit;run;&lt;BR /&gt;
2          OPTIONS PAGENO=MIN;&lt;BR /&gt;
3          %LET _CLIENTTASKLABEL=%NRBQUOTE(Code);&lt;BR /&gt;
4          %LET _EGTASKLABEL=%NRBQUOTE(Code);&lt;BR /&gt;
5          %LET _CLIENTPROJECTNAME=%NRBQUOTE();&lt;BR /&gt;
6          %LET _SASPROGRAMFILE=;&lt;BR /&gt;
7          &lt;BR /&gt;
8          ODS _ALL_ CLOSE;&lt;BR /&gt;
NOTE: Some of your options or statements may not be supported with the Activex or Java series of devices.  Graph defaults for these &lt;BR /&gt;
      drivers may be different from other SAS/GRAPH device drivers.  For further information, please contact Technical Support.&lt;BR /&gt;
9          OPTIONS DEV=ACTIVEX;&lt;BR /&gt;
10         FILENAME EGHTML TEMP;&lt;BR /&gt;
NOTE: Writing HTML(EGHTML) Body file: EGHTML&lt;BR /&gt;
11         ODS HTML(ID=EGHTML) FILE=EGHTML ENCODING='utf-8' STYLE=EGDefault&lt;BR /&gt;
11       ! STYLESHEET=(URL="file:///C:/Program%20Files/SAS/Shared%20Files/BIClientStyles/EGDefault.css")&lt;BR /&gt;
11       ! ATTRIBUTES=("CODEBASE"="http://www2.sas.com/codebase/graph/v91/sasgraph.exe") NOGTITLE NOGFOOTNOTE GPATH=&amp;amp;sasworklocation&lt;BR /&gt;
11       ! ;&lt;BR /&gt;
12         &lt;BR /&gt;
13         %gaccessible;&lt;BR /&gt;
14         data weight_club;&lt;BR /&gt;
15         	input IdNumber 1-4 Name $ 6-24 Team $ StartWeight EndWeight;&lt;BR /&gt;
16         	Loss=StartWeight - EndWeight;&lt;BR /&gt;
17         	datalines;&lt;BR /&gt;
&lt;BR /&gt;
NOTE: Invalid data for StartWeight in line 19 33-39.&lt;BR /&gt;
NOTE: LOST CARD.&lt;BR /&gt;
RULE:      ----+----1----+----2----+----3----+----4----+----5----+----6----+----7----+----8----+----9----+----0                     &lt;BR /&gt;
20         ;&lt;BR /&gt;
NOTE: Invalid data errors for file CARDS occurred outside the printed range.&lt;BR /&gt;
NOTE: Increase available buffer lines with the INFILE n= option.&lt;BR /&gt;
IdNumber=1049 Name=Amelia Serrano	 Team=yellow StartWeight=. EndWeight=. Loss=. _ERROR_=1 _N_=2&lt;BR /&gt;
NOTE: SAS went to a new line when INPUT statement reached past the end of a line.&lt;BR /&gt;
NOTE: The data set WORK.WEIGHT_CLUB has 1 observations and 6 variables.&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.00 seconds&lt;BR /&gt;
      user cpu time       0.00 seconds&lt;BR /&gt;
      system cpu time     0.00 seconds&lt;BR /&gt;
      Memory                            508k&lt;BR /&gt;
      Page Faults                       0&lt;BR /&gt;
      Page Reclaims                     206&lt;BR /&gt;
      Page Swaps                        0&lt;BR /&gt;
      Voluntary Context Switches        8&lt;BR /&gt;
      Involuntary Context Switches      0&lt;BR /&gt;
      Block Input Operations            0&lt;BR /&gt;
      Block Output Operations           0&lt;BR /&gt;
      &lt;BR /&gt;
&lt;BR /&gt;
20         ;&lt;BR /&gt;
21         run;&lt;BR /&gt;
22         &lt;BR /&gt;
23         %LET _CLIENTTASKLABEL=;&lt;BR /&gt;
24         %LET _EGTASKLABEL=;&lt;BR /&gt;
25         %LET _CLIENTPROJECTNAME=;&lt;BR /&gt;
26         %LET _SASPROGRAMFILE=;&lt;BR /&gt;
27         &lt;BR /&gt;
28         ;*';*";*/;quit;run;&lt;BR /&gt;
29         ODS _ALL_ CLOSE;&lt;BR /&gt;
30         &lt;BR /&gt;
2                                                          The SAS System                            08:40 Friday, February 26, 2010&lt;BR /&gt;
&lt;BR /&gt;
31         &lt;BR /&gt;
32         QUIT; RUN;&lt;BR /&gt;
33         &lt;BR /&gt;
&lt;BR /&gt;
Maybe that will give someone a clue. &lt;BR /&gt;
&lt;BR /&gt;
Thanks, &lt;BR /&gt;
&lt;BR /&gt;
DanD</description>
      <pubDate>Fri, 26 Feb 2010 15:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62469#M6320</guid>
      <dc:creator>DanD</dc:creator>
      <dc:date>2010-02-26T15:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: help with error in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62470#M6321</link>
      <description>I don't really understand why but when I changed the input line from this&lt;BR /&gt;
input IdNumber 1-4 Name $ 6-24 Team $ StartWeight EndWeight;&lt;BR /&gt;
to this&lt;BR /&gt;
input IdNumber Name $ 6-24 Team $ StartWeight EndWeight;&lt;BR /&gt;
&lt;BR /&gt;
and left the data the same, the program picked up both observations. I took this code from the SAS Step by Step Programming book so I assume it should work the original way. If anyone can clue me in as to how to get the original code to work, I would appreciate it. &lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
DanD</description>
      <pubDate>Fri, 26 Feb 2010 16:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62470#M6321</guid>
      <dc:creator>DanD</dc:creator>
      <dc:date>2010-02-26T16:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: help with error in code</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62471#M6322</link>
      <description>I discovered the problem. Apparently SAS EG doesn't like tabs when entering data. When I removed the tabs the original code worked.&lt;BR /&gt;
&lt;BR /&gt;
DanD</description>
      <pubDate>Fri, 26 Feb 2010 16:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/help-with-error-in-code/m-p/62471#M6322</guid>
      <dc:creator>DanD</dc:creator>
      <dc:date>2010-02-26T16:24:39Z</dc:date>
    </item>
  </channel>
</rss>

