<?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: Variable is not on file in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801016#M40372</link>
    <description>Hi Kurt- I am using SAS studio via browser, no such option</description>
    <pubDate>Wed, 09 Mar 2022 07:46:09 GMT</pubDate>
    <dc:creator>programeerSAS</dc:creator>
    <dc:date>2022-03-09T07:46:09Z</dc:date>
    <item>
      <title>Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801007#M40369</link>
      <description>&lt;P&gt;Hi there- I am running this "simple" piece of code to isolate data based on a date variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="programeerSAS_0-1646806539487.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69271i5C4F47CC7BC5AC01/image-size/medium?v=v2&amp;amp;px=400" role="button" title="programeerSAS_0-1646806539487.png" alt="programeerSAS_0-1646806539487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="programeerSAS_0-1646813284108.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69272iCF916997E4051668/image-size/medium?v=v2&amp;amp;px=400" role="button" title="programeerSAS_0-1646813284108.png" alt="programeerSAS_0-1646813284108.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;data electric.elec_jan;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp;set electric.elec;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp; &amp;nbsp; where DATE &amp;lt; '31Jan2022'd;&lt;/DIV&gt;&lt;DIV class=""&gt;run:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;However, the above gives this error even though "DATE" IS in the dataset?&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Variable DATE is not on file ELECTRIC.ELEC&lt;/DIV&gt;&lt;DIV class=""&gt;Please help&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801007#M40369</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T08:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801009#M40370</link>
      <description>&lt;P&gt;Please post the code of proc contents also.&lt;/P&gt;
&lt;P&gt;In the set statement you are using electric.elec, but the error message complains about Date not being in ELECTRIC.SBSA_ELEC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 06:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801009#M40370</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-03-09T06:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801011#M40371</link>
      <description>&lt;P&gt;The log is not from the code you posted, as&amp;nbsp;&lt;SPAN&gt;ELECTRIC.SBSA_ELEC is not used there.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When posting logs,&amp;nbsp;&lt;STRONG&gt;ALWAYS&lt;/STRONG&gt; include the complete code, and use this button to post it:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The "little running man" right next to it is for SAS code.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 06:45:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801011#M40371</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-09T06:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801016#M40372</link>
      <description>Hi Kurt- I am using SAS studio via browser, no such option</description>
      <pubDate>Wed, 09 Mar 2022 07:46:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801016#M40372</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T07:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801017#M40373</link>
      <description>Hi Andreas - the proc contents snippet showing the variable that is causing the problem is in the original post</description>
      <pubDate>Wed, 09 Mar 2022 07:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801017#M40373</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801021#M40374</link>
      <description>&lt;P&gt;I tried this code as well&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; DATE2 = INPUT(PUT(DATE,8.),YYMMDD10.);&lt;BR /&gt;  FORMAT DATE2 YYMMDD8.;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But all that does is create another DATE and DATE2 field- both empty and no errors in the log.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is as if I am unable to reference the DATE field of the original dataset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This code also did not work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;my_date_char = put(DATE, 8.);&lt;/PRE&gt;&lt;P&gt;It creates anothe DATE filed as opposed to converting the existing DATE field to a character value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 08:57:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801021#M40374</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T08:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801022#M40375</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299508"&gt;@programeerSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Kurt- I am using SAS studio via browser, no such option&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;These buttons are part of the &lt;EM&gt;SAS Community&lt;/EM&gt; interface, not SAS Studio. In SAS Studio, switch to the Log tab, mark and copy the log text, then paste it into the appropriate window here as described.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801022#M40375</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-09T09:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801023#M40376</link>
      <description>&lt;P&gt;Start at the beginning of your code. Inspect the first dataset which you use; take note of the type and other attributes there.&lt;/P&gt;
