BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi all

I want to use a list data task in EG project to develop a report

Fields are
BranchNo, Supplier, OrderType, OrderNo, OrderCost, Discount

Grouped on BranchNo, Supplier, OrderType, OrderNo

Sub totals for OrderCost, Discount (for each BranchNo, Supplier, OrderType, OrderNo)

Grand Total for OrderCost, Discount (for each BranchNo, Supplier)

How can we do it through List data
2 REPLIES 2
David_SAS
SAS Employee
This question is appropriate for the SAS Enterprise Guide user forum:

http://support.sas.com/forums/forum.jspa?forumID=10

-- David Kelley, SAS
Cynthia_sas
SAS Super FREQ
Hi:
The List data task performs both subtotals and grand-totals on the same variables. In order to get subtotals on one set of variables and grandtotals on different variables in your final output, you would either have to use PROC REPORT or a DATA Step program.

Of the two choices, I would consider PROC REPORT to be the easier choice. There is no task, at this time, for PROC REPORT. So, you would have to use PROC REPORT in a code node to create this report.

For help with PROC REPORT, there is an excellent section in the documentation entitled, "How PROC REPORT Builds a Report". In addition if you Google for SUGI or SGF papers on PROC REPORT, you will find a lot of references. In addition for help with PROC REPORT and submitting code through an EG code node, your best bet might be to contact Tech Support.

cynthia

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 567 views
  • 0 likes
  • 3 in conversation