BookmarkSubscribeRSS Feed
Aman4SAS
Obsidian | Level 7

please find attached script.

My goal is to create all states excel report files along with all related msa's . i[in one excel , on excel for state and other sheets for all related msa area's].

my issue. when i am running this scripts all together its creating separate sheets for each area with the name of state i.e. AK , AK1 , AK2 , AK3 ...

at the same time when i run the script in two part , like first time to create consolidate data and second time to create report files , in that time it works fine as i want.

First part is till created data set test7, and after that is second part..

its not showing any error.


Please suggest me the solution.

4 REPLIES 4
Aman4SAS
Obsidian | Level 7

can anyone help me on this??

jakarman
Barite | Level 11

Would like to help you.

At the moment not able as missing my pc

---->-- ja karman --<-----
Aman4SAS
Obsidian | Level 7

Thanks for response.

Patrick
Opal | Level 21

You throw a big junk of code at us in a "development" state and without any comments in the code. You don't provide any data so that the code is actually executable for us and we can replicate what you describe - and then test what we eventually would suggest.

You need to provide some test data (best as a data step creating this data) and then strip down your Proc Report with the ODS to the bare minimum so that it shows the challenge you're facing with the minimum code required. And then you tell us what you would want to get.

If you help us to help you then I'm sure someone will be able to provide a solution.

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
  • 4 replies
  • 813 views
  • 1 like
  • 3 in conversation