BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi Guys,


I am new to SAS Enterpise Guide 4.2 and would need your help in running a query.

Below is the table format:

BankID MemberNo AprilBills MayBills JuneBills
1111 1234 4 0 5
1111 6789 5 5 0
1111 5432 3 0 4
1111 7777 12 78 65


I am trying to create a report of "What was the count of members by BankID that paid 1 or more bills in April,May and June"

so the end result should be

BankID April May June
1111 4 2 3

PLease let me know how can i use the tool and do less coding in the above report.
Thank again for your help!
2 REPLIES 2
Doc_Duke
Rhodochrosite | Level 12
I's attack this as part query (to create the indicator variables of a bill being paid) and a procedure to summarize. You may be able to combine in TABULATE or REPORT.

First the Query. Recode each of the bill variables to be 0, 1 (>0) , or NULL.
Then you can use MEANS or SUMMARY with the SUM output (Descriptive Statistics task) or FREQ (tables task) to get the counts. If you are looking for summary data to use downstream, MEANS would be cleanest in EGuide.
deleted_user
Not applicable
Thanks Duke!

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 997 views
  • 0 likes
  • 2 in conversation