<?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 OnDemand: unable to read file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796679#M255675</link>
    <description>&lt;P&gt;One of the macros that is used has the code below (with PROC IMPORT). Is that causing a problem in the OnDemand version of SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Macro loads the model specifications and associated key files into sas. */&lt;/P&gt;&lt;P&gt;%macro set_model_specs_files ;&lt;/P&gt;&lt;P&gt;options nomprint nomacrogen nosource ;&lt;BR /&gt;/* Point to an external file to be created */&lt;BR /&gt;filename tempout "&amp;amp;results_home.\tempout.txt" ;&lt;BR /&gt;/* Redirect the output to a file */&lt;BR /&gt;proc printto log=tempout new ;&lt;BR /&gt;run ;&lt;BR /&gt;proc import datafile = "&amp;amp;model_specs_file" out = model_specs_file dbms = tab replace ;&lt;BR /&gt;run ;&lt;BR /&gt;data model_specs_file ;&lt;BR /&gt;length station_id $ &amp;amp;station_id_length ;&lt;BR /&gt;format station_id $&amp;amp;station_id_length.. ;&lt;BR /&gt;informat station_id $&amp;amp;station_id_length.. ;&lt;BR /&gt;set model_specs_file ;&lt;BR /&gt;run ;&lt;BR /&gt;proc import datafile = "&amp;amp;model_specs_key_file" out = model_specs_key_file dbms = tab replace ;&lt;BR /&gt;run ;&lt;BR /&gt;/* Redirect the output back to the output window */&lt;BR /&gt;%if %upcase(&amp;amp;if_output_log) = YES %then %do ;&lt;BR /&gt;proc printto log = filelog ;&lt;BR /&gt;run ;&lt;BR /&gt;%end ;&lt;BR /&gt;%else %do ;&lt;BR /&gt;proc printto ;&lt;BR /&gt;run ;&lt;BR /&gt;%end ;&lt;BR /&gt;%let rc = %sysfunc(fdelete(tempout)) ;&lt;BR /&gt;options &amp;amp;sas_options ;&lt;/P&gt;&lt;P&gt;%mend set_model_specs_files ;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 19:42:03 GMT</pubDate>
    <dc:creator>darwise</dc:creator>
    <dc:date>2022-02-16T19:42:03Z</dc:date>
    <item>
      <title>SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796134#M255435</link>
      <description>&lt;P&gt;Hello - I am trying to run a contaminant load estimation model in the SAS Studio OnDemand environment that is configured to read in an rdb file with daily streamflow values. This program works successfully on a locally installed version of SAS, but is unable to find the rdb file when I try to run it in&amp;nbsp;the SAS OnDemand environment. I've confirmed that the directory paths in the program are consistent with the paths in my OnDemand workspace. I suspect that this is probably not enough information for someone to help me out, but at least maybe it's a starting point.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 20:28:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796134#M255435</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-14T20:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796140#M255439</link>
      <description>&lt;P&gt;By this:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;I've confirmed that the directory paths in the program are consistent with the paths in my OnDemand workspace.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You mean you've uploaded the RDB files to the server space and you've verified the files exist in the workspace?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416729"&gt;@darwise&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello - I am trying to run a contaminant load estimation model in the SAS Studio OnDemand environment that is configured to read in an rdb file with daily streamflow values. This program works successfully on a locally installed version of SAS, but is unable to find the rdb file when I try to run it in&amp;nbsp;the SAS OnDemand environment. I've confirmed that the directory paths in the program are consistent with the paths in my OnDemand workspace. I suspect that this is probably not enough information for someone to help me out, but at least maybe it's a starting point.&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;/LI-SPOILER&gt;</description>
      <pubDate>Mon, 14 Feb 2022 20:37:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796140#M255439</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-14T20:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796169#M255460</link>
      <description>&lt;P&gt;What does your LOG show when you run the code on SAS On Demand for what you use to read the file?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Feb 2022 23:36:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796169#M255460</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-14T23:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796403#M255558</link>
      <description>&lt;P&gt;Yes - I've confirmed that the RDB file exists in my workspace.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 21:18:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796403#M255558</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-15T21:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796405#M255560</link>
      <description>&lt;DIV&gt;&lt;DIV class=""&gt;ERROR: Data for flow station 11012500 does not exist - station not processed&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV class=""&gt;ERROR: The MACRO windowing environment cannot be initialized due to a XU supervisor failure.&lt;/DIV&gt;&lt;DIV class=""&gt;ERROR: The macro PUT_COMMENT will stop executing.&lt;/DIV&gt;&lt;/DIV&gt;&lt;PRE class=""&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 21:21:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796405#M255560</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-15T21:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796408#M255562</link>
      <description>From that error it appears that there's a problem with the macro/code - it's designed to handle the case when a station data doesn't exist for some reason by telling you there's an error: &lt;BR /&gt;&lt;BR /&gt;This is not a SAS error, this is code from your program:&lt;BR /&gt;ERROR: Data for flow station 11012500 does not exist - station not processed&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2022 21:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796408#M255562</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-15T21:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796572#M255632</link>
      <description>&lt;P&gt;Thanks for your feedback. This program (and all associated macros) ran successfully on a local version of SAS, but not in the SAS OnDemand environment. Therefore, I concluded that the problem was due to trying to run it using OnDemand.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 15:13:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796572#M255632</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-16T15:13:04Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796584#M255637</link>
      <description>Is the source data the same locally as in On Demand?</description>
      <pubDate>Wed, 16 Feb 2022 15:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796584#M255637</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T15:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796633#M255655</link>
      <description>&lt;P&gt;Yes - the programs, the macros, and the input files are the exact ones used on the locally installed SAS.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 16:59:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796633#M255655</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-16T16:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796637#M255659</link>
      <description>For 100% check - you're not using PROC IMPORT anywhere in your code correct? &lt;BR /&gt;I'm assuming you've checked the data and that Station data is present.</description>
      <pubDate>Wed, 16 Feb 2022 17:08:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796637#M255659</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T17:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796679#M255675</link>
      <description>&lt;P&gt;One of the macros that is used has the code below (with PROC IMPORT). Is that causing a problem in the OnDemand version of SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Macro loads the model specifications and associated key files into sas. */&lt;/P&gt;&lt;P&gt;%macro set_model_specs_files ;&lt;/P&gt;&lt;P&gt;options nomprint nomacrogen nosource ;&lt;BR /&gt;/* Point to an external file to be created */&lt;BR /&gt;filename tempout "&amp;amp;results_home.\tempout.txt" ;&lt;BR /&gt;/* Redirect the output to a file */&lt;BR /&gt;proc printto log=tempout new ;&lt;BR /&gt;run ;&lt;BR /&gt;proc import datafile = "&amp;amp;model_specs_file" out = model_specs_file dbms = tab replace ;&lt;BR /&gt;run ;&lt;BR /&gt;data model_specs_file ;&lt;BR /&gt;length station_id $ &amp;amp;station_id_length ;&lt;BR /&gt;format station_id $&amp;amp;station_id_length.. ;&lt;BR /&gt;informat station_id $&amp;amp;station_id_length.. ;&lt;BR /&gt;set model_specs_file ;&lt;BR /&gt;run ;&lt;BR /&gt;proc import datafile = "&amp;amp;model_specs_key_file" out = model_specs_key_file dbms = tab replace ;&lt;BR /&gt;run ;&lt;BR /&gt;/* Redirect the output back to the output window */&lt;BR /&gt;%if %upcase(&amp;amp;if_output_log) = YES %then %do ;&lt;BR /&gt;proc printto log = filelog ;&lt;BR /&gt;run ;&lt;BR /&gt;%end ;&lt;BR /&gt;%else %do ;&lt;BR /&gt;proc printto ;&lt;BR /&gt;run ;&lt;BR /&gt;%end ;&lt;BR /&gt;%let rc = %sysfunc(fdelete(tempout)) ;&lt;BR /&gt;options &amp;amp;sas_options ;&lt;/P&gt;&lt;P&gt;%mend set_model_specs_files ;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 19:42:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796679#M255675</guid>
      <dc:creator>darwise</dc:creator>
      <dc:date>2022-02-16T19:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS OnDemand: unable to read file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796687#M255678</link>
      <description>Run a proc contents on the data set of each data set imported via proc contents in each system and verify they are the exact same - length/formats/types.</description>
      <pubDate>Wed, 16 Feb 2022 20:01:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-OnDemand-unable-to-read-file/m-p/796687#M255678</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2022-02-16T20:01:10Z</dc:date>
    </item>
  </channel>
</rss>

