<?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 assignment statement in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209188#M11337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your assignment should be in a data step:&lt;/P&gt;&lt;P&gt;TITLE1 'Analysis of the 2010 Pontotoc Populus Consolidated Test Ages 1-4';&lt;/P&gt;&lt;P&gt;FOOTNOTE1 "Potential Gains from Selection of Eastern Cottonwood and Hybrid Poplars on";&lt;/P&gt;&lt;P&gt;FOOTNOTE2 "Lower Mississippi Alluvial Floodplain and Upland Site";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.PPpTEST2010&lt;/P&gt;&lt;P&gt;DATAFILE= "E:\sasmi\NiuDATA2010PontotocTestAge1to4.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCELCS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM11='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM12='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM21='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM22='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM31='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM32='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM41='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM42='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;data ppptest2010;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set ppptest2010;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL2 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE2D * AGE2D ) * AGE2HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL3 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE3D * AGE3D ) * AGE3HT )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL4 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE4D * AGE4D ) * AGE4HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; run;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PROC SORT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*PROC MEANS NOPRINT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*VAR AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;*OUTPUT OUT=GENOTYPE MEAN=AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM;&lt;/P&gt;&lt;P&gt;CLASS BLOCK CLONE;&lt;/P&gt;&lt;P&gt;MODEL AGE1HT AGE2D AGE2HT VOL2 AGE3D AGE3HT VOL3 AGE4D AGE4HT VOL4=BLOCK CLONE BLOCK*CLONE;&lt;/P&gt;&lt;P&gt;LSMEANS BLOCK;&lt;/P&gt;&lt;P&gt;MEANS BLOCK/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;LSMEANS CLONE;&lt;/P&gt;&lt;P&gt;MEANS CLONE/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2015 20:01:14 GMT</pubDate>
    <dc:creator>tlk</dc:creator>
    <dc:date>2015-07-22T20:01:14Z</dc:date>
    <item>
      <title>Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209185#M11334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please I am trying to create some new&amp;nbsp; variables to a SAS data set through the use of an &lt;SPAN class="strong"&gt;assignment statement within the DATA step, and the process add been coming back with an error message as shown in green color statements below. Please I will appreciate it if anyone can put me through on what the problem and the possible way to tackle the error is.&amp;nbsp; The following are the log statements, showing the data step and the error messages, Thanks in anticipation of a helpful response.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: SAS (r) Proprietary Software 9.4 (TS1M1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Licensed to MISSISSIPPI STATE UNIVERSITY - SFA T&amp;amp;R, Site 70084845.&lt;/P&gt;&lt;P&gt;NOTE: This session is executing on the X64_7PRO&amp;nbsp; platform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Updated analytical products:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS/STAT 13.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS/ETS 13.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS/OR 13.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS/IML 13.1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SAS/QC 13.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: Additional host information:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; X64_7PRO WIN 6.1.7601 Service Pack 1 Workstation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: SAS initialization used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.24 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.95 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; TITLE1 'Analysis of the 2010 Pontotoc Populus Consolidated Test Ages 1-4';&lt;/P&gt;&lt;P&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp; FOOTNOTE1 "Potential Gains from Selection of Eastern Cottonwood and Hybrid Poplars on";&lt;/P&gt;&lt;P&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp; FOOTNOTE2 "Lower Mississippi Alluvial Floodplain and Upland Site";&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC IMPORT OUT= WORK.PPpTEST2010&lt;/P&gt;&lt;P&gt;6&amp;nbsp;&amp;nbsp;&amp;nbsp; DATAFILE= "E:\sasmi\NiuDATA2010PontotocTestAge1to4.xlsx"&lt;/P&gt;&lt;P&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCELCS;&lt;/P&gt;&lt;P&gt;8&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;/P&gt;&lt;P&gt;9&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=YES;&lt;/P&gt;&lt;P&gt;10&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;/P&gt;&lt;P&gt;11&amp;nbsp;&amp;nbsp; RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: WORK.PPPTEST2010 data set was successfully created.&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.PPPTEST2010 has 480 observations and 15 variables.&lt;/P&gt;&lt;P&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.42 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.12 seconds&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;12&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL2 = (0.21099 + (0.00221 * ((AGE2D*AGE2D) * AGE2HT));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000;"&gt; ----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;13&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL3 = (0.21099 + (0.00221 * ((AGE3D*AGE3D) * AGE3HT));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;14&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL4 = (0.21099 + (0.00221 * ((AGE4D*AGE4D) * AGE4HT));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:18:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209185#M11334</guid>
      <dc:creator>Dahcilsam</dc:creator>
      <dc:date>2015-07-22T19:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209186#M11335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where is you data step ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you want to add vol2, vol3 and vol4 to ppptest2010, I would do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ppptest2010;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set ppptest2010;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL2 = (0.21099 + (0.00221 * ((AGE2D*AGE2D) * AGE2HT));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL3 = (0.21099 + (0.00221 * ((AGE3D*AGE3D) * AGE3HT));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; VOL4 = (0.21099 + (0.00221 * ((AGE4D*AGE4D) * AGE4HT));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Laurent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209186#M11335</guid>
      <dc:creator>tlk</dc:creator>
      <dc:date>2015-07-22T19:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209187#M11336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the data step;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TITLE1 'Analysis of the 2010 Pontotoc Populus Consolidated Test Ages 1-4';&lt;/P&gt;&lt;P&gt;FOOTNOTE1 "Potential Gains from Selection of Eastern Cottonwood and Hybrid Poplars on";&lt;/P&gt;&lt;P&gt;FOOTNOTE2 "Lower Mississippi Alluvial Floodplain and Upland Site";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.PPpTEST2010&lt;/P&gt;&lt;P&gt;DATAFILE= "E:\sasmi\NiuDATA2010PontotocTestAge1to4.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCELCS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM11='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM12='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM21='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM22='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM31='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM32='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM41='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM42='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;VOL2 = ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; * (( AGE2D * AGE2D ) * AGE2HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;VOL3 = ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; * (( AGE3D * AGE3D ) * AGE3HT )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;VOL4 = ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; * (( AGE4D * AGE4D ) * AGE4HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PROC SORT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*PROC MEANS NOPRINT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*VAR AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;*OUTPUT OUT=GENOTYPE MEAN=AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM;&lt;/P&gt;&lt;P&gt;CLASS BLOCK CLONE;&lt;/P&gt;&lt;P&gt;MODEL AGE1HT AGE2D AGE2HT VOL2 AGE3D AGE3HT VOL3 AGE4D AGE4HT VOL4=BLOCK CLONE BLOCK*CLONE;&lt;/P&gt;&lt;P&gt;LSMEANS BLOCK;&lt;/P&gt;&lt;P&gt;MEANS BLOCK/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;LSMEANS CLONE;&lt;/P&gt;&lt;P&gt;MEANS CLONE/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 19:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209187#M11336</guid>
      <dc:creator>Dahcilsam</dc:creator>
      <dc:date>2015-07-22T19:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209188#M11337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your assignment should be in a data step:&lt;/P&gt;&lt;P&gt;TITLE1 'Analysis of the 2010 Pontotoc Populus Consolidated Test Ages 1-4';&lt;/P&gt;&lt;P&gt;FOOTNOTE1 "Potential Gains from Selection of Eastern Cottonwood and Hybrid Poplars on";&lt;/P&gt;&lt;P&gt;FOOTNOTE2 "Lower Mississippi Alluvial Floodplain and Upland Site";&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC IMPORT OUT= WORK.PPpTEST2010&lt;/P&gt;&lt;P&gt;DATAFILE= "E:\sasmi\NiuDATA2010PontotocTestAge1to4.xlsx"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; DBMS=EXCELCS;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTEXT=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; USEDATE=YES;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCANTIME=YES;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM11='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM12='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM21='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM22='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM31='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM32='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM41='99' THEN DELETE; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; *IF COMM42='99' THEN DELETE;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;data ppptest2010;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set ppptest2010;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL2 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE2D * AGE2D ) * AGE2HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL3 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE3D * AGE3D ) * AGE3HT )); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;VOL4 = ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.21099&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; + ( &lt;/SPAN&gt;&lt;STRONG style="background: white; color: teal; font-family: 'Courier New'; font-size: 10pt;"&gt;0.00221&lt;/STRONG&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; * (( AGE4D * AGE4D ) * AGE4HT ));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt; run;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PROC SORT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*PROC MEANS NOPRINT; &lt;/P&gt;&lt;P&gt;*BY BLOCK CLONE;&lt;/P&gt;&lt;P&gt;*VAR AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;*OUTPUT OUT=GENOTYPE MEAN=AGE1HT AGE2D AGE2HT AGE3D AGE3HT AGE4D AGE4HT VOL2 VOL3 VOL4;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC GLM;&lt;/P&gt;&lt;P&gt;CLASS BLOCK CLONE;&lt;/P&gt;&lt;P&gt;MODEL AGE1HT AGE2D AGE2HT VOL2 AGE3D AGE3HT VOL3 AGE4D AGE4HT VOL4=BLOCK CLONE BLOCK*CLONE;&lt;/P&gt;&lt;P&gt;LSMEANS BLOCK;&lt;/P&gt;&lt;P&gt;MEANS BLOCK/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;LSMEANS CLONE;&lt;/P&gt;&lt;P&gt;MEANS CLONE/DUNCAN ALPHA=0.01;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:01:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209188#M11337</guid>
      <dc:creator>tlk</dc:creator>
      <dc:date>2015-07-22T20:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209189#M11338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No data step. The data step would start with DATA . The Proc Import creates a data set but does no manipulation of data and ends at the RUN;&lt;/P&gt;&lt;P&gt;Add code such as TLK suggested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209189#M11338</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-07-22T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209190#M11339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What TLK meant is that you need to put&lt;/P&gt;&lt;P&gt;data ppptest2010;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set ppptest2010;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after the first RUN statment.&amp;nbsp; When SAS sees the RUN statement, it leave PROC IMPORT and waits for you to type a new DATA step or run a procedures (or issue global statements).&amp;nbsp; Those transformation statements are only valid inside of a DATA step. Otherwise, SAS doesn't know where to find the variables that you reference and where to put the variables that you create.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 20:03:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209190#M11339</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-07-22T20:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209191#M11340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, problem is solved. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 21:32:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209191#M11340</guid>
      <dc:creator>Dahcilsam</dc:creator>
      <dc:date>2015-07-22T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with assignment statement</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209192#M11341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to you all. Problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2015 21:33:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Problem-with-assignment-statement/m-p/209192#M11341</guid>
      <dc:creator>Dahcilsam</dc:creator>
      <dc:date>2015-07-22T21:33:02Z</dc:date>
    </item>
  </channel>
</rss>

