<?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: SAS EG  Import Task Mechanism in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454758#M29328</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I kind of figured out the Temp location for SAS EG&amp;nbsp; session on my Location Machine by Trial and Error.&amp;nbsp; But&amp;nbsp; good to see that it can be&amp;nbsp;easily known from the Configuration Details in the &lt;STRONG&gt;About SAS Enterprise Guide&lt;/STRONG&gt; Window. Thanks for this Tip.Always get to learn something from you on SAS EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My basic point in the above question is this:&amp;nbsp; When using the Import task&amp;nbsp; in SAS EG&amp;nbsp; to&amp;nbsp; Import&amp;nbsp; a Input text file&amp;nbsp; located either&amp;nbsp; on the SAS Server&amp;nbsp; or&amp;nbsp; on the Location Machine ( or Windows shared network Drive) , the &lt;STRONG&gt;selection&lt;/STRONG&gt; of the Option&amp;nbsp; &lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide&amp;nbsp;i&lt;/STRONG&gt;n &lt;STRONG&gt;Step 4&lt;/STRONG&gt;&amp;nbsp; of the Import task&amp;nbsp; Disables/Bypasses&amp;nbsp; the Cleansing of the Input Text file&amp;nbsp; even if I &lt;STRONG&gt;do not explicitly&lt;/STRONG&gt; choose&amp;nbsp; the Sub-Option: &lt;STRONG&gt;ByPass the Data Cleansing Process &lt;/STRONG&gt;under&amp;nbsp; the&lt;STRONG&gt; Performance &lt;/STRONG&gt;Option in&lt;STRONG&gt;&amp;nbsp;Step 1 &lt;/STRONG&gt;of the Import task.&amp;nbsp; Not sure if this how&amp;nbsp; SAS EG Import Task was designed to Work or if this is some kind of a bug.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Apr 2018 14:23:27 GMT</pubDate>
    <dc:creator>pchegoor</dc:creator>
    <dc:date>2018-04-17T14:23:27Z</dc:date>
    <item>
      <title>SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454597#M29319</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; am trying to&amp;nbsp; understand&amp;nbsp; how&amp;nbsp; the SAS EG Import Task works&amp;nbsp; when Importing a Text File&amp;nbsp; in 2 Scenarios that i&amp;nbsp; shall mention below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My&amp;nbsp;&amp;nbsp;SAS EG is Installed on Windows 7 Local machine and connects to a Remote SAS Server with&amp;nbsp;following Details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Version Details :&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS&amp;nbsp; EG :&amp;nbsp;&lt;/STRONG&gt; 7.15 HF3 (7.100.5.6132) (64-bit) , Installed on Windows 7 (64 bit)&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Remote Server :&amp;nbsp;&lt;/STRONG&gt; AIX (64 bit)&amp;nbsp; with&amp;nbsp; SAS 9.4 M4 .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Source Text File (PIPE Delimited)&amp;nbsp; size :&lt;/STRONG&gt; 1GB&amp;nbsp; . The Text file is present both on SAS Server and also Local machine&lt;BR /&gt; &lt;STRONG&gt;Free Space on Local Machine :&lt;/STRONG&gt; 21.8 GB&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;As most of you may know ,&amp;nbsp; Import task in SAS EG has 4 Steps&lt;BR /&gt; &lt;BR /&gt; &lt;EM&gt;1) Specify Data&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; 2) Select Data Source&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; 3) Define Field Attributes&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt; 4) Advanced Options&amp;nbsp; &amp;nbsp;&lt;/EM&gt; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is known a fact when Importing Text Files , SAS EG does perform Data Cleansing of the Source file&amp;nbsp; prior&amp;nbsp; to Importing the Data in the File. Also in the Step 1 of the Task , there is an sub-option under Option&amp;nbsp;&lt;STRONG&gt;Performance &lt;/STRONG&gt;to &lt;STRONG&gt;ByPass the Data Cleansing Process&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;In all the Scenarios I&amp;nbsp; discuss below this ByPass sub-option is disabled&amp;nbsp; ie&amp;nbsp; it is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;not selected&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;as&amp;nbsp; shown below. I also&amp;nbsp; &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;do not select&lt;/FONT&gt;&lt;/STRONG&gt; the sub-option&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Limit the amount of source data examined record and field attributes&lt;/STRONG&gt; as shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As such , i would expect all Records in the Text file to be scanned when determining Variable&amp;nbsp; attributes and also that Data cleansing shall&amp;nbsp; take place prior to the Import of the Data in the file.&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="Capture1.PNG" style="width: 574px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19844i2A5F432B2E725AE5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture1.PNG" alt="Capture1.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;P&gt;There is also another Option i&amp;nbsp; &amp;nbsp;use&amp;nbsp; which is on the Step 4 of the Import Task&amp;nbsp; called the&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of SAS Enterprise Guide&amp;nbsp;&lt;/STRONG&gt;Option.&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="Capture2.PNG" style="width: 565px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19846i4704CD16CCDC1933/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture2.PNG" alt="Capture2.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;P&gt;In each&amp;nbsp; Scenario&amp;nbsp; below&amp;nbsp; I&amp;nbsp; have the Import task&amp;nbsp; run &lt;STRONG&gt;without&amp;nbsp;&lt;/STRONG&gt; and &lt;STRONG&gt;with&lt;/STRONG&gt;&amp;nbsp; the Above Option selected and I&amp;nbsp; document what i observe.&lt;/P&gt;
