Dear all,
I am going crazy with this problem.
I want to generate a number starting from a date and a string like 2456701
I want to obtain a decimal number like xxxxxx,2456701 where xxxx is the difference between a date and a threshold
You are running out of precision. SAS "only" has a mantissa of 52 bytes.
2**52 = 4503599627370496
Your code that use PUT function and then takes different of the two character values makes no sense to me.
I don't think you can have the accuracy you seek with 8 byte floating point numeric for SITE. You can make it character.
Perhaps using something like this, after you fix the calculation of SITE.
length site $20; maybe
site = catx(',',site_factor,pno);
Why are trying to subtract the two character variables you created with the PUT() function call?
Also there are about 480 million seconds between the beginning of the century and now.
Perhaps you can use minutes or days instead to get a smaller number?
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: