<?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: proc download in SAS Community Nordic</title>
    <link>https://communities.sas.com/t5/SAS-Community-Nordic/proc-download/m-p/506386#M184</link>
    <description>&lt;P&gt;If you want to write to "libname&amp;nbsp;new" you have to allocate it with&lt;/P&gt;&lt;P&gt;LIBNAME new "&amp;amp;DSN." DISP=&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;OLD&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;</description>
    <pubDate>Mon, 22 Oct 2018 10:08:56 GMT</pubDate>
    <dc:creator>henning_munch</dc:creator>
    <dc:date>2018-10-22T10:08:56Z</dc:date>
    <item>
      <title>proc download</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/proc-download/m-p/506372#M183</link>
      <description>&lt;PRE&gt;%MACRO DOWNLOAD_BIB(DSN);

%chk_dir(dir=&amp;amp;path.\&amp;amp;DSN);

LIBNAME new "&amp;amp;path.\&amp;amp;DSN";

OPTIONS VALIDVARNAME=any;

signon Rsysv user="&amp;amp;_host_user" password="&amp;amp;_host_pass" noscript;

%SYSLPUT DSN=&amp;amp;DSN;

RSUBMIT;

OPTIONS VALIDVARNAME=any;

LIBNAME new "&amp;amp;DSN." DISP=SHR;

OPTIONS OBS=MAX;

 

PROC DOWNLOAD INLIB=new OUTLIB=new V6TRANSPORT;

RUN;

LIBNAME new CLEAR;

ENDRSUBMIT;

%MEND DOWNLOAD_BIB;

 &lt;/PRE&gt;&lt;P&gt;In this I am downloading SAS dataset from mainframe to windows&lt;/P&gt;&lt;P&gt;Macro variable path will have location where SAS dataset would be downloaded in windows&lt;/P&gt;&lt;P&gt;when I am ruuning the macro I am getting below error&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Cannot open data library new because it is uninitialized and user has has only read access&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you help what is the error&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 09:16:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/proc-download/m-p/506372#M183</guid>
      <dc:creator>shubham1</dc:creator>
      <dc:date>2018-10-22T09:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: proc download</title>
      <link>https://communities.sas.com/t5/SAS-Community-Nordic/proc-download/m-p/506386#M184</link>
      <description>&lt;P&gt;If you want to write to "libname&amp;nbsp;new" you have to allocate it with&lt;/P&gt;&lt;P&gt;LIBNAME new "&amp;amp;DSN." DISP=&lt;FONT color="#ff00ff"&gt;&lt;STRONG&gt;OLD&lt;/STRONG&gt;&lt;/FONT&gt;;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Oct 2018 10:08:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Community-Nordic/proc-download/m-p/506386#M184</guid>
      <dc:creator>henning_munch</dc:creator>
      <dc:date>2018-10-22T10:08:56Z</dc:date>
    </item>
  </channel>
</rss>

