<?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 Script Times Out When Importing CSV - Need Help in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890063#M39581</link>
    <description>&lt;P&gt;Can you run operating system commands from SAS code?&lt;/P&gt;
&lt;P&gt;Try seeing what ls says about the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   infile 'ls -l /mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv' pipe;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS:&amp;nbsp; Do not try to store 22 digits in a numeric variable.&amp;nbsp; There is not enough precision for that.&amp;nbsp; ID variable should be CHARACTER.&lt;/P&gt;</description>
    <pubDate>Sat, 19 Aug 2023 18:42:42 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-08-19T18:42:42Z</dc:date>
    <item>
      <title>SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/889997#M39569</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;%let daminput_THREE_PART_OFFER_DLY = /mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv;
%let daminput_THREE_PART_OFFER_INT = /mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_INT.csv;


/* 4. Import the first CSV file */
data THREE_PART_OFFER_DLY;
    infile "&amp;amp;daminput_THREE_PART_OFFER_DLY" delimiter = ',' lrecl=32767 firstobs=2;
    informat BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID best32. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12. RMR_FLAG $1.;
    format BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID 22. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12. RMR_FLAG $1.;
    input BID_TYPE COMBINED_CYCLE_NAME ID PARTICIPANT_NAME RESOURCE_NAME RESOURCE_TYPE RMR_FLAG;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 21:21:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/889997#M39569</guid>
      <dc:creator>ccarswell</dc:creator>
      <dc:date>2023-08-18T21:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890004#M39570</link>
      <description>How big is the file?</description>
      <pubDate>Fri, 18 Aug 2023 21:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890004#M39570</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-18T21:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890005#M39571</link>
      <description>&lt;P&gt;small -&amp;nbsp;1.6 MB&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 21:45:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890005#M39571</guid>
      <dc:creator>ccarswell</dc:creator>
      <dc:date>2023-08-18T21:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890006#M39572</link>
      <description>Are you getting an error? Otherwise, that seems like a network issue that you may need to check with your IT team as to why it can't connect with the file?&lt;BR /&gt;&lt;BR /&gt;You could try copying the file over to the work library temporarily before reading but really it shouldn't matter.</description>
      <pubDate>Fri, 18 Aug 2023 21:55:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890006#M39572</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-18T21:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890008#M39573</link>
      <description>&lt;P&gt;Your problem is not the size of your CSV file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But a clue may be in the fact that the file location is under the main directory &lt;EM&gt;&lt;STRONG&gt;/mnt&lt;/STRONG&gt;&lt;/EM&gt;.&amp;nbsp; This commonly refers to an offline storage medium that has to be physically mounted onto a device connected to the computer system.&amp;nbsp; Think of it a little like a floppy disk, or cd-rom on a desktop computer.&amp;nbsp; They have to be&amp;nbsp; "mounted" on a connected floppy drive or cd drive.&amp;nbsp; Back in the day, we would have to wait for the system operator to fetch a disk (think of a fixed stack of large pizzas) and attach it to whatever drive the operating system indicated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So it is possible you are waiting for (1) the operating system to detect an available disk drive, or (2) the operator to "mount" the needed storage medium.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think there are others on this forum with much more direct experience who can say whether my conjecture is possible.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890008#M39573</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2023-08-18T22:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890010#M39574</link>
      <description>&lt;P&gt;Thank you for the insight about the /mnt directory. I've confirmed with IT that the mount is active and available. Still puzzled why an accessible file would cause a timeout—open to any further ideas.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890010#M39574</guid>
      <dc:creator>ccarswell</dc:creator>
      <dc:date>2023-08-18T22:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890011#M39575</link>
      <description>What happens when you assign a fileref to that file?</description>
      <pubDate>Fri, 18 Aug 2023 22:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890011#M39575</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-18T22:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890012#M39576</link>
      <description>&lt;P&gt;It doesn't seem to find the file with fileref&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;/* Assign the fileref */
filename TPOD "/mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv";

