<?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: Exporting a file in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836664#M36100</link>
    <description>I have removed the drop=icustomerid and it worked. So I think the problem was that the icustomerid was not in the previous table. Is that right?</description>
    <pubDate>Tue, 04 Oct 2022 09:13:16 GMT</pubDate>
    <dc:creator>Sandeep77</dc:creator>
    <dc:date>2022-10-04T09:13:16Z</dc:date>
    <item>
      <title>Exporting a file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836663#M36099</link>
      <description>&lt;P&gt;Hi Experts,&lt;/P&gt;
&lt;P&gt;I am trying to export a file after running my previous codes but I am getting error. Can you please check what is the error in the code? Thanks&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=work.LIMA_Results_for_AAM (drop=icustomerid)
outfile="\\lowell2.local\shares\public\Trace\Trace Integrity Analyst Data\BAU_Processes\SAS\Enhanced TPT\Storage\Ad Hoc\HCE Trace - 27-09-2022\HCE_Trace (LIMA) for AAM &amp;amp;tdate..csv"
dbms=csv replace; 
run;

Error log:

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='LIMA Results';
4          %LET _CLIENTPROCESSFLOWNAME='LIMA Trace';
5          %LET _CLIENTPROJECTPATH='S:\Trace\Trace Integrity Analyst Data\BAU_Processes\SAS\Enhanced TPT\Storage\Ad Hoc\HCE Trace -
5        ! 27-09-2022\HCE Trace Request (LIMA &amp;amp; TPT).egp';
6          %LET _CLIENTPROJECTPATHHOST='LWLT5CG9322XFL';
7          %LET _CLIENTPROJECTNAME='HCE Trace Request (LIMA &amp;amp; TPT).egp';
8          %LET _SASPROGRAMFILE='';
9          %LET _SASPROGRAMFILEHOST='';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP_FV(9,4,4, 0,0,0) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         ODS LISTING GPATH=&amp;amp;sasworklocation;
18         FILENAME EGHTML TEMP;
19         ODS HTML5(ID=EGHTML) FILE=EGHTML
20             OPTIONS(BITMAP_MODE='INLINE')
21             %HTML5AccessibleGraphSupported
22             ENCODING='utf-8'
23             STYLE=HTMLBlue
24             NOGTITLE
25             NOGFOOTNOTE
26             GPATH=&amp;amp;sasworklocation
27         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
28         
29         proc export data=work.LIMA_Results_for_AAM (drop=icustomerid)
30         outfile="\\lowell2.local\shares\public\Trace\Trace Integrity Analyst Data\BAU_Processes\SAS\Enhanced TPT\Storage\Ad
30       ! Hoc\HCE Trace - 27-09-2022\HCE_Trace (LIMA) for AAM &amp;amp;tdate..csv"
31         dbms=csv replace;
32         run;

ERROR: The variable icustomerid in the DROP, KEEP, or RENAME list has never been referenced. 
ERROR: Export unsuccessful.  See SAS Log for details.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
      real time           0.29 seconds
      user cpu time       0.01 seconds
      system cpu time     0.00 seconds
      memory              7680.64k
      OS Memory           35432.00k
      Timestamp           10/04/2022 10:01:16 AM
      Step Count                        22  Switch Count  5
      
33         
34         %LET _CLIENTTASKLABEL=;
35         %LET _CLIENTPROCESSFLOWNAME=;
36         %LET _CLIENTPROJECTPATH=;
37         %LET _CLIENTPROJECTPATHHOST=;
38         %LET _CLIENTPROJECTNAME=;
39         %LET _SASPROGRAMFILE=;
40         %LET _SASPROGRAMFILEHOST=;
41         
42         ;*';*";*/;quit;run;
2                                                          The SAS System                             09:38 Tuesday, October 4, 2022

43         ODS _ALL_ CLOSE;
44         
45         
46         QUIT; RUN;
47         
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:03:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836663#M36099</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-10-04T09:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836664#M36100</link>
      <description>I have removed the drop=icustomerid and it worked. So I think the problem was that the icustomerid was not in the previous table. Is that right?</description>
      <pubDate>Tue, 04 Oct 2022 09:13:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836664#M36100</guid>
      <dc:creator>Sandeep77</dc:creator>
      <dc:date>2022-10-04T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting a file</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836673#M36101</link>
      <description>&lt;P&gt;Correct. You can only DROP something that is actually there.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 09:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Exporting-a-file/m-p/836673#M36101</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-10-04T09:56:35Z</dc:date>
    </item>
  </channel>
</rss>

