<?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: Modify the input data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311187#M67185</link>
    <description>im using sas university version</description>
    <pubDate>Sat, 12 Nov 2016 19:08:47 GMT</pubDate>
    <dc:creator>Feddy</dc:creator>
    <dc:date>2016-11-12T19:08:47Z</dc:date>
    <item>
      <title>Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311176#M67176</link>
      <description>&lt;P&gt;hi!! I able to read my text file using snipets in SAS university edition but struggling to modify the data.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:33:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311176#M67176</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T18:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311177#M67177</link>
      <description>&lt;P&gt;Wellcome to the forum &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You have to be more specific than that, what is your exact problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311177#M67177</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-11-12T18:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311179#M67178</link>
      <description>&lt;P&gt;Please post:&lt;/P&gt;
&lt;P&gt;1) your code to read the text file. Did you save it as sas dataset :&lt;/P&gt;
&lt;P&gt;2) your code trying to modify the dadset ? the text file ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; and the log of running this code.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; describe what modification you want to do.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:44:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311179#M67178</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-12T18:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311180#M67179</link>
      <description>&lt;P&gt;Hi,its simple i have my raw data in my folder and i print it easily but i want in a formatted way. How i import raw data and make some modification like read it as formatted way. &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;Alicia Grossman 13 c 10-28-2008 7.8 6.5 7.2 8.0 7.9&lt;BR /&gt;Matthew Lee 9 D 10-30-2008 6.5 5.9 6.8 6.0 8.1&lt;BR /&gt;Elizabeth Garcia 10 C 10-29-2008 8.9 7.9 8.5 9.0 8.8&lt;BR /&gt;Lori Newcombe 6 D 10-30-2008 6.7 5.6 4.9 5.2 6.1&lt;BR /&gt;Jose Martinez 7 d 10-31-2008 8.9 9.510.0 9.7 9.0&lt;BR /&gt;Brian Williams 11 C 10-29-2008 7.8 8.4 8.5 7.9 8.0&lt;/P&gt;&lt;P&gt;Above data in a&amp;nbsp;formatted way.&lt;/P&gt;&lt;P&gt;I am using sas university version 9.2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:46:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311180#M67179</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T18:46:05Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311181#M67180</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Data:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alicia Grossman 13 c 10-28-2008 7.8 6.5 7.2 8.0 7.9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matthew Lee 9 D 10-30-2008 6.5 5.9 6.8 6.0 8.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elizabeth Garcia 10 C 10-29-2008 8.9 7.9 8.5 9.0 8.8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lori Newcombe 6 D 10-30-2008 6.7 5.6 4.9 5.2 6.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose Martinez 7 d 10-31-2008 8.9 9.510.0 9.7 9.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian Williams 11 C 10-29-2008 7.8 8.4 8.5 7.9 8.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I able to print the above data but i wanted in a formated way.Please help me out&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using SAS university version&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:49:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311181#M67180</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T18:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311182#M67181</link>
      <description>&lt;P&gt;How would you distinct between first name and last name in case of name contains 3 strings ?&lt;/P&gt;
