<?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: LIBRARY OPENING in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984226#M379679</link>
    <description>Tnks for your kindly help....I'll try.</description>
    <pubDate>Fri, 27 Feb 2026 16:30:04 GMT</pubDate>
    <dc:creator>Tecla1</dc:creator>
    <dc:date>2026-02-27T16:30:04Z</dc:date>
    <item>
      <title>LIBRARY OPENING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984206#M379670</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Good morning, &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to find&amp;nbsp;a way to open network libraries with the 'RSUBMIT' command but I can't (inside a Macro that starts with "Rsubmit"), can you help me? &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The data step:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;RSUBMIT;

OPTIONS MPRINT;
OPTIONS MLOGIC;
OPTIONS SYMBOLGEN;
OPTIONS COMPRESS=YES;
OPTIONS VALIDVARNAME=UPCASE;
OPTIONS FORMCHAR="|----|+|---+=|-/\&amp;lt;&amp;gt;*";

LIBNAME RIOP "/sas_share/NAS_SDR_814/EX_824/Attivita/RIOP/SAS/DB_SAS" inencoding =any outencoding=any;
LIBNAME NEW "/sas_share/NAS_SDR_814/EX_824/Attivita/RIOP/RIOP - RIOP IN VOLO E SOSPESI CONTABILI/SAS/DB_SAS/New_files" inencoding =any outencoding=any;

ENDRSUBMIT;

LIBNAME RIOP   	    SLIBREF=RIOP      SERVER=SERV;
LIBNAME NEW   	    SLIBREF=NEW      SERVER=SERV;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 27 Feb 2026 10:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984206#M379670</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-02-27T10:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: LIBRARY OPENING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984212#M379672</link>
      <description>&lt;P&gt;I see neither a DATA nor a %MACRO statement in your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need help with code that does not do what you expected, ALWAYS post the complete log.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 13:08:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984212#M379672</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2026-02-27T13:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: LIBRARY OPENING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984221#M379674</link>
      <description>&lt;P&gt;Since you have not provided any real details let me just give some general advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using a macro to remote submit SAS code can get confusing since you need to worry about two levels of abstraction.&amp;nbsp; &amp;nbsp;Where the macro statements are executing and where the SAS code the macro generates is executing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So for example what will the %PUT statements write in this program?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro rsub;
%let mvar=local;
signon xxx sascmd='!sascmd';
%syslput mvar=remote;
%put LOCAL &amp;amp;=mvar ;
rsubmit; 
  %put REMOTE &amp;amp;=mvar;
endrsubmit;
signoff xxx;
%mend;

%rsub;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;LI-SPOILER&gt;
&lt;PRE&gt; NOTE: Remote signon to XXX complete.
 LOCAL MVAR=local
 NOTE: Remote submit to XXX commencing.
 REMOTE MVAR=local
 NOTE: Remote submit to XXX complete.
 NOTE: Remote signoff from XXX commencing.
 NOTE: Remote signoff from XXX complete.&lt;/PRE&gt;
&lt;P&gt;If you want the %PUT to run in the remote session you could use %NRSTR().&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  %nrstr(%put) REMOTE &amp;amp;=mvar;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI-SPOILER&gt;
&lt;P&gt;In general I find it best to avoid executing macro statements in the remotely submitted code blocks.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Feb 2026 15:47:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984221#M379674</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2026-02-27T15:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: LIBRARY OPENING</title>
      <link>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984226#M379679</link>
      <description>Tnks for your kindly help....I'll try.</description>
      <pubDate>Fri, 27 Feb 2026 16:30:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/LIBRARY-OPENING/m-p/984226#M379679</guid>
      <dc:creator>Tecla1</dc:creator>
      <dc:date>2026-02-27T16:30:04Z</dc:date>
    </item>
  </channel>
</rss>