&lt;P&gt;I have highlighted my Questions&amp;nbsp; in &lt;FONT color="#0000FF"&gt;Blue.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;SCENARIO 1&amp;nbsp; -&amp;nbsp; SAS EG Import of Text File on the SAS Server&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; As I proceed from Step 1 to Step 2 of the Import task, the task downloads a copy of the File&amp;nbsp; (1 GB)&amp;nbsp; &amp;nbsp;to Local Machine to&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;determine the Variable Attributes .&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I then Proceed from Step 2 -&amp;gt; Step 3 -&amp;gt; Step 4 choosing the defaults offered at each Step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; On Step 4 the Option :&lt;STRONG&gt;Generalize Import Step to Run outside of SAS Enterprise Guide&lt;/STRONG&gt; is &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;chosen.&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;After the Finish button is clicked on Step 4 , the task Status&amp;nbsp; in SAS shows&amp;nbsp; another&amp;nbsp;copy of the File (1 GB) is downloaded to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Local Machine from SAS Server.&amp;nbsp; Once this is done&amp;nbsp;&amp;nbsp;another copy&amp;nbsp; of the File (1 GB) which is a&amp;nbsp; cleansed file is created on&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Local&amp;nbsp;Machine by the task.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Cleansed File is then uploaded by the task&amp;nbsp; to SAS Server and Data Step Code generated by Import Task Runs and Import is&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Completed&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The&amp;nbsp; Import Task takes about &lt;STRONG&gt;4 Mins&lt;/STRONG&gt; to Complete.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; INFILE Statement from generated Data Step Code :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;    INFILE '/shrproj/saswork4/SAS_work3D070310001C_paasas03/#LN00014'
    LRECL=148
    ENCODING="LATIN1"
    TERMSTR=CRLF
    DLM='7F'x
    MISSOVER
    DSD ;
			  										&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;The INFILE Statement clearly points to the uploaded Temporary cleansed file : &lt;STRONG&gt;#LN00014&lt;/STRONG&gt; in the SAS_work path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Since 3&amp;nbsp; Copies of the Source files are downloaded/created on the Local Machine the Resultant Free Space of Local Machine&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;after completion of above Import Task&amp;nbsp; is&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;21.8 GB&lt;/STRONG&gt; - &lt;STRONG&gt;3 GB&lt;/STRONG&gt; =&lt;STRONG&gt;18.8 GB&lt;/STRONG&gt;&amp;nbsp; Free Space on Local Machine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;I now close the&amp;nbsp; SAS EG&amp;nbsp;Session&lt;/STRONG&gt;, the used up space on the Local machine due to Import above is freed up&amp;nbsp; and now the Free&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Space on the local Machine&amp;nbsp; is again back to&amp;nbsp;&lt;STRONG&gt;21.8 GB&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Next&amp;nbsp; I repeat&amp;nbsp; the above Import Task again , again&amp;nbsp; moving from Step 1 to Step 2 , the task&amp;nbsp; downloads a copy the File ( 1 GB)&amp;nbsp; to&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;the local&amp;nbsp;&amp;nbsp;machine, I then&amp;nbsp; proceed to Step and Step 4 . On Step 4 this time &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;I choose&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;SPAN&gt;Option :&lt;/SPAN&gt;&lt;STRONG&gt;Generalize Import Step to Run &lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;outside&amp;nbsp; of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide&amp;nbsp; &lt;/STRONG&gt;with maximum record length&amp;nbsp; chosen as &lt;STRONG&gt;32,767&amp;nbsp;&lt;/STRONG&gt;. I then click &lt;STRONG&gt;Finish&lt;/STRONG&gt;&amp;nbsp;. The Import task runs&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; this time&amp;nbsp;&amp;nbsp;starting with the Data Step Code running and the Import is done in &lt;STRONG&gt;51 secs&lt;/STRONG&gt; to complete.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Since Only 1 copy of the File is downloaded to the Local Machine , the resultant Free Space of Local Machine after completion&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; of above&amp;nbsp;Import&amp;nbsp; Task :&lt;STRONG&gt;21.8 GB&lt;/STRONG&gt; - &lt;STRONG&gt;1 GB&lt;/STRONG&gt; = &lt;STRONG&gt;20.8 GB&lt;/STRONG&gt;&amp;nbsp; Free Space on Local Machine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;SPAN&gt;INFILE Statement from generated Data Step Code :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;   INFILE '/shrproj/sastemp/Healthscape/Pharmacy_20180328.txt'
   LRECL=32767
   ENCODING="LATIN1"
   DLM='7c'x
   MISSOVER
   DSD ;&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;The INFILE&amp;nbsp; statement&amp;nbsp; clearly points to the actual path and name of the Text file and also&amp;nbsp; the LRECL value&amp;nbsp;of&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;32,767&lt;/STRONG&gt; is as&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; expected.Obviously this is a code&amp;nbsp; that&amp;nbsp; one can&amp;nbsp; use&amp;nbsp; Outside of SAS EG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;My question is :&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt; Why does&amp;nbsp; the Import Task not involve&amp;nbsp;any Downloading,Creating and uploading of&amp;nbsp; Cleansed file&amp;nbsp; in the above case? Why is the Cleansing Process Bypassed&amp;nbsp; in this Case? Does this&amp;nbsp; have to do with choosing the option&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide &lt;/STRONG&gt;in Step 4 of the Import task? If&amp;nbsp; so , why?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;I again close SAS EG Session&lt;/STRONG&gt;, the Free Space&amp;nbsp; of Local machine&amp;nbsp;again goes back to 21.8 GB and i&amp;nbsp; proceed&amp;nbsp; to&amp;nbsp; Scenario 2.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;U&gt;SCENARIO&amp;nbsp;2 -&amp;nbsp; SAS EG Import of&amp;nbsp; SameText File&amp;nbsp;from Local Machine&lt;/U&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The Import now&amp;nbsp; involves&amp;nbsp; the Same text file but this time Imported from the Local machine.I proceed from Step 1 --&amp;gt; Step 2--&amp;gt;Step 3 and Finally to Step 4. I &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;do not&lt;/STRONG&gt;&lt;/FONT&gt; choose&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide&lt;/STRONG&gt;. I click Finish to begin the Import Process.&amp;nbsp; At first a Cleansed&amp;nbsp; File&amp;nbsp; is created by the Task&amp;nbsp; on the Local machine with a copy of the File (1GB) ,&amp;nbsp; after&amp;nbsp; this is created it is uploaded to SAS Server , then the Data Step for the Import runs and Import&amp;nbsp; gets completed.&amp;nbsp; The Total time for the task is &lt;STRONG&gt;3 mins 17 secs&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;The Resultant Free Space on the Local Machine is now &lt;STRONG&gt;21.8 GB - 1 GB =20.8 GB&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;INFILE Statement from generated Data Step Code :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  INFILE '/shrproj/saswork4/SAS_work259F025900DE_paasas03/#LN00010'
  LRECL=148
  ENCODING="LATIN1"
  TERMSTR=CRLF
  DLM='7F'x
  MISSOVER
  DSD ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;The INFILE&amp;nbsp; Statement points to the uploaded Temporary Cleansed file&amp;nbsp; : &lt;STRONG&gt;#LN00010&lt;/STRONG&gt; on the&amp;nbsp; SAS Server in SAS work path.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;I&amp;nbsp; close the SAS EG Session again&lt;/STRONG&gt;,&amp;nbsp; the Free space of Local machine goes back to &lt;STRONG&gt;21.8 GB&lt;/STRONG&gt;.&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I again start Importing the&amp;nbsp; File from the Local machine ,proceed&amp;nbsp; from Step 1 --&amp;gt;Step 2 --&amp;gt;Step 3 --&amp;gt;Step 4. This time &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;I&lt;/STRONG&gt;&lt;/FONT&gt;&amp;nbsp;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;choose&lt;/STRONG&gt; &lt;/FONT&gt;the Option&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide &lt;/STRONG&gt;and a maximum record length of &lt;STRONG&gt;32,767&lt;/STRONG&gt;.I click on &lt;STRONG&gt;Finish&amp;nbsp;&lt;/STRONG&gt;and Import&amp;nbsp; begins.&amp;nbsp; I see that the Import task Status is transferring Cleansed file to&amp;nbsp; SAS Server ,&amp;nbsp; when this is done the Data Step for the Import Runs and the Import gets completed.&amp;nbsp; The Import task&amp;nbsp; takes about&amp;nbsp; &lt;STRONG&gt;1 min and 25 sec.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;There&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;is no change&amp;nbsp; in the Free Space on the Local Machine and it is still&lt;STRONG&gt; 21.8 GB.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;INFILE Statement from generated Data Step Code :&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  INFILE '/shrproj/saswork4/SAS_work104B01EF00E0_paasas03/#LN00010'
  LRECL=32767
  ENCODING="LATIN1"
  DLM='7c'x
 MISSOVER
  DSD ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Again the INFILE statement&amp;nbsp; points to the uploaded&amp;nbsp; temporary Cleansed File on the SAS Server : &lt;STRONG&gt;#LN00010&lt;/STRONG&gt; in the SAS Work path and LRECL =32,767 as expected.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;My question is :&lt;/STRONG&gt;&lt;FONT color="#000000"&gt; Where&amp;nbsp; is the Cleansed file ( which gets uploaded ) created? I do not any see change in the Free Space on the Local during the above Import Process&amp;nbsp; and thus i conclude the cleansed file is not created on the Local machine.&amp;nbsp; But while Import task is running i do see a message that cleansed file is being transferred to the SAS Server. Why is this so?&amp;nbsp; Again i assume&amp;nbsp; this has got to do with me selecting the Option&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide&amp;nbsp;&lt;/STRONG&gt;in Step 4 of the Import task&lt;STRONG&gt;. &lt;/STRONG&gt;But why?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;I am sorry the description above is a bit long&amp;nbsp; But my aim to clearly understand what's happening and therefore i&amp;nbsp; wanted to be as clear as possible&amp;nbsp; for&amp;nbsp; the audience inorder to get answers.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;FONT color="#0000FF"&gt;&lt;FONT color="#000000"&gt;Thanks.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 01:58:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454597#M29319</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2018-04-17T01:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454717#M29325</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14002"&gt;@pchegoor&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wow, you've done a lot of investigation here!&amp;nbsp; I have&lt;A href="https://blogs.sas.com/content/tag/import-data/" target="_self"&gt; two blog posts (which you have probably read)&lt;/A&gt; about how the Import Task works.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And then there is &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-does-quot-bypass-data-cleansing-process-quot-work-in-the/ta-p/238940" target="_self"&gt;this article about the "Bypass cleansing process"&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't explain all of the activity you're seeing.&amp;nbsp; The local space that is allocated to temp files (prepped by the task) can vary, and I'm not sure if checking the space available at regular intervals while EG is running is the best way to learn the story.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, if you want to take a peek into the temp files that EG creates locally during its session, you can find the temp folder by looking at Help-&amp;gt;About SAS Enterprise Guide,&amp;nbsp;&lt;STRONG&gt;Configuration Details&lt;/STRONG&gt;.&amp;nbsp; In that window, you'll see the temp files folder listed.&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="tempfiles.png" style="width: 594px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/19854i91C25C587C66BCAE/image-size/large?v=v2&amp;amp;px=999" role="button" title="tempfiles.png" alt="tempfiles.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're just curious about exactly what's happening, I'm not sure that I can provide more detail than I already have.&amp;nbsp; However, if there is a technical outcome that you are trying to achieve (faster imports, reduced use of temp space, ensure all processing happens on the server), then let us know.&amp;nbsp; The Import Data task is convenient and&amp;nbsp;is good at designing the import process.&amp;nbsp; But if you want to optimize the import of a file that has a known layout, you'll always do better by writing your own code (or modifying what the task produces to fit your situation).&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 12:43:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454717#M29325</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-04-17T12:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454758#M29328</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;I kind of figured out the Temp location for SAS EG&amp;nbsp; session on my Location Machine by Trial and Error.&amp;nbsp; But&amp;nbsp; good to see that it can be&amp;nbsp;easily known from the Configuration Details in the &lt;STRONG&gt;About SAS Enterprise Guide&lt;/STRONG&gt; Window. Thanks for this Tip.Always get to learn something from you on SAS EG.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My basic point in the above question is this:&amp;nbsp; When using the Import task&amp;nbsp; in SAS EG&amp;nbsp; to&amp;nbsp; Import&amp;nbsp; a Input text file&amp;nbsp; located either&amp;nbsp; on the SAS Server&amp;nbsp; or&amp;nbsp; on the Location Machine ( or Windows shared network Drive) , the &lt;STRONG&gt;selection&lt;/STRONG&gt; of the Option&amp;nbsp; &lt;STRONG&gt;Generalize Import Step to Run outside of&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;SAS Enterprise Guide&amp;nbsp;i&lt;/STRONG&gt;n &lt;STRONG&gt;Step 4&lt;/STRONG&gt;&amp;nbsp; of the Import task&amp;nbsp; Disables/Bypasses&amp;nbsp; the Cleansing of the Input Text file&amp;nbsp; even if I &lt;STRONG&gt;do not explicitly&lt;/STRONG&gt; choose&amp;nbsp; the Sub-Option: &lt;STRONG&gt;ByPass the Data Cleansing Process &lt;/STRONG&gt;under&amp;nbsp; the&lt;STRONG&gt; Performance &lt;/STRONG&gt;Option in&lt;STRONG&gt;&amp;nbsp;Step 1 &lt;/STRONG&gt;of the Import task.&amp;nbsp; Not sure if this how&amp;nbsp; SAS EG Import Task was designed to Work or if this is some kind of a bug.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 14:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454758#M29328</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2018-04-17T14:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454786#M29329</link>
      <description>&lt;P&gt;That behavior makes sense to me.&amp;nbsp; Since EG is doing the cleansing work, "generalize for use outside of EG" would have to mean that the cleansing step is skipped.&amp;nbsp; All you're left with is the SAS code -- PROC IMPORT or DATA step with INFILE/INPUT.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2018 15:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/454786#M29329</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-04-17T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/456271#M29402</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp; &amp;nbsp;So essentially the &lt;STRONG&gt;ByPass the Data Cleansing Process&lt;/STRONG&gt; Option and&amp;nbsp;&lt;STRONG&gt;Generalize Import Step to Run outside of SAS Enterprise Guide&amp;nbsp;&lt;/STRONG&gt;Option seem to have the same effect on the SAS&amp;nbsp; EG Import task. Am I right?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp; have&amp;nbsp; one Final question&amp;nbsp; on this topic.Not sure if&amp;nbsp; you can answer it .&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I&amp;nbsp; have noticed that when the Source Text File is on a Remote Server and I&amp;nbsp;import this using SAS EG Import Task, 2 copies of the file are downloaded from the Remote Server to the Client Machine.The 1st copy is downloaded when proceeding from Step 1 to Step 4 of the Import task. This 1st copy is used to examine the records to determine&amp;nbsp;record length and variable attributes. The 2nd Copy is downloaded after clicking the Finish&amp;nbsp;button on Step 4.&amp;nbsp; This 2nd copy is then used a create a Cleansed file on the Client Machine. So basically under the default Importing Scenario with &lt;STRONG&gt;no Performace Options&lt;/STRONG&gt; chosen the Client Machine has to have adequate space for storing 2 copies of the Source File&amp;nbsp; +&amp;nbsp; the Cleansed File so approximately 3 copies of the Source File.&amp;nbsp; My question is why the Import Task cannot use the 1st copy downloaded to the Client machine to create the Cleansed&amp;nbsp;file instead of downloading&amp;nbsp;the 2nd copy to accomplish this?&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 07:20:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/456271#M29402</guid>
      <dc:creator>pchegoor</dc:creator>
      <dc:date>2018-04-22T07:20:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS EG  Import Task Mechanism</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/456295#M29404</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/14002"&gt;@pchegoor&lt;/a&gt;&amp;nbsp;The tasks work in 2 phases: design time and run time.&amp;nbsp; The field examination happens at design time, allowing you to see the field names and specify attributes.&amp;nbsp; When you click Finish, that phase is completed and the task is dismissed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But then EG needs to actually run the Import process with your settings.&amp;nbsp; The task reinitializes, and downloads a copy of the source file for the cleansing step.&amp;nbsp; This step will happen immediately upon Finish, but also any time you simply refresh the task by re-running the project or flow.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's how it works.&amp;nbsp; If the source file is so large that the download is a problem, I'd suggest using the Import task on a smaller version of the file to design the fields and generate the code.&amp;nbsp; Then copy that into a SAS program to use on the full file in subsequent runs, skipping the download altogether.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Apr 2018 14:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/SAS-EG-Import-Task-Mechanism/m-p/456295#M29404</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2018-04-22T14:24:06Z</dc:date>
    </item>
  </channel>
</rss>

