BookmarkSubscribeRSS Feed
sasban
Obsidian | Level 7

 

Acct_ID

NameBirthdaySexStateCust_TypeProductBalanceLast_Tran_Date
1001John1/1/1962MCAGoldChecking10009/1/2015 
1002Mary1-FebFCASilverSaving200010/1/2015 
1003Peter3/1/1982MNYGoldLoan300010/3/2016 
1004Mary4/1/1992FNYSilverChecking40009/17/2016 
1005Linda5/1/1994FWAGoldSaving5000  
1006Susan6/1/1997FWAGoldLoan10009/15/2016 
1007Sam7/1/1999MCAGoldChecking20002/1/2016 
1008Thomas8/1/1962MCASilverChecking30007/1/2016 
1009Linda9/1/1982FNYSilverSaving4000  

 

From the data above, I need to create a table as attached using macros. I'm learning an efficient use of macro. Any suggestion would be a great help.

1 REPLY 1
Reeza
Super User
Not sure what you need suggestions on:

1. create a template in Excel, with the report structure you want.
2. For the fields you need that are not formatted into a nice table, link them to cells behind the scene so you can export data from SAS straight into the template.
2. Use SAS to copy the template, FCOPY
3. Export data to the template for each report.

First, get it working for one report and then work on automating the report.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

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
  • 1 reply
  • 851 views
  • 1 like
  • 2 in conversation