/* 4. Import the first CSV file */
data THREE_PART_OFFER_DLY;
    infile TPOD delimiter = ',' MISSOVER DSD lrecl=500 firstobs=2;
    informat BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID best32. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12. RMR_FLAG $1.;
    format BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID 22. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12. RMR_FLAG $1.;
    input BID_TYPE COMBINED_CYCLE_NAME ID PARTICIPANT_NAME RESOURCE_NAME RESOURCE_TYPE RMR_FLAG;
run;

/* Clear the fileref after use */
filename TPOD clear;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I'm going to step away for a bit&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:27:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890012#M39576</guid>
      <dc:creator>ccarswell</dc:creator>
      <dc:date>2023-08-18T22:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890013#M39577</link>
      <description>&lt;PRE&gt;&lt;CODE class=""&gt;1                                                          The SAS System                              17:16 Friday, August 18, 2023

1          ;*';*";*/;quit;run;
2          OPTIONS PAGENO=MIN;
3          %LET _CLIENTTASKLABEL='DAMTPO.sas';
4          %LET _CLIENTPROCESSFLOWNAME='Standalone Not In Project';
5          %LET _CLIENTPROJECTPATH='';
6          %LET _CLIENTPROJECTPATHHOST='';
7          %LET _CLIENTPROJECTNAME='';
8          %LET _SASPROGRAMFILE='Q:\users\ccarswell\DAMTPO.sas';
9          %LET _SASPROGRAMFILEHOST='CCARSWELL';
10         
11         ODS _ALL_ CLOSE;
12         OPTIONS DEV=SVG;
13         GOPTIONS XPIXELS=0 YPIXELS=0;
14         %macro HTML5AccessibleGraphSupported;
15             %if %_SAS_VERCOMP(9, 4, 4) &amp;gt;= 0 %then ACCESSIBLE_GRAPH;
16         %mend;
17         FILENAME EGHTML TEMP;
18         ODS HTML5(ID=EGHTML) FILE=EGHTML
19             OPTIONS(BITMAP_MODE='INLINE')
20             %HTML5AccessibleGraphSupported
21             ENCODING='utf-8'
22             STYLE=HTMLBlue
23             NOGTITLE
24             NOGFOOTNOTE
25             GPATH=&amp;amp;sasworklocation
26         ;
NOTE: Writing HTML5(EGHTML) Body file: EGHTML
27         
28         * Assign the fileref */
29         filename TPOD "/mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv";
30         
31         /* 4. Import the first CSV file */
32         data THREE_PART_OFFER_DLY;
33             infile TPOD delimiter = ',' MISSOVER DSD lrecl=500 firstobs=2;
34             informat BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID best32. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12.
34       !  RMR_FLAG $1.;
35             format BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID 22. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12.
35       ! RMR_FLAG $1.;
36             input BID_TYPE COMBINED_CYCLE_NAME ID PARTICIPANT_NAME RESOURCE_NAME RESOURCE_TYPE RMR_FLAG;
37         run;

ERROR: No logical assign for filename TPOD.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.THREE_PART_OFFER_DLY may be incomplete.  When this step was stopped there were 0 observations and 7 
         variables.
MVA_DSIO.OPEN_CLOSE| _DISARM|         STOP| _DISARM| 2023-08-18T17:21:18,518-05:00| _DISARM| WorkspaceServer| _DISARM| SAS| 
_DISARM| | _DISARM| 0| _DISARM| 21655552| _DISARM| 12| _DISARM| 13| _DISARM| 40| _DISARM| 18696| _DISARM| 0.000000| _DISARM| 
0.002290| _DISARM| 2008016478.515734| _DISARM| 2008016478.518024| _DISARM| 0.000000| _DISARM| | _ENDDISARM 
WARNING: Data set WORK.THREE_PART_OFFER_DLY was not replaced because this step was stopped.
PROCEDURE| _DISARM|         STOP| _DISARM| 2023-08-18T17:21:18,518-05:00| _DISARM| WorkspaceServer| _DISARM| SAS| _DISARM| | 
_DISARM| 23240704| _DISARM| 21655552| _DISARM| 12| _DISARM| 13| _DISARM| 72| _DISARM| 18712| _DISARM| 0.000000| _DISARM| 0.004657| 
_DISARM| 2008016478.513945| _DISARM| 2008016478.518602| _DISARM| 0.000000| _DISARM| | _ENDDISARM 
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      

