<?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 Is there a function to get a SAS member name? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37469#M7437</link>
    <description>I have come up with the following code to get the member names into the observations when I concatenate several members.  I've looked, and other than using the open and fetch functions, I haven't found a function that I can use.  Each member might have over a million rows of data, and I am not in a position to be able to ask that the member name be added to the table.&lt;BR /&gt;
&lt;BR /&gt;
Thoughts?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
DATA ABC;&lt;BR /&gt;
  SET JORDAN.G1INNETDEDG(IN=G1INNETDEDG) &lt;BR /&gt;
      JORDAN.G2INNETDEDG(IN=G2INNETDEDG) &lt;BR /&gt;
      JORDAN.G3INNETDEDG(IN=G3INNETDEDG) &lt;BR /&gt;
      JORDAN.G4INNETDEDG(IN=G4INNETDEDG);&lt;BR /&gt;
  ARRAY XMEMBERS {*} G1INNETDEDG G2INNETDEDG &lt;BR /&gt;
                                     G3INNETDEDG G4INNETDEDG  ;&lt;BR /&gt;
  length whichmem $32;&lt;BR /&gt;
  WHICHMEM = '??';&lt;BR /&gt;
  DO I=1 to dim(Xmembers) while (whichmem = '??');&lt;BR /&gt;
    IF XMEMBERS{i} THEN WHICHMEM = VNAME(XMEMBERS{i});&lt;BR /&gt;
  END;&lt;BR /&gt;
  drop i;&lt;BR /&gt;
RUN;</description>
    <pubDate>Fri, 19 Nov 2010 22:15:27 GMT</pubDate>
    <dc:creator>advoss</dc:creator>
    <dc:date>2010-11-19T22:15:27Z</dc:date>
    <item>
      <title>Is there a function to get a SAS member name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37469#M7437</link>
      <description>I have come up with the following code to get the member names into the observations when I concatenate several members.  I've looked, and other than using the open and fetch functions, I haven't found a function that I can use.  Each member might have over a million rows of data, and I am not in a position to be able to ask that the member name be added to the table.&lt;BR /&gt;
&lt;BR /&gt;
Thoughts?&lt;BR /&gt;
&lt;BR /&gt;
Thank you.&lt;BR /&gt;
&lt;BR /&gt;
DATA ABC;&lt;BR /&gt;
  SET JORDAN.G1INNETDEDG(IN=G1INNETDEDG) &lt;BR /&gt;
      JORDAN.G2INNETDEDG(IN=G2INNETDEDG) &lt;BR /&gt;
      JORDAN.G3INNETDEDG(IN=G3INNETDEDG) &lt;BR /&gt;
      JORDAN.G4INNETDEDG(IN=G4INNETDEDG);&lt;BR /&gt;
  ARRAY XMEMBERS {*} G1INNETDEDG G2INNETDEDG &lt;BR /&gt;
                                     G3INNETDEDG G4INNETDEDG  ;&lt;BR /&gt;
  length whichmem $32;&lt;BR /&gt;
  WHICHMEM = '??';&lt;BR /&gt;
  DO I=1 to dim(Xmembers) while (whichmem = '??');&lt;BR /&gt;
    IF XMEMBERS{i} THEN WHICHMEM = VNAME(XMEMBERS{i});&lt;BR /&gt;
  END;&lt;BR /&gt;
  drop i;&lt;BR /&gt;
RUN;</description>
      <pubDate>Fri, 19 Nov 2010 22:15:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37469#M7437</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2010-11-19T22:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function to get a SAS member name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37470#M7438</link>
      <description>The INDSNAME SET statement option might do the trick for you.&lt;BR /&gt;
[pre]&lt;BR /&gt;
data two;&lt;BR /&gt;
set sashelp.shoes sashelp.class indsname=innames;&lt;BR /&gt;
put innames=;&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 19 Nov 2010 22:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37470#M7438</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2010-11-19T22:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a function to get a SAS member name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37471#M7439</link>
      <description>Thanks, that's exactly what I need.  Now I've just got to get SAS 9.2 installed on my workstation.  &lt;BR /&gt;
&lt;BR /&gt;
I appreciate your quick response.</description>
      <pubDate>Sat, 20 Nov 2010 02:58:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Is-there-a-function-to-get-a-SAS-member-name/m-p/37471#M7439</guid>
      <dc:creator>advoss</dc:creator>
      <dc:date>2010-11-20T02:58:21Z</dc:date>
    </item>
  </channel>
</rss>

