The other methods are methods that are sometimes used by accountants. Now, review the assignment statement that is used to calculate the values for the variable days. The first and second arguments of the datdif( ) function tell SAS, respectively, the start and end date of the desired interval. Here, the start date is wt_date1 and the end date is wt_date2. The third argument of the datdif( ) function, which must be enclosed in single quotes, tells SAS how to calculate the difference. CALCULATE DOB IN SAS UNIVERSITY EDITION HOW TO Here, 'act/act' tells SAS to calculate the difference using the actual number of days between the two dates. The two possible methods in calculating the number of days between two dates using the datdif( ) function are:Īgain, the 'act/act' method is the method that most people would consider to be the most accurate. The other method is a method that is sometimes used by accountants. When you are satisfied that you understand the two functions, launch and run the SAS program. Review the output to convince yourself that age and days are indeed calculated as described. Review the assignment statement that is used to calculate the values for the variable age_intck. CALCULATE DOB IN SAS UNIVERSITY EDITION HOW TO.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |