Hi - Can you please let me know how to write the program to count number of web hits for each month in SAS EG?
Need more information, what does your data source look like?
I was given an URL (website) and asked to get the hit count. I am not sure if this can be done from SAS. I did look into PROC HTTP which cannot do anything on this requirement I guess. I also searched but couldn't find any solution. My thought is, coding should be done on the website itself and I can not do any coding from SAS. Please suggest.
SAS works on table (row, column) structured data. You would need those hits imported into some sort of table file structure, or a delimited file that can be converted to a table.
I thought so. Thank you.
There's no way you can get a hit count just by knowing the URL.
You need access to the log files.
One would need access to the access_logs on the server in order to count the web hits.
Consider using SAS Web Analytics. Have a look at theis paper https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/016-31.pdf
I'll look into it. Thanks.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.