<?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: Table Structure to replicate in SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822855#M324920</link>
    <description>Hi Kurt,&lt;BR /&gt;thank you for your answer.&lt;BR /&gt;1) In proc report, can you create exactly a column with a space as in example?&lt;BR /&gt;2) I mean, I want use that table strucutre (initially empty) and put data inside. As an insert in sql.</description>
    <pubDate>Tue, 12 Jul 2022 14:20:48 GMT</pubDate>
    <dc:creator>Anto180788</dc:creator>
    <dc:date>2022-07-12T14:20:48Z</dc:date>
    <item>
      <title>Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822507#M324802</link>
      <description>&lt;P&gt;Good Morning everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to replicate a table structure in SAS as in the example of table structure attached.&lt;/P&gt;&lt;P&gt;I would to know if it is possibile to replicate this structure in SAS and how.&lt;/P&gt;&lt;P&gt;The output expected is the table structure in the example with subtitles, if it possibile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for all advice.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 09:28:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822507#M324802</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T09:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822522#M324807</link>
      <description>&lt;P&gt;I don't open attachments, but replicating an excel table with sas is almost always a question of how much time one has. With the Report Writing Interface you can do anything, but you will have to code it.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 10:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822522#M324807</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-11T10:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822524#M324808</link>
      <description>Good Morning andreas,&lt;BR /&gt;I can look the attachment and I have to zoom to see the structure. Let me know if you can't do it.&lt;BR /&gt;I have time. So is the Report Writing interface only way to do that?&lt;BR /&gt;Have you look the example?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Jul 2022 11:08:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822524#M324808</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T11:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822531#M324812</link>
      <description>&lt;P&gt;I won't open attachments due to security rules in my company. So i don't know if using an output procedure (report, tabulate) can create the table you want.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 11:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822531#M324812</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-07-11T11:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822537#M324816</link>
      <description>&lt;P&gt;Your excel file is apparently a report generated from some other applications.&lt;BR /&gt;It is indeed possible to produce similar reports using proc tabulate or proc report and combine ods excel destination.&lt;BR /&gt;The look and file will largely be identical but may not necessaril be exactly the same.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 12:17:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822537#M324816</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-07-11T12:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822541#M324818</link>
      <description>Hi Sajid,&lt;BR /&gt;thanks to reply me.&lt;BR /&gt;The point is to replicate the structure of table. In particular, I need to replicate row and columns structure(with specific spaces). So do you think is it possibile with proc tabulate and proc report?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Jul 2022 12:46:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822541#M324818</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T12:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822542#M324819</link>
      <description>ah ok, don't worry Andreas. Thanks</description>
      <pubDate>Mon, 11 Jul 2022 12:46:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822542#M324819</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T12:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822545#M324820</link>
      <description>&lt;P&gt;Don't expect a 1:1 copy of the look, but you can (almost) always create the same logical structure. To give you hints how to do it, we need to have usable source data (SAS dataset, posted as a data step with datalines) and the logic for calculating and/or setting the values in the report.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 12:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822545#M324820</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-11T12:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822547#M324822</link>
      <description>Hi Kurt,&lt;BR /&gt;For now, I need only replicate only the structure.&lt;BR /&gt;I haven't the data yet. As you can understand, this is a structure of a template. It is a final step of a elaboration process.</description>
      <pubDate>Mon, 11 Jul 2022 13:22:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822547#M324822</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T13:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822551#M324823</link>
      <description>If your intention is to create a dataset with same structure as in the excel file, I am afraid, no. There is no easy way to do it.&lt;BR /&gt;You can , however, import the excel file and its content will constitute the data  of the dataset.&lt;BR /&gt;</description>
      <pubDate>Mon, 11 Jul 2022 13:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822551#M324823</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-07-11T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822554#M324824</link>
      <description>&lt;P&gt;To get from A to B, one needs to know both A and B.&lt;/P&gt;
&lt;P&gt;So for providing examples of code to create the report (B), we need to know the structure of the source data (A); without it, there's nothing to suggest, except "PROC REPORT might do it" or something similar vague.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 13:51:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822554#M324824</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-11T13:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822576#M324829</link>
      <description>That is my intention.&lt;BR /&gt;The excel fle is an output of a process. So importing back it is useless.</description>
      <pubDate>Mon, 11 Jul 2022 16:27:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822576#M324829</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T16:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822578#M324830</link>
      <description>The excel file is an output.&lt;BR /&gt;So, do you want to know what are datatasets in input?&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 11 Jul 2022 16:29:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822578#M324830</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-11T16:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822580#M324831</link>
      <description>&lt;P&gt;The Excel spreadsheet you show us is clearly a &lt;EM&gt;report&lt;/EM&gt;, and not a &lt;EM&gt;dataset&lt;/EM&gt; or a &lt;EM&gt;database table&lt;/EM&gt;. If you created it from SAS datasets, you already have everything you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Datasets or tables in databases have consistent types for columns and only one set of names for the columns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS, if you want to &lt;EM&gt;store&lt;/EM&gt; such a report, you store the underlying dataset(s) and the SAS program, so you can recreate the report anytime by rerunning the program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 16:40:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822580#M324831</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-11T16:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822583#M324832</link>
      <description>&lt;P&gt;This structure is quite simple to replicate with a proc report inside an ods excel structure. imcluding multisheet reports.&amp;nbsp; You can also create any printer ourtput such as html, pdf, etc.&lt;/P&gt;
