<?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: List Data problem...Cant understand this task in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4328#M1367</link>
    <description>Hi, Grasshopper!&lt;BR /&gt;
  When you are using the List Data task, if you place your cursor on a choice like "Subtotal of", if you look below the selection pane, in a gray rectangle, you should see this text:&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
Prints a subtotal whenever the value of the specified variable changes or when the next BY group begins. The variable that you assign to this role must also be a variable in the Group analysis by role. You can assign a maximum of one variable to this role.&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
You can do this for every role to see what each one does. Otherwise, you can also look up the documentation for PROC PRINT in the SAS on-line documentation, since the LIST Data task is generating PROC PRINT code behind the scenes.&lt;BR /&gt;
 &lt;BR /&gt;
So, for your output, I would suggest that you &lt;BR /&gt;
1) put Company Code (or Company Name) in the Subtotal Of role. (You should notice that when you put Company Code in the Subtotal Of role, then that choice makes it also appear in the Group By role.) &lt;BR /&gt;
2) put Supplier Code (or Supplier Name) in the Group By role. &lt;BR /&gt;
3) put Invoice Quantity and Invoice Value in the Total Of role&lt;BR /&gt;
4) put the rest of the variables you want to see in the List Variables role (put them in the order you want to see them on the screen)&lt;BR /&gt;
 &lt;BR /&gt;
I would not worry about Identifying Label role right now until after you see whether these role choices will give you the kind of output you want. I suspect, that if you want to customize the break lines for subtotals and totals, you might want to consider moving to the use of PROC REPORT, which allows you to put customized text on the break lines and generally gives you greater control on which variables to use at the break.&lt;BR /&gt;
 &lt;BR /&gt;
Anyway, get your List Data task working first -- then you can play with Identifying Label. Also, if you put Supplier Code and Supplier Name in the Group By Role, then you will get one summary line for Supplier Code and a second summary line for Supplier Name. This is probably NOT what you want.&lt;BR /&gt;
 &lt;BR /&gt;
For more help with the List Data task or with using PROC REPORT as an alternative, you might consider contacting Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 27 Aug 2007 16:09:03 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-08-27T16:09:03Z</dc:date>
    <item>
      <title>List Data problem...Cant understand this task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4327#M1366</link>
      <description>Hello &lt;BR /&gt;
&lt;BR /&gt;
I just can’t understand List Data task in EG. Its not very clear about when to use Group, Totals, Sub totals, Identifying Labels etc.&lt;BR /&gt;
&lt;BR /&gt;
I have the following columns in my data set&lt;BR /&gt;
Supplier Code&lt;BR /&gt;
Supplier Name&lt;BR /&gt;
Company Code&lt;BR /&gt;
Company Name&lt;BR /&gt;
Invoice Type&lt;BR /&gt;
Invoice Number&lt;BR /&gt;
Invoice Quantity&lt;BR /&gt;
Invoice Value&lt;BR /&gt;
&lt;BR /&gt;
I want the output as shown below please let me know how can I get this using List data. &lt;BR /&gt;
&lt;BR /&gt;
                         				Report title&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;SUPPIER: A1234              XYZ Supplier&lt;/B&gt;&lt;BR /&gt;
Company Code Comp Name	Invoice Type	Invoice Number	Invoice Qty	Invoice Value&lt;BR /&gt;
A0001xxxxxxxxCompany abc    E		INV001		10		1000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxINV002		20		2000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxINV003		30		3000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxx--------------	-----------------&lt;BR /&gt;
&lt;B&gt;A0001		Company abcxxxxxxxxxxxxxx60		6000&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
A0002xxxxxxxxCompany pqr    E		INV003		30		3000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxINV004		40		4000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxINV005		50		5000&lt;BR /&gt;
xxxxxxxxxxxxxxxxxxxxxxxxxxxx--------------	-----------------&lt;BR /&gt;
&lt;B&gt;A0002		Company pqrxxxxxxxxxxxxxx210		21000&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;Total for SUPPIER: A1234              XYZ Supplier			270		27000&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
Please ignore xxxxxx consider them as blank

