<?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: Calculating individuals social network connections using data from BoardEx in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359588#M274485</link>
    <description>&lt;P&gt;Thanks for the guidelines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please attached is a sample of directors/individuals educational background from the entire sample. I want to estimate the educational connections among individuals. Thus when two individuals are connected through educational networks if they graduated within a year from the same university and have the same degree type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the assistance.&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2017 09:51:04 GMT</pubDate>
    <dc:creator>EJAA</dc:creator>
    <dc:date>2017-05-18T09:51:04Z</dc:date>
    <item>
      <title>Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359257#M274481</link>
      <description>&lt;P&gt;Hello Everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a new user and your assistance would be very much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm a trying to calculate CEOs social connections using data from BoadEx specifically CEOs educational networks, past employment networks and other activities networks. However, the codes I have tried&amp;nbsp;so far don't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any available codes in SAS to estimate these social networks measures of individuals in boadex database?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for the assistance.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 05:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359257#M274481</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-05-17T05:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359268#M274482</link>
      <description>More detail needed (metadata about sources)</description>
      <pubDate>Wed, 17 May 2017 07:15:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359268#M274482</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-05-17T07:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359312#M274483</link>
      <description>&lt;P&gt;BoardEx database (&lt;A href="http://corp.boardex.com/data/" target="_blank"&gt;http://corp.boardex.com/data/&lt;/A&gt;), contains biographical information on the senior executives and board members of public and private firms.&amp;nbsp;For each director or executive, BoardEx compiles a full historical profile containing the past employment history, current employment, board memberships, educational background, and social activities such as memberships in social and charitable organizations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to measure a CEO network size by counting the number of executives or directors on the annual network with whom the CEO has connections. I define a CEO network connection as one established between a CEO and another individual if they link on one or more of employment, education, or other activities (e.g., social club). For instance,two individuals are connected via employment if their careers overlap with the same employer in the same year.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sample of data attached.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the assistance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13842i012875F06557591D/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="edu.PNG" title="edu.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13843i0B241C2B0DAD5D47/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="employment.PNG" title="employment.PNG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13844i39BBCFB9896C9DF8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="other.PNG" title="other.PNG" /&gt;</description>
      <pubDate>Wed, 17 May 2017 09:23:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359312#M274483</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-05-17T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359327#M274484</link>
      <description>&lt;P&gt;Posting data in pictures is not helpful. Use the macro provided &lt;A title="Post Data as Datastep" href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;here&lt;/A&gt; to convert your datasets to datasteps you can post here ("little running man" button)&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 10:51:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359327#M274484</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-17T10:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359588#M274485</link>
      <description>&lt;P&gt;Thanks for the guidelines&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please attached is a sample of directors/individuals educational background from the entire sample. I want to estimate the educational connections among individuals. Thus when two individuals are connected through educational networks if they graduated within a year from the same university and have the same degree type.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 09:51:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359588#M274485</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-05-18T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359602#M274486</link>
      <description>&lt;P&gt;Please read my post again, carefully. Excel files are useless as example data, for a lot of reasons. Please post your data in a datastep, as described in the link I gave you.&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2017 10:51:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/359602#M274486</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-18T10:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/361530#M274487</link>
      <description>&lt;P&gt;Hello KurtBremser&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried several times to put my data in a datastep as directed but still not working for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any further directions for me...Am still trying to find my way as a new user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 11:09:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/361530#M274487</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-05-25T11:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/361536#M274488</link>
      <description>&lt;P&gt;Where did you fail?&lt;/P&gt;
&lt;P&gt;- downloading the zip?&lt;/P&gt;
&lt;P&gt;- extracting the .sas from the zip?&lt;/P&gt;
&lt;P&gt;- opening the .sas in your SAS environment?&lt;/P&gt;
&lt;P&gt;- running the macro as documented?&lt;/P&gt;
&lt;P&gt;- finding and loading the resulting .sas file?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 11:46:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/361536#M274488</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-25T11:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362152#M274489</link>
      <description>&lt;P&gt;Please KurtBremer thank you very much.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when i copy the macro and run after making the neccessary changes. Please this the error i keep getting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have no clue how to fix this problem after several trials of fixing it. Thanks once again for the further direction&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;817 %macro data2datastep(edu,networks,,5);&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: Invalid macro parameter name ,. It should be a valid SAS identifier no longer than 32&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;characters.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;ERROR: A dummy macro will be compiled.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;818 %local varlist msgtype;&lt;BR /&gt;819&lt;BR /&gt;820 %if %superq(obs)= %then %let obs=MAX;&lt;BR /&gt;821&lt;BR /&gt;822 %let msgtype=NOTE;&lt;BR /&gt;823 %if %superq(dsn)= %then %do;&lt;BR /&gt;824 %let msgtype=ERROR;&lt;BR /&gt;825 %put &amp;amp;msgtype: You must specify a data set name;&lt;BR /&gt;826 %put;&lt;BR /&gt;827 %goto syntax;&lt;BR /&gt;828 %end;&lt;BR /&gt;829 %let dsn=%qupcase(%superq(dsn));&lt;BR /&gt;830 %if %superq(dsn)=!HELP %then %do;&lt;BR /&gt;831 %syntax:&lt;BR /&gt;832 %put &amp;amp;msgtype: &amp;amp;SYSMACRONAME macro help document:;&lt;BR /&gt;833 %put &amp;amp;msgtype- Purpose: Converts a data set to a SAS DATA step.;&lt;BR /&gt;834 %put &amp;amp;msgtype- Syntax: %nrstr(%%)&amp;amp;SYSMACRONAME(dsn&amp;lt;,lib,file,obs&amp;gt;);&lt;BR /&gt;835 %put &amp;amp;msgtype- dsn: Name of the dataset to be converted. Required.;&lt;BR /&gt;836 %put &amp;amp;msgtype- lib: LIBREF where the dataset resides. Optional.;&lt;BR /&gt;837 %put &amp;amp;msgtype- file: Fully qulaified filename for the DATA step produced. Optional.;&lt;BR /&gt;838 %put &amp;amp;msgtype- Default is %nrstr(create_&amp;amp;lib._&amp;amp;dsn._data.sas) in the SAS default&lt;BR /&gt;838! directory.;&lt;BR /&gt;839 %put &amp;amp;msgtype- obs: Max observations to include the created dataset. Optional.;&lt;BR /&gt;840 %put &amp;amp;msgtype- Default is MAX (all observations);&lt;BR /&gt;841 %put;&lt;BR /&gt;842 %put NOTE: &amp;amp;SYSMACRONAME cannot be used in-line - it generates code.;&lt;BR /&gt;843 %put NOTE- Use !HELP to print these notes.;&lt;BR /&gt;844 %return;&lt;BR /&gt;845 %end;&lt;BR /&gt;846&lt;BR /&gt;847 %if %superq(lib)= %then %do;&lt;BR /&gt;848 %let lib=%qscan(%superq(dsn),1,.);&lt;BR /&gt;849 %if %superq(lib) = %superq(dsn) %then %let lib=WORK;&lt;BR /&gt;850 %else %let dsn=%qscan(&amp;amp;dsn,2,.);&lt;BR /&gt;851 %end;&lt;BR /&gt;852 %let lib=%qupcase(%superq(lib));&lt;BR /&gt;853 %let dsn=%qupcase(%superq(dsn));&lt;BR /&gt;854&lt;BR /&gt;855 %if %sysfunc(exist(&amp;amp;lib..&amp;amp;dsn)) ne 1 %then %do;&lt;BR /&gt;856 %put ERROR: (&amp;amp;SYSMACRONAME) - Dataset &amp;amp;lib..&amp;amp;dsn does not exist.;&lt;BR /&gt;857 %let msgtype=NOTE;&lt;BR /&gt;858 %GoTo syntax;&lt;BR /&gt;859 %end;&lt;BR /&gt;860&lt;BR /&gt;861 %if %superq(file)= %then %do;&lt;BR /&gt;862 %let file=create_&amp;amp;lib._&amp;amp;dsn._data.sas;&lt;BR /&gt;863 %if %symexist(USERDIR) %then %let file=&amp;amp;userdir/&amp;amp;file;&lt;BR /&gt;864 %end;&lt;BR /&gt;865&lt;BR /&gt;866 %if %symexist(USERDIR) %then %do;&lt;BR /&gt;867 %if %qscan(%superq(file),-1,/\)=%superq(file) %then&lt;BR /&gt;868 %let file=&amp;amp;userdir/&amp;amp;file;&lt;BR /&gt;869 %end;&lt;BR /&gt;870&lt;BR /&gt;871 proc sql noprint;&lt;BR /&gt;872 select Name&lt;BR /&gt;873 into :varlist separated by ' '&lt;BR /&gt;874 from dictionary.columns&lt;BR /&gt;875 where libname="&amp;amp;lib"&lt;BR /&gt;876 and memname="&amp;amp;dsn"&lt;BR /&gt;877 ;&lt;BR /&gt;878 select case type&lt;BR /&gt;879 when 'num' then&lt;BR /&gt;880 case&lt;BR /&gt;881 when missing(format) then cats(Name,':32.')&lt;BR /&gt;882 else cats(Name,':',format)&lt;BR /&gt;883 end&lt;BR /&gt;884 else cats(Name,':$',length,'.')&lt;BR /&gt;885 end&lt;BR /&gt;886 into :inputlist separated by ' '&lt;BR /&gt;887 from dictionary.columns&lt;BR /&gt;888 where libname="&amp;amp;lib"&lt;BR /&gt;889 and memname="&amp;amp;dsn"&lt;BR /&gt;890 ;&lt;BR /&gt;891 quit;&lt;BR /&gt;892&lt;BR /&gt;893 data _null_;&lt;BR /&gt;894 file "&amp;amp;file" dsd;&lt;BR /&gt;895 if _n_ =1 then do;&lt;BR /&gt;896 put "data &amp;amp;lib..&amp;amp;dsn;";&lt;BR /&gt;897 put @3 "infile datalines dsd truncover;";&lt;BR /&gt;898 put @3 "input %superq(inputlist);";&lt;BR /&gt;899 put "datalines4;";&lt;BR /&gt;900 end;&lt;BR /&gt;901 set &amp;amp;lib..&amp;amp;dsn(obs=&amp;amp;obs) end=last;&lt;BR /&gt;902 put &amp;amp;varlist @;&lt;BR /&gt;903 if last then do;&lt;BR /&gt;904 put;&lt;BR /&gt;905 put ';;;;';&lt;BR /&gt;906 end;&lt;BR /&gt;907 else put;&lt;BR /&gt;908 run;&lt;BR /&gt;909 %mend;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 04:45:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362152#M274489</guid>
      <dc:creator>EJAA</dc:creator>
      <dc:date>2017-05-27T04:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362160#M274490</link>
      <description>&lt;P&gt;Everything from %macro to %mend is the macro definition and must not be altered.&lt;/P&gt;
&lt;P&gt;You then call the macro with %data2datastep(edu,networks,,5)&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 07:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362160#M274490</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-27T07:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating individuals social network connections using data from BoardEx</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362346#M274491</link>
      <description>817 %macro data2datastep(edu,networks,,5);&lt;BR /&gt;&lt;BR /&gt;In this, beginning the macro definition, you must not have consecutive commas - that would imply a parameter with no name</description>
      <pubDate>Sun, 28 May 2017 19:24:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-individuals-social-network-connections-using-data/m-p/362346#M274491</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-05-28T19:24:43Z</dc:date>
    </item>
  </channel>
</rss>

