<?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: Draw tree based on simple relational table. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793260#M254225</link>
    <description>&lt;P&gt;You could try this one&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1643433863927.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67963i4B14D1CC51C69FF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1643433863927.png" alt="Ksharp_0-1643433863927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I never used it before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you have SAS/EM ,you also could try LINKED node (search it documentation at support.sas.com ).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1643433958171.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67964iDCC1B46DEB622F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1643433958171.png" alt="Ksharp_1-1643433958171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_3-1643433992814.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67966i1A423B0A9830C88D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_3-1643433992814.png" alt="Ksharp_3-1643433992814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_4-1643434019967.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67967iCD6329D712E5C58A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_4-1643434019967.png" alt="Ksharp_4-1643434019967.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_5-1643434043176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67968i84EF0860F1E6FAA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_5-1643434043176.png" alt="Ksharp_5-1643434043176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 29 Jan 2022 05:27:34 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2022-01-29T05:27:34Z</dc:date>
    <item>
      <title>Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792493#M253922</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;
&lt;P&gt;Would like to ask the best way to visualize the relations like:&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;Relations;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;RelationId=&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;; From=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 1'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;to=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 2'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationId=&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;; From=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 1'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;to=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 3'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationId=&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;3&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;; From=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 1'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;to=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 4'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RelationId=&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;4&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;; From=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 2'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;to=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;'Node 4'&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;;&lt;/SPAN&gt;&lt;SPAN&gt;Output&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;STRONG&gt;&lt;SPAN&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&lt;SPAN&gt;In the end I would like to have graph or tree like that:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Yura2301_0-1643208335654.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67845iF78AF7109742DF3F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Yura2301_0-1643208335654.png" alt="Yura2301_0-1643208335654.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Offcourse ideally will be if links will not cross etc. I see there are a lot of options, proc sgplot proc ,proc gtree , hpsplit etc.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looked a bit deeper to&amp;nbsp;sgplot ,&amp;nbsp; built approximately needed tree but the view complitely not scalable, plus requires manually calculating X and Y axis, nodes names looks like can't be placed inside of nodes(like on image above) etc., so I just hope maybe there is some more logical and elegant way for the simple goal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in adwanced for any advices!&lt;/P&gt;
&lt;P style="font-weight: 400;"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 04:43:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792493#M253922</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2022-01-27T04:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792853#M254057</link>
      <description>&lt;A href="https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Methods-of-a-Fully-Automated-CONSORT-Diagram-Macro-CONSORT/ta-p/726358" target="_blank"&gt;https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Methods-of-a-Fully-Automated-CONSORT-Diagram-Macro-CONSORT/ta-p/726358&lt;/A&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:38:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792853#M254057</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-27T13:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792856#M254060</link>
      <description>&lt;P&gt;Hi Kharp,&lt;/P&gt;
&lt;P&gt;Thanks a lot, it looks like exactly what was needed!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 13:46:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/792856#M254060</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2022-01-27T13:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793107#M254148</link>
      <description>Also could check this one .&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2016/05/02/directed-link-networks/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2016/05/02/directed-link-networks/&lt;/A&gt;</description>
      <pubDate>Fri, 28 Jan 2022 11:50:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793107#M254148</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-28T11:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793142#M254166</link>
      <description>&lt;P&gt;Hi Ksharp,&lt;/P&gt;
&lt;P&gt;Thanks for the input.&lt;/P&gt;
&lt;P&gt;Already tried the sgplot procedure and drows the basic diagrams, as was needed.&lt;/P&gt;
&lt;P&gt;But when there are a lot of nodes, links(relations between objects) - the diagram not scalable, nod readble, lines crosses etc.&lt;/P&gt;
&lt;P&gt;Generally I hoped that maybe there are ready procedure that took relations table and build the tree in smart way, so doing all tech. pre-tasks for you, taking into consideration basic tree traversal properties like - number of child nodes, depth of tree etc.&lt;/P&gt;
&lt;P&gt;Instead sgplot procedure requires partly manually calcualte X Y axis, take into consider size of page, ODS(in physical image - view can be readble but in SAS EG outptut&amp;nbsp; -nop, and reversally etc.).&lt;/P&gt;
&lt;P&gt;I've found a few third-party tools that do the drawing of diagram, but generally I just really wonder that SAS doesn't have so obvious feature ready, like a bit strange do not have that feature but to have cool and powerfull f.e. proc forecast and tens of other procedures that BI/DB developer will not find in any other products, but it's just thoughts in loud:), I 'm sure there are serious arguments why the procedure not ready yet, f.e. if it's 500 nodes and 1000 relations - draw it correctly and readable - chanlanging for sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend!&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 14:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793142#M254166</guid>
      <dc:creator>Yura2301</dc:creator>
      <dc:date>2022-01-28T14:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Draw tree based on simple relational table.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793260#M254225</link>
      <description>&lt;P&gt;You could try this one&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1643433863927.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67963i4B14D1CC51C69FF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1643433863927.png" alt="Ksharp_0-1643433863927.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;But I never used it before.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And if you have SAS/EM ,you also could try LINKED node (search it documentation at support.sas.com ).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_1-1643433958171.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67964iDCC1B46DEB622F1E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_1-1643433958171.png" alt="Ksharp_1-1643433958171.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_3-1643433992814.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67966i1A423B0A9830C88D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_3-1643433992814.png" alt="Ksharp_3-1643433992814.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_4-1643434019967.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67967iCD6329D712E5C58A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_4-1643434019967.png" alt="Ksharp_4-1643434019967.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_5-1643434043176.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/67968i84EF0860F1E6FAA4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_5-1643434043176.png" alt="Ksharp_5-1643434043176.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jan 2022 05:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Draw-tree-based-on-simple-relational-table/m-p/793260#M254225</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-01-29T05:27:34Z</dc:date>
    </item>
  </channel>
</rss>

