BookmarkSubscribeRSS Feed
Sudtej
Calcite | Level 5

Hi,

      I am updating an excel sheet using SAS DDE. The data is in following format,

datea.xlsb.xlsc.xls
1456546456546456546
2564356435643
3444444
4333
54656.123
6454542332454542332567

     Here, I am importing data daily from few XL sheets like a, b, c. So, each row represents data collected each day & cell, a particular value from the source XL sheet.

     The requirement is that if y'day's data is not updated (i.e. cell is having '.'), I need to update it along with today's value. I am storing today's and y'day's data in a macro variable at start.Then I update today's row, then I will go through y'day's row and if any of the cell (R5:b.xls) is with missing value, will update it from macro variable.

     I am seeing the value for y'day's missing value cell, being updated in some other cell. Smiley Sad

      Any suggestions?

2 REPLIES 2
art297
Opal | Level 21

You would have to show your code and attach a zipped example spreadsheet in order to know what you are doing.

Sure sounds like it would be easier to simply import the spreadsheet then, in a datastep, use update.

Sudtej
Calcite | Level 5

I have attached the part of the code, and have put the comments also. Code is running perfect for updating the Xl for today's date...only problem with if any missing data for Y'day date.

Thanks.

Sudtej

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 691 views
  • 0 likes
  • 2 in conversation