&lt;P&gt;You better have a delimiter between the variables like comma or other character.&lt;/P&gt;
&lt;P&gt;You want it formated - give an example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data my_data;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; infile datalines;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; input &amp;nbsp;FName $ LName $ var1 $ date_x&amp;nbsp;mmffyy10. var3 var4 var5 var6 best 4.1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;format date_x &amp;nbsp;date9.;&lt;/P&gt;
&lt;P&gt;datalines;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alicia Grossman 13 c 10-28-2008 7.8 6.5 7.2 8.0 7.9&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Matthew Lee 9 D 10-30-2008 6.5 5.9 6.8 6.0 8.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Elizabeth Garcia 10 C 10-29-2008 8.9 7.9 8.5 9.0 8.8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Lori Newcombe 6 D 10-30-2008 6.7 5.6 4.9 5.2 6.1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose Martinez 7 d 10-31-2008 8.9 9.510.0 9.7 9.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian Williams 11 C 10-29-2008 7.8 8.4 8.5 7.9 8.0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 18:57:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311182#M67181</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-12T18:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311184#M67182</link>
      <description>&lt;P&gt;Issue is i am not able to import the file. I cleared with how to import the file using snippet but i need a formatted output which is in any format.&lt;/P&gt;&lt;P&gt;DATA contest;&lt;BR /&gt;INFILE ’/folders/myshortcuts/My_Folders/New Text Document’;&lt;BR /&gt;INPUT Name $16. Age 3. +1 Type $1. +1 Date MMDDYY10.&lt;BR /&gt;(Score1 Score2 Score3 Score4 Score5) (4.1);&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA = contest;&lt;BR /&gt;TITLE ’Pumpkin Carving Contest’;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 19:03:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311184#M67182</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T19:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311185#M67183</link>
      <description>&lt;P&gt;Issue is i am not able to import the file. I cleared with how to import the file using snippet but i need a formatted output which is in any format.&lt;/P&gt;&lt;P&gt;DATA contest;&lt;BR /&gt;INFILE ’/folders/myshortcuts/My_Folders/New Text Document’;&lt;BR /&gt;INPUT Name $16. Age 3. +1 Type $1. +1 Date MMDDYY10.&lt;BR /&gt;(Score1 Score2 Score3 Score4 Score5) (4.1);&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA = contest;&lt;BR /&gt;TITLE ’Pumpkin Carving Contest’;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 19:04:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311185#M67183</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T19:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311186#M67184</link>
      <description>i am confusing you ??&lt;BR /&gt;</description>
      <pubDate>Sat, 12 Nov 2016 19:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311186#M67184</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311187#M67185</link>
      <description>im using sas university version</description>
      <pubDate>Sat, 12 Nov 2016 19:08:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311187#M67185</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T19:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311188#M67186</link>
      <description>&lt;P&gt;Assuming data contest satifies you, you can print it by:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=contest noobs;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; var name age type date score1-score5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; format name $16. age 2. type $1. date mmddyy10. score1-scror5 4.1;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;that will give you a formated report .&lt;/P&gt;</description>
      <pubDate>Sat, 12 Nov 2016 19:12:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311188#M67186</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-12T19:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311189#M67187</link>
      <description>/** Import an Txt file. **/&lt;BR /&gt;PROC IMPORT DATAFILE="/folders/myshortcuts/My_Folders/New Text Document.txt"&lt;BR /&gt;OUT=WORK.Cont;&lt;BR /&gt;DBMS=txt;&lt;BR /&gt;REPLACE&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;/** Print the results**/&lt;BR /&gt;&lt;BR /&gt;PROC PRINT DATA=work.Cont;&lt;BR /&gt;RUN;&lt;BR /&gt;this is my import txt snippet where i can write the program??</description>
      <pubDate>Sat, 12 Nov 2016 19:22:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311189#M67187</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-12T19:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311210#M67197</link>
      <description>&lt;P&gt;You could save a lot of time if you had post your log and your output.&lt;/P&gt;
&lt;P&gt;I'm using too SAS UE and this is not an issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Relating to your code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC IMPORT DATAFILE="/folders/myshortcuts/My_Folders/New Text Document.txt"
OUT=WORK.Cont;
DBMS=txt;
REPLACE
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;each row is imported as one observation without parsing the data into variables.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;that is because you have no delimiters between the variables.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;you can't use space as delimiter unless you want first name and last name separated.&lt;/P&gt;
&lt;P&gt;that's why I asked:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;How would you distinct between first name and last name in case of name contains 3 strings ?&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now relating to your first trial code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA contest;
INFILE ’/folders/myshortcuts/My_Folders/New Text Document’;
INPUT Name $16. Age 3. +1 Type $1. +1 Date MMDDYY10.
(Score1 Score2 Score3 Score4 Score5) (4.1);
RUN;
PROC PRINT DATA = contest;
TITLE ’Pumpkin Carving Contest’;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;when I run it I got 3 rows only.&lt;/P&gt;
&lt;P&gt;to overcome it you need add &lt;STRONG&gt;TRUNCOVER&lt;/STRONG&gt; option to the INFILE statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;INFILE ’/folders/myshortcuts/My_Folders/New Text Document’ &lt;STRONG&gt;truncover&lt;/STRONG&gt;;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;another issue - in case the name is shorter then 16 characters, the age come to be part of the name.&lt;/P&gt;
&lt;P&gt;check the log - there are notes starting:&lt;STRONG&gt; Invalid data for ...&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;once again, that is because data miss delimiters between variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My solution:&lt;/P&gt;
&lt;P&gt;enter &lt;STRONG&gt;commas&lt;/STRONG&gt; between the variables, define &lt;STRONG&gt;delimiter=','&lt;/STRONG&gt; in the infile and add &lt;STRONG&gt;truncover&lt;/STRONG&gt; option,&lt;/P&gt;
&lt;P&gt;as in:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data my_data;&lt;BR /&gt;    length name $16 datex $10;
    infile datalines &lt;STRONG&gt;dlm=',' truncover ;&lt;/STRONG&gt;
    input  Name $ age $ type $ datex $ score1-score5 4.1 ;&lt;BR /&gt;    date = input(datex, mmddyy10.); drop datex;
    format date mmddyy10.;