&lt;P&gt;Then, once you have verified that date is a numeric variable with a date format attached and does have non-missing values (e.g. run PROC FREQ on the dataset), proceed down the path of your process; see if you have any NOTEs beyond those recording execution time and the number of observations and variables in newly created datasets.&lt;/P&gt;
&lt;P&gt;If anything beyond this happens and puzzles you, post the log as described.&lt;/P&gt;
&lt;P&gt;A "good" step has nothing in the log beyond the code, the execution time (and other execution stats), the numbers of observations in incoming and outgoing datasets, and the number of variables in a new dataset. ANY further NOTE points to a possible issue and must be dealt with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The more details you provide, the easier it is for us to help you; therefore, always post complete codes and complete logs, so any message in the log is in the right context.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801023#M40376</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-09T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801026#M40377</link>
      <description>&lt;P&gt;This is how I read in the data&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc import datafile= "/home/u44662193/Electricity/CMP5.FULLEXT.CSV"&lt;BR /&gt;dbms=dlm&lt;BR /&gt;out=electric.Elec&lt;BR /&gt;replace;&lt;BR /&gt;GETNAMES=YES;&lt;/P&gt;&lt;P&gt;delimiter=',';&lt;BR /&gt;guessingrows=10000;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS assigned "DATE" as the first field correctly, and it is informant yymmdd10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;P class=""&gt;The CONTENTS Procedure&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Data Set NameObservationsMember TypeVariablesEngineIndexesCreatedObservation LengthLast ModifiedDeleted ObservationsProtectionCompressedData Set TypeSortedLabel&amp;nbsp;Data Representation&amp;nbsp;Encoding&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;ELECTRIC.ELEC&lt;/TD&gt;&lt;TD&gt;2862498&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DATA&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;V9&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022/03/09 11:46:22&lt;/TD&gt;&lt;TD&gt;80&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022/03/09 11:46:22&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;NO&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SOLARIS_X86_64, LINUX_X86_64, ALPHA_TRU64, LINUX_IA64&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;utf-8 Unicode (UTF-8)&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;Engine/Host Dependent InformationData Set Page SizeNumber of Data Set PagesFirst Data PageMax Obs per PageObs in First Data PageNumber of Data Set RepairsFilenameRelease CreatedHost CreatedInode NumberAccess PermissionOwner NameFile SizeFile Size (bytes)&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;131072&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1751&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1635&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;1599&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;/home/u44662193/elec.sas7bdat&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;9.0401M6&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Linux&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;199361150&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;rw-r--r--&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;u44662193&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;219MB&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;229638144&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;Alphabetic List of Variables and Attributes# Variable Type Len Format Informat13578462&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;DATE&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;YYMMDD10.&lt;/TD&gt;&lt;TD&gt;YYMMDD10.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ACC NUM&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST32.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;AMOUNT&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST32.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;DESCR&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;20&lt;/TD&gt;&lt;TD&gt;$20.&lt;/TD&gt;&lt;TD&gt;$20.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;NARR&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;15&lt;/TD&gt;&lt;TD&gt;$15.&lt;/TD&gt;&lt;TD&gt;$15.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;SER NO&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;1&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;TD&gt;$1.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;STATEMENT CODE&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST32.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;TC&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST32.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Running your proc freq to check the DATE field it says this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc freq data = electric.Elec;&lt;BR /&gt;tables Date;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;&lt;DIV class=""&gt;68&lt;/DIV&gt;&lt;DIV class=""&gt;69 proc freq data = electric.Elec;&lt;/DIV&gt;&lt;DIV class=""&gt;70 tables Date;&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: Variable DATE not found.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Which brings me back to the previous reply, it is as if I am unable to do ANYTHING with this DATE field that SAS created for me as part of the import.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;#stumped&lt;/DIV&gt;</description>
      <pubDate>Wed, 09 Mar 2022 09:51:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801026#M40377</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T09:51:31Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801029#M40378</link>
      <description>&lt;P&gt;Please open your csv file with a text editor (not with Excel!) and copy/paste the first few lines into the code box (&amp;lt;/&amp;gt; button).&lt;/P&gt;
