<?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: Pulling data/files down from the mainframe in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750564#M236114</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When you access the file, start the name with a single quote&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx "'abc.def.ghijk.lnm154.something";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The single quote tells the system not to search in your "tree" (which starts with the MF username), but from the "root".&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's been a few years since I've worked on a mainframe, but I believe you would then refer to the SAS dataset as&amp;nbsp; xxx.something inside your SAS program.&amp;nbsp; Borrowing from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s code, something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx "'abc.def.ghijk.lnm154.something";

DATA Want;
    SET  xxx.something;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 26 Jun 2021 04:08:14 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2021-06-26T04:08:14Z</dc:date>
    <item>
      <title>Pulling data/files down from the mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750542#M236101</link>
      <description>&lt;P&gt;Hi, Experts,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm unfamiliar with mainframe, and need some help understanding how to pull data from it. This might be a pretty basic question.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have code working to connect:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;%let sas_version =SAS94;
%let spawner_name = spawner;

OPTIONS SYMBOLGEN;

%let sy51=[xxxxx.xxxxx.xx.xxxx.xx];

/*
[some code to set &amp;amp;mainframe_user_id and &amp;amp;mainframe password]
*/

Signon sy51.spawner user="&amp;amp;Mainframe_user_id." password="&amp;amp;MAINFRAME_PASSWORD.";

rsubmit sy51.spawner;

proc setinit;
run;quit;

endrsubmit;

signoff &amp;amp;srvr..spawner;&lt;/PRE&gt;&lt;P&gt;^^that gives me a proc setinit for the mainframe, which is good.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, the user I'm (trying to) help tells me that there are datasets I need to access at some location on the mainframe. They look like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;abc.def.ghijk.lnm154.something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I go about either writing a libname or importing these datasets?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 19:07:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750542#M236101</guid>
      <dc:creator>CharlesYu</dc:creator>
      <dc:date>2021-06-25T19:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data/files down from the mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750552#M236106</link>
      <description>&lt;P&gt;When you access the file, start the name with a single quote&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx "'abc.def.ghijk.lnm154.something";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The single quote tells the system not to search in your "tree" (which starts with the MF username), but from the "root".&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jun 2021 21:06:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750552#M236106</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-06-25T21:06:56Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data/files down from the mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750563#M236113</link>
      <description>&lt;P&gt;From the SAS z/OS docu&amp;nbsp;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/hosto390/n03xehosq1kmbon11kh4bywr79e2.htm#p1qc6jkc8cxjain1e7tiw2dfi61h" target="_self"&gt;Assigning SAS Libraries Internally&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you need to transfer the SAS datasets to your client environment then refer to the &lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/connref/titlepage.htm" target="_self"&gt;SAS\Connect&lt;/A&gt; docu (i.e. Remote Library Services or Proc Download).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....and should your data on the client side look "garbled" then best talk to someone at your site who's done such a transfer before (prior to getting into Proc Trantab and all the lovely encoding and codepage stuff).&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 04:06:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750563#M236113</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2021-06-26T04:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Pulling data/files down from the mainframe</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750564#M236114</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;When you access the file, start the name with a single quote&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx "'abc.def.ghijk.lnm154.something";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The single quote tells the system not to search in your "tree" (which starts with the MF username), but from the "root".&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;It's been a few years since I've worked on a mainframe, but I believe you would then refer to the SAS dataset as&amp;nbsp; xxx.something inside your SAS program.&amp;nbsp; Borrowing from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;'s code, something like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname xxx "'abc.def.ghijk.lnm154.something";

DATA Want;
    SET  xxx.something;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Jun 2021 04:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pulling-data-files-down-from-the-mainframe/m-p/750564#M236114</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-26T04:08:14Z</dc:date>
    </item>
  </channel>
</rss>

