<?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: How to create pyramid by using Base SAS programming? any one please help me. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396389#M95695</link>
    <description>&lt;P&gt;HI PG,&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; I have a below values in data set and how can i build pyramid?&lt;BR /&gt;&amp;gt; &amp;gt; *&lt;BR /&gt;&amp;gt; &amp;gt; **&lt;BR /&gt;&amp;gt; &amp;gt; ***&lt;BR /&gt;&amp;gt; &amp;gt; ****&lt;BR /&gt;&amp;gt; &amp;gt; *****&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; i want to move first row to start at position 5 and later on decreasing&lt;BR /&gt;&amp;gt; as&lt;BR /&gt;&amp;gt; &amp;gt; moving to next record.&lt;BR /&gt;&amp;gt; &amp;gt; My output should be this way.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;* * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;* * * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; * * * * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp;* * * * * *&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; please help out.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2017 15:47:59 GMT</pubDate>
    <dc:creator>sandeep79</dc:creator>
    <dc:date>2017-09-15T15:47:59Z</dc:date>
    <item>
      <title>How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396135#M95600</link>
      <description />
      <pubDate>Fri, 15 Sep 2017 03:08:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396135#M95600</guid>
      <dc:creator>sandeep79</dc:creator>
      <dc:date>2017-09-15T03:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396152#M95606</link>
      <description>&lt;P&gt;What is pyramid?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 04:34:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396152#M95606</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-09-15T04:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396194#M95626</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
put '   *   ';
put '  ***  ';
put ' ***** ';
put '*******';
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Submit. &amp;nbsp;Find your pyramid erected inside the log.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 08:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396194#M95626</guid>
      <dc:creator>ShiroAmada</dc:creator>
      <dc:date>2017-09-15T08:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396323#M95673</link>
      <description>&lt;P&gt;i have to get the output by hard coding (by doing iterations).&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 13:40:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396323#M95673</guid>
      <dc:creator>sandeep79</dc:creator>
      <dc:date>2017-09-15T13:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396337#M95678</link>
      <description>The output must be in pyramid shape.it has to be done in core coding by using do loop.</description>
      <pubDate>Fri, 15 Sep 2017 13:58:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396337#M95678</guid>
      <dc:creator>sandeep79</dc:creator>
      <dc:date>2017-09-15T13:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396369#M95688</link>
      <description>&lt;PRE&gt;
@Rick make many different type of Christmas tree .


http://blogs.sas.com/content/iml/2013/12/18/christmas-tree-matrix.html

http://blogs.sas.com/content/iml/2014/12/10/xmas-tree-pascals-triangle.html



&lt;/PRE&gt;</description>
      <pubDate>Fri, 15 Sep 2017 14:54:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396369#M95688</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-15T14:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396389#M95695</link>
      <description>&lt;P&gt;HI PG,&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; I have a below values in data set and how can i build pyramid?&lt;BR /&gt;&amp;gt; &amp;gt; *&lt;BR /&gt;&amp;gt; &amp;gt; **&lt;BR /&gt;&amp;gt; &amp;gt; ***&lt;BR /&gt;&amp;gt; &amp;gt; ****&lt;BR /&gt;&amp;gt; &amp;gt; *****&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; i want to move first row to start at position 5 and later on decreasing&lt;BR /&gt;&amp;gt; as&lt;BR /&gt;&amp;gt; &amp;gt; moving to next record.&lt;BR /&gt;&amp;gt; &amp;gt; My output should be this way.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;* * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;* * * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; * * * * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp;* * * * * *&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; please help out.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 15:47:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396389#M95695</guid>
      <dc:creator>sandeep79</dc:creator>
      <dc:date>2017-09-15T15:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396408#M95700</link>
      <description>&lt;P&gt;Hi ksharp,&lt;BR /&gt;Thanks for helping me,&lt;BR /&gt;pyramid must be build using normal coding not by matrix or graph plot.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; I have a below values in data set and how can i build pyramid?&lt;BR /&gt;&amp;gt; &amp;gt; *&lt;BR /&gt;&amp;gt; &amp;gt; **&lt;BR /&gt;&amp;gt; &amp;gt; ***&lt;BR /&gt;&amp;gt; &amp;gt; ****&lt;BR /&gt;&amp;gt; &amp;gt; *****&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; i want to move first row to start at position 5 and later on decreasing&lt;BR /&gt;&amp;gt; as&lt;BR /&gt;&amp;gt; &amp;gt; moving to next record.&lt;BR /&gt;&amp;gt; &amp;gt; My output should be this way.&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;*&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp; * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; &amp;nbsp;* * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp; * * * *&lt;BR /&gt;&amp;gt; &amp;gt; &amp;nbsp;* * * * *&lt;BR /&gt;&amp;gt; &amp;gt; * * * * * *&lt;BR /&gt;&amp;gt; &amp;gt;&lt;BR /&gt;&amp;gt; &amp;gt; please help out.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 15:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396408#M95700</guid>
      <dc:creator>sandeep79</dc:creator>
      <dc:date>2017-09-15T15:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396411#M95701</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/161311"&gt;@sandeep79&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Hi ksharp,&lt;BR /&gt;Thanks for helping me,&lt;BR /&gt;pyramid must be build using normal coding not by matrix or graph plot.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How are graph plots "abnormal"?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is your destination? A text file? HTML? RTF? PDF?&lt;/P&gt;
&lt;P&gt;Note that the FONT used to display the output can result in an uneven appearance because of the way spaces may be displayed with proportional fonts (which is one possible&amp;nbsp;reason to use graphic output)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 16:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396411#M95701</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-15T16:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396432#M95703</link>
      <description>&lt;P&gt;Sounds like an algorithm puzzle. &amp;nbsp;Perhaps a class assignment?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given a list of records with asterisks left-aligned, build a pyramid (centered) version of these records? &amp;nbsp;Sounds like you need to:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Learn the length of the longest record (let's call it X)&lt;/LI&gt;
&lt;LI&gt;Pad each record with spaces on either side of the asterisks -- prepend and append X/2 - length(trim(current_record)), adjusting by one when that length is an even number.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;It could be a fun little programming golf puzzle...but maybe people would be more inclined to help if they knew this wasn't just your homework? &amp;nbsp;Or an interview question? &amp;nbsp;Is there a business goal?&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2017 17:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396432#M95703</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2017-09-15T17:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pyramid by using Base SAS programming? any one please help me.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396641#M95794</link>
      <description>&lt;PRE&gt;
OK. How about this one .



data have;
input x $;
n=0;
do i=length(x) to 1 by -1;
 n+1;
 if mod(n,2)=0 then substr(x,length(x)-n+1,1)=' ';
 y=reverse(substr(x,2))||x; 
end;
cards;
*
**
***
****
*****
;
run;


&lt;/PRE&gt;</description>
      <pubDate>Sun, 17 Sep 2017 10:32:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-pyramid-by-using-Base-SAS-programming-any-one/m-p/396641#M95794</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-09-17T10:32:10Z</dc:date>
    </item>
  </channel>
</rss>