&lt;P&gt;You could strart with this link, and also read up on the papers available on this topic on the SAS Global Forum&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n0bmw0v2sv7lepn17aovz1217r9k" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/odsug/p09n5pw9ol0897n1qe04zeur27rv.htm#n0bmw0v2sv7lepn17aovz1217r9k&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Do have a specific requirement?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 16:47:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822583#M324832</guid>
      <dc:creator>ghosh</dc:creator>
      <dc:date>2022-07-11T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822584#M324833</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/399935"&gt;@Anto180788&lt;/a&gt; for offering to post the datasets.&lt;BR /&gt;However the report is the outcome of a series of steps. &lt;BR /&gt;One needs to know the process ( BRD- Business Requirement Document) and the data to write the proper and relevant code.&lt;BR /&gt;The following is a good introduction to SAS Proc Report procedure and give a fairly good idea about what can be accomplished &lt;A href="http://www.scsug.org/wp-content/uploads/2017/10/An-Introduction-to-PROC-REPORT-SCSUG-2017.pdf" target="_blank"&gt;http://www.scsug.org/wp-content/uploads/2017/10/An-Introduction-to-PROC-REPORT-SCSUG-2017.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 16:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822584#M324833</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-07-11T16:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822795#M324892</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anto180788_1-1657621941524.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73204i052305DAEBB805F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anto180788_1-1657621941524.png" alt="Anto180788_1-1657621941524.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good morning everyone,&lt;/P&gt;&lt;P&gt;many thanks for all advice.&lt;/P&gt;&lt;P&gt;My boss said me that the problem is to replicate cell unified (yellow area) in SAS.&lt;/P&gt;&lt;P&gt;Is there anyway to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondo question, Is it possibile to use a structure of table and just put inside a dataset?&lt;/P&gt;&lt;P&gt;Thank you very much&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 10:36:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822795#M324892</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-12T10:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822841#M324912</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/399935"&gt;@Anto180788&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Anto180788_1-1657621941524.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/73204i052305DAEBB805F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Anto180788_1-1657621941524.png" alt="Anto180788_1-1657621941524.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Good morning everyone,&lt;/P&gt;
&lt;P&gt;many thanks for all advice.&lt;/P&gt;
&lt;P&gt;My boss said me that the problem is to replicate cell unified (yellow area) in SAS.&lt;/P&gt;
&lt;P&gt;Is there anyway to do that?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;PROC REPORT can set background colors for each column, and you can also (in a COMPUTE block) set attributes (including the background) for a single report item depending on position or content.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;P&gt;Secondo question, Is it possibile to use a structure of table and just put inside a dataset?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Please explain what you mean by that.&lt;/P&gt;
&lt;P&gt;SAS provides metadata in the SQL DICTIONARY tables, so you can retrieve that from there.&lt;/P&gt;
&lt;P&gt;If, OTOH, you want to create the structure in a dataset without having actual data, you can do it like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data class;
set sashelp.class;
stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The resulting dataset will have all columns from SASHELP.CLASS, but zero observations.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 13:54:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822841#M324912</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-07-12T13:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822855#M324920</link>
      <description>Hi Kurt,&lt;BR /&gt;thank you for your answer.&lt;BR /&gt;1) In proc report, can you create exactly a column with a space as in example?&lt;BR /&gt;2) I mean, I want use that table strucutre (initially empty) and put data inside. As an insert in sql.</description>
      <pubDate>Tue, 12 Jul 2022 14:20:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822855#M324920</guid>
      <dc:creator>Anto180788</dc:creator>
      <dc:date>2022-07-12T14:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Table Structure to replicate in SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822865#M324923</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/399935"&gt;@Anto180788&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi Kurt,&lt;BR /&gt;thank you for your answer.&lt;BR /&gt;1) In proc report, can you create exactly a column with a space as in example?&lt;BR /&gt;2) I mean, I want use that table strucutre (initially empty) and put data inside. As an insert in sql.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No.&amp;nbsp; You are still confusing the REPORT that you want to create in the Excel file and the DATA that you will need to create it.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 14:45:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Table-Structure-to-replicate-in-SAS/m-p/822865#M324923</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-07-12T14:45:10Z</dc:date>
    </item>
  </channel>
</rss>