&lt;P&gt;Also, copy the import data step (which PROC IMPORT creates) from the log and post it into a code box.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 10:02:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801029#M40378</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-09T10:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801030#M40379</link>
      <description>1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;68&lt;BR /&gt;69 proc import datafile= "/home/u44662193/Electricity/CMP5.FULLEXT.CSV"&lt;BR /&gt;70 dbms=dlm&lt;BR /&gt;71 out=electric.Elec&lt;BR /&gt;72 replace;&lt;BR /&gt;73 GETNAMES=YES;&lt;BR /&gt;74&lt;BR /&gt;75 delimiter=',';&lt;BR /&gt;76 guessingrows=10000;&lt;BR /&gt;77&lt;BR /&gt;78 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update mode. Temporary parameter values will be saved to&lt;BR /&gt;WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;79 /**********************************************************************&lt;BR /&gt;80 * PRODUCT: SAS&lt;BR /&gt;81 * VERSION: 9.4&lt;BR /&gt;82 * CREATOR: External File Interface&lt;BR /&gt;83 * DATE: 09MAR22&lt;BR /&gt;84 * DESC: Generated SAS Datastep Code&lt;BR /&gt;85 * TEMPLATE SOURCE: (None Specified.)&lt;BR /&gt;86 ***********************************************************************/&lt;BR /&gt;87 data ELECTRIC.ELEC ;&lt;BR /&gt;88 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;89 infile '/home/u44662193/Electricity/CMP5.FULLEXT.CSV' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;BR /&gt;90 informat " DATE"N yymmdd10. ;&lt;BR /&gt;91 informat TC best32. ;&lt;BR /&gt;92 informat "ACC NUM"N best32. ;&lt;BR /&gt;93 informat "SER NO"N $1. ;&lt;BR /&gt;94 informat AMOUNT best32. ;&lt;BR /&gt;95 informat "STATEMENT CODE"N best32. ;&lt;BR /&gt;96 informat DESCR $20. ;&lt;BR /&gt;97 informat NARR $15. ;&lt;BR /&gt;98 format " DATE"N yymmdd10. ;&lt;BR /&gt;99 format TC best12. ;&lt;BR /&gt;100 format "ACC NUM"N best12. ;&lt;BR /&gt;101 format "SER NO"N $1. ;&lt;BR /&gt;102 format AMOUNT best12. ;&lt;BR /&gt;103 format "STATEMENT CODE"N best12. ;&lt;BR /&gt;104 format DESCR $20. ;&lt;BR /&gt;105 format NARR $15. ;&lt;BR /&gt;106 input&lt;BR /&gt;107 " DATE"N&lt;BR /&gt;108 TC&lt;BR /&gt;109 "ACC NUM"N&lt;BR /&gt;110 "SER NO"N $&lt;BR /&gt;111 AMOUNT&lt;BR /&gt;112 "STATEMENT CODE"N&lt;BR /&gt;113 DESCR $&lt;BR /&gt;114 NARR $&lt;BR /&gt;115 ;&lt;BR /&gt;116 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;117 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile '/home/u44662193/Electricity/CMP5.FULLEXT.CSV' is:&lt;BR /&gt;Filename=/home/u44662193/Electricity/CMP5.FULLEXT.CSV,&lt;BR /&gt;Owner Name=u44662193,Group Name=oda,&lt;BR /&gt;Access Permission=-rw-r--r--,&lt;BR /&gt;Last Modified=03 March 2022 21:47:02,&lt;BR /&gt;File Size (bytes)=286296808&lt;BR /&gt;&lt;BR /&gt;NOTE: 2862498 records were read from the infile '/home/u44662193/Electricity/CMP5.FULLEXT.CSV'.&lt;BR /&gt;The minimum record length was 98.&lt;BR /&gt;The maximum record length was 112.&lt;BR /&gt;NOTE: The data set ELECTRIC.ELEC has 2862498 observations and 8 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 3.76 seconds&lt;BR /&gt;user cpu time 2.37 seconds&lt;BR /&gt;system cpu time 0.26 seconds&lt;BR /&gt;memory 11772.56k&lt;BR /&gt;OS Memory 36636.00k&lt;BR /&gt;Timestamp 2022/03/09 10:05:08 AM&lt;BR /&gt;Step Count 30 Switch Count 3&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 394&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 4061&lt;BR /&gt;Involuntary Context Switches 4&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 448272&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;2862498 rows created in ELECTRIC.ELEC from /home/u44662193/Electricity/CMP5.FULLEXT.CSV.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: ELECTRIC.ELEC data set was successfully created.&lt;BR /&gt;NOTE: The data set ELECTRIC.ELEC has 2862498 observations and 8 variables.&lt;BR /&gt;NOTE: PROCEDURE IMPORT used (Total process time):&lt;BR /&gt;real time 7.23 seconds&lt;BR /&gt;user cpu time 5.66 seconds&lt;BR /&gt;system cpu time 0.35 seconds&lt;BR /&gt;memory 11772.56k&lt;BR /&gt;OS Memory 37152.00k&lt;BR /&gt;Timestamp 2022/03/09 10:05:08 AM&lt;BR /&gt;Step Count 30 Switch Count 11&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 7781&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 4209&lt;BR /&gt;Involuntary Context Switches 9&lt;BR /&gt;Block Input Operations 288&lt;BR /&gt;Block Output Operations 448360&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;118&lt;BR /&gt;119 proc freq data = electric.Elec;&lt;BR /&gt;120 tables DATE;&lt;BR /&gt;ERROR: Variable DATE not found.&lt;BR /&gt;121 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE FREQ 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 1787.68k&lt;BR /&gt;OS Memory 30888.00k&lt;BR /&gt;Timestamp 2022/03/09 10:05:08 AM&lt;BR /&gt;Step Count 31 Switch Count 0&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 253&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 1&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;122&lt;BR /&gt;123 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;BR /&gt;133</description>
      <pubDate>Wed, 09 Mar 2022 10:07:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801030#M40379</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T10:07:21Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801032#M40380</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="programeerSAS_0-1646820524062.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69274i8E13841C1FD7216D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="programeerSAS_0-1646820524062.png" alt="programeerSAS_0-1646820524062.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 10:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801032#M40380</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T10:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801037#M40381</link>
      <description>&lt;P&gt;See this VERY important log line:&lt;/P&gt;