Message was edited by: Grasshopper in SAS</description>
      <pubDate>Mon, 27 Aug 2007 11:37:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4327#M1366</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-08-27T11:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: List Data problem...Cant understand this task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4328#M1367</link>
      <description>Hi, Grasshopper!&lt;BR /&gt;
  When you are using the List Data task, if you place your cursor on a choice like "Subtotal of", if you look below the selection pane, in a gray rectangle, you should see this text:&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
Prints a subtotal whenever the value of the specified variable changes or when the next BY group begins. The variable that you assign to this role must also be a variable in the Group analysis by role. You can assign a maximum of one variable to this role.&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
You can do this for every role to see what each one does. Otherwise, you can also look up the documentation for PROC PRINT in the SAS on-line documentation, since the LIST Data task is generating PROC PRINT code behind the scenes.&lt;BR /&gt;
 &lt;BR /&gt;
So, for your output, I would suggest that you &lt;BR /&gt;
1) put Company Code (or Company Name) in the Subtotal Of role. (You should notice that when you put Company Code in the Subtotal Of role, then that choice makes it also appear in the Group By role.) &lt;BR /&gt;
2) put Supplier Code (or Supplier Name) in the Group By role. &lt;BR /&gt;
3) put Invoice Quantity and Invoice Value in the Total Of role&lt;BR /&gt;
4) put the rest of the variables you want to see in the List Variables role (put them in the order you want to see them on the screen)&lt;BR /&gt;
 &lt;BR /&gt;
I would not worry about Identifying Label role right now until after you see whether these role choices will give you the kind of output you want. I suspect, that if you want to customize the break lines for subtotals and totals, you might want to consider moving to the use of PROC REPORT, which allows you to put customized text on the break lines and generally gives you greater control on which variables to use at the break.&lt;BR /&gt;
 &lt;BR /&gt;
Anyway, get your List Data task working first -- then you can play with Identifying Label. Also, if you put Supplier Code and Supplier Name in the Group By Role, then you will get one summary line for Supplier Code and a second summary line for Supplier Name. This is probably NOT what you want.&lt;BR /&gt;
 &lt;BR /&gt;
For more help with the List Data task or with using PROC REPORT as an alternative, you might consider contacting Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 27 Aug 2007 16:09:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4328#M1367</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-27T16:09:03Z</dc:date>
    </item>
    <item>
      <title>Re: List Data problem...Cant understand this task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4329#M1368</link>
      <description>Thanks Cynth&lt;BR /&gt;
&lt;BR /&gt;
I did few more things&lt;BR /&gt;
&lt;BR /&gt;
Concatenated the Supplier Code and Supplier Name and made it one column. This is because I want the Supplier Code and Supplier Name to appear together. Otherwise it would only appear after Company. Company is already concatenated with code. Hence not a problem.&lt;BR /&gt;
&lt;BR /&gt;
So now, Group contains&lt;BR /&gt;
Supplier and Company&lt;BR /&gt;
&lt;BR /&gt;
Subtotal of Company&lt;BR /&gt;
&lt;BR /&gt;
Total of Invoice Quantity and Invoice Value &lt;BR /&gt;
&lt;BR /&gt;
Its works fine, thanks.&lt;BR /&gt;
&lt;BR /&gt;
I have also tried Identifying Labels. It supresses repeating group values if I am not wrong.</description>
      <pubDate>Mon, 27 Aug 2007 18:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4329#M1368</guid>
      <dc:creator>SanjayM</dc:creator>
      <dc:date>2007-08-27T18:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: List Data problem...Cant understand this task</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4330#M1369</link>
      <description>Glad you got it working! That is generally what folks do to get around the multiple BY variable issue (as with Supplier Code and Supplier Name). Good job figuring that out!&lt;BR /&gt;
 &lt;BR /&gt;
Identifying Labels does what you noted. It also has the extra side effect of suppressing the BY line (because the by line info is in the table).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 27 Aug 2007 19:03:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/List-Data-problem-Cant-understand-this-task/m-p/4330#M1369</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-08-27T19:03:31Z</dc:date>
    </item>
  </channel>
</rss>