datalines;
Alicia Grossman, 13, c, 10-28-2008, 7.8, 6.5, 7.2, 8.0, 7.9
Matthew Lee, 9, D, 10-30-2008, 6.5, 5.9, 6.8, 6.0, 8.1
Elizabeth Garcia, 10, C, 10-29-2008, 8.9, 7.9, 8.5, 9.0, 8.8
Lori Newcombe, 6, D, 10-30-2008, 6.7, 5.6, 4.9, 5.2, 6.1
Jose Martinez, 7, d, 10-31-2008, 8.9, 9.5, 10.0, 9.7, 9.0
Brian Williams, 11, C, 10-29-2008, 7.8, 8.4, 8.5, 7.9, 8.0
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 13 Nov 2016 03:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311210#M67197</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-13T03:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311219#M67205</link>
      <description>&lt;P&gt;There are SAS tutorials here:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/training/tutorial/" target="_blank"&gt;http://support.sas.com/training/tutorial/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your particular case, you probably want to create a SAS program and then work off that. It sounds like you may be working in the Visual Programmer side?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 04:47:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311219#M67205</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-13T04:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311242#M67212</link>
      <description>&lt;P&gt;Sir,&lt;/P&gt;&lt;P&gt;I not yet get the output.If there any problem in my code or the path is wrong &amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA contest;&lt;BR /&gt;INFILE ’/folders/myshortcuts/My_Folders/New.txt’ truncover;&lt;BR /&gt;INPUT Name $16. Age 3. +1 Type $1. +1 Date MMDDYY10.&lt;BR /&gt;(Score1 Score2 Score3 Score4 Score5) (4.1);&lt;BR /&gt;RUN;&lt;BR /&gt;PROC PRINT DATA = contest;&lt;BR /&gt;TITLE ’Pumpkin Carving Contest’;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 14:17:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311242#M67212</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-13T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311243#M67213</link>
      <description>&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13134iB8E3F90E3EAD6712/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS Log window.jpg" title="SAS Log window.jpg" /&gt;</description>
      <pubDate>Sun, 13 Nov 2016 14:19:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311243#M67213</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-13T14:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311253#M67215</link>
      <description>&lt;P&gt;yes, You are correct.how to change my Var name &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13135i800880BCC95F6905/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;</description>
      <pubDate>Sun, 13 Nov 2016 16:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311253#M67215</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-13T16:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311275#M67232</link>
      <description>&lt;P&gt;You probably got variables name as var1-var8 using proc import,&lt;/P&gt;
&lt;P&gt;because your data does not include first row with colomn labels.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can rename variables either in the out clause of proc import, as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;out=contest(rename=&lt;/STRONG&gt;(var1=FName var2=LName var3=age ...etc. ...))&lt;/P&gt;
&lt;P&gt;or, alternativly,&amp;nbsp;use as second step:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;proc datasets lib=&amp;lt;libarary holding the dataset&amp;gt;;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; modify contest;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; rename var1=FName var2=LName var3=age ...etc ...;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;run; quit;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2016 19:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311275#M67232</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-13T19:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311461#M67318</link>
      <description>&lt;P&gt;sir!!! thank you so much i got the output.Just one thing need to clear, shall i specify my own length for the each variables?? if possible how can i make please give me as solution.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13137i640E5F06B7D92B35/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.jpg" title="Capture.jpg" /&gt;</description>
      <pubDate>Mon, 14 Nov 2016 17:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311461#M67318</guid>
      <dc:creator>Feddy</dc:creator>
      <dc:date>2016-11-14T17:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify the input data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311499#M67342</link>
      <description>&lt;P&gt;Renaming the variable name does not change its length.&amp;nbsp;&lt;BR /&gt;You may select specific character variables, only if you find it preferable, and redefine their length.&lt;/P&gt;
&lt;P&gt;It is not a must.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 19:49:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Modify-the-input-data/m-p/311499#M67342</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2016-11-14T19:49:00Z</dc:date>
    </item>
  </channel>
</rss>

