Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SYSBUFF

Status
Not open for further replies.

smarathe

MIS
Feb 28, 2011
3
0
0
US
Hi,
Can you please help me writing a SAS macro code using SYSBUFF please!!!

The following data give the number of customers for each day
of the week for three weeks and four different stores.

week day store1 store2 store3 store4

1 Sun 217 112 299 95
1 Mon 196 87 256 65
1 Tue 205 97 279 55
1 Wed 185 80 295 69
1 Thu 222 91 271 50
1 Fri 176 77 225 45
1 Sat 222 105 296 80
2 Sun 256 135 302 107
2 Mon 203 89 276 75
2 Tue 225 99 273 59
2 Wed 199 78 267 58
2 Thu 255 101 291 72
2 Fri 186 87 229 55
2 Sat 252 115 291 89
3 Sun 227 119 291 91
3 Mon 186 79 243 61
3 Tue 209 91 272 52
3 Wed 195 73 292 66
3 Thu 212 78 251 40
3 Fri 171 72 223 43
3 Sat 204 94 276 73

Write a macro that can print the number of customers of any store
on any day of any week. Use the macro to print the following:
(a) Both the number of customers of store2 on Wed of week #3 and the number of customers of store1 on Sat of week #2.
(b) The number of customers of store2 on Wed of week #3, the number of customers of store1 on Sat of week #2, and also the number of customers of store4 on Sun of week #1.
(c) The number of customers of store3 on Sat of week #2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top