38         
2                                                          The SAS System                              17:16 Friday, August 18, 2023

39         /* Clear the fileref after use */
40         filename TPOD clear;
WARNING: No logical assign for filename TPOD.
41         
42         
43         %LET _CLIENTTASKLABEL=;
44         %LET _CLIENTPROCESSFLOWNAME=;
45         %LET _CLIENTPROJECTPATH=;
46         %LET _CLIENTPROJECTPATHHOST=;
47         %LET _CLIENTPROJECTNAME=;
48         %LET _SASPROGRAMFILE=;
49         %LET _SASPROGRAMFILEHOST=;
50         
51         ;*';*";*/;quit;run;
52         ODS _ALL_ CLOSE;
53         
54         
55         QUIT; RUN;
56       &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2023 22:30:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890013#M39577</guid>
      <dc:creator>ccarswell</dc:creator>
      <dc:date>2023-08-18T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890063#M39581</link>
      <description>&lt;P&gt;Can you run operating system commands from SAS code?&lt;/P&gt;
&lt;P&gt;Try seeing what ls says about the file.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   infile 'ls -l /mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv' pipe;
  input;
  put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;PS:&amp;nbsp; Do not try to store 22 digits in a numeric variable.&amp;nbsp; There is not enough precision for that.&amp;nbsp; ID variable should be CHARACTER.&lt;/P&gt;</description>
      <pubDate>Sat, 19 Aug 2023 18:42:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890063#M39581</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-08-19T18:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890420#M39610</link>
      <description>I don't think this is a timeout issue, this is an issue of not being able to connect/find the file. Can you navigate to this location in the viewer somehow? If so, can you right click, select properties and confirm the path is the same?</description>
      <pubDate>Tue, 22 Aug 2023 15:38:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890420#M39610</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-08-22T15:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Script Times Out When Importing CSV - Need Help</title>
      <link>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890436#M39611</link>
      <description>&lt;P&gt;This tells you that your INFILE statement is using a filename that isn't correct:&lt;/P&gt;
&lt;PRE&gt;32         data THREE_PART_OFFER_DLY;
33             infile TPOD delimiter = ',' MISSOVER DSD lrecl=500 firstobs=2;
34             informat BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID best32. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12.
34       !  RMR_FLAG $1.;
35             format BID_TYPE $4. COMBINED_CYCLE_NAME $32. ID 22. PARTICIPANT_NAME $32. RESOURCE_NAME $32. RESOURCE_TYPE $12.
35       ! RMR_FLAG $1.;
36             input BID_TYPE COMBINED_CYCLE_NAME ID PARTICIPANT_NAME RESOURCE_NAME RESOURCE_TYPE RMR_FLAG;
37         run;

&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;&lt;FONT size="5"&gt;ERROR: No logical assign for filename TPOD.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;The Why is in this bit:&lt;/P&gt;
&lt;PRE&gt;28         * Assign the fileref */
29         filename TPOD "/mnt/share/nPROD_PVTdata/DAM/DAM_OD_07-20-2023-121124/THREE_PART_OFFER_DLY.csv";&lt;/PRE&gt;
&lt;P&gt;The comments that start with an * end at a ;&amp;nbsp; so this filename statement likely was never executed.&lt;/P&gt;
&lt;P&gt;Make sure the comment on line 28 starts with /* which then uses everything up to the */ as a comment as was likely intended.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 16:40:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/SAS-Script-Times-Out-When-Importing-CSV-Need-Help/m-p/890436#M39611</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-08-22T16:40:37Z</dc:date>
    </item>
  </channel>
</rss>