&lt;PRE&gt;informat " DATE"N yymmdd10. ;&lt;/PRE&gt;
&lt;P&gt;Your CSV file obviously contains blank space in the header line, so PROC IMPORT dutifully uses a name literal (quotes and trailing N) to keep this in the variable name, which will now force you to do the same throughout your code, which is NOT GOOD AT ALL (unless you crave unnecessary extra work).&lt;/P&gt;
&lt;P&gt;Submit&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before running proc import, or (best option by far) copy the data step code from the log, fix it, and run that directly. Replace the blanks in variable names with underlines, so you can use the variables without name literals.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 10:42:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801037#M40381</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-09T10:42:26Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801039#M40382</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kudos - that was certainly a piece of masterfully guiding the OP to provide the info you needed to identify the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 11:08:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801039#M40382</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2022-03-09T11:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801047#M40383</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Kudos - that was certainly a piece of masterfully guiding the OP to provide the info you needed to identify the issue.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I had the same thought. Thanks,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;, for expressing it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This thread is also yet another example where &lt;EM&gt;complete&lt;/EM&gt; &lt;EM&gt;listing output&lt;/EM&gt;, posted into a code box, would have clarified things very early:&lt;/P&gt;
&lt;PRE&gt;Alphabetic List of Variables and Attributes

#    Variable    Type    Len

1     DATE       Num       8
2    ACC NUM     Num       8
...&lt;/PRE&gt;
&lt;P&gt;Both the indentation of "DATE" and the seemingly non-alphabetic sort order -- neither of which could be seen in the &lt;EM&gt;partial HTML output&lt;/EM&gt; shown in &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299508"&gt;@programeerSAS&lt;/a&gt;'s initial post -- would have revealed the cause of the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 12:00:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801047#M40383</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2022-03-09T12:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801050#M40384</link>
      <description>&lt;P&gt;Hi Kurt-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use to code a lot in SAS but the import step had this one little problem on the raw data side that you identified spot-on!&amp;nbsp;&lt;BR /&gt;I have never seen or used the&amp;nbsp;&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but now I know it!&lt;BR /&gt;Thank you sincerely for repeatedly looking at my problem and solving it! You are a machine!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 11:56:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801050#M40384</guid>
      <dc:creator>programeerSAS</dc:creator>
      <dc:date>2022-03-09T11:56:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable is not on file</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801092#M40385</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/299508"&gt;@programeerSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Kurt-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I use to code a lot in SAS but the import step had this one little problem on the raw data side that you identified spot-on!&amp;nbsp;&lt;BR /&gt;I have never seen or used the&amp;nbsp;&lt;/P&gt;
&lt;PRE class=""&gt;&lt;CODE&gt;options validvarname=v7;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;but now I know it!&lt;BR /&gt;Thank you sincerely for repeatedly looking at my problem and solving it! You are a machine!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It is quite possible that you hadn't needed the option before. The validvarname option was established to handle, mostly, variables in external databases that allowed different variable naming conventions. Then some of the SAS interfaces lately have defaulted to the Validvarname=any which allows these other naming conventions. You may also run into issues with VALIDMEMNAME=Extend which allows other characters for data set and other file names though won't create member names with leading spaces.The option VALIDMEMNAME=compatible sets the "normal" SAS data set name rules.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 15:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Variable-is-not-on-file/m-p/801092#M40385</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-09T15:21:37Z</dc:date>
    </item>
  </channel>
</rss>

