Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to find out no. of business days in a month using
macros.???(excluding weekends and holidays).

Answer Posted / oanhntt

first of all, identify the last day of month (using this
intnx('month',d,1)-1). after that make a loop through 1 to
end of month, check if day in loop is weekend or not, using
another variable to count this number.
Regarding to the holidays, except some popular holidays which
I suggest using an external file/dataset to track it, use
this file to identify holidays.

Is This Answer Correct ?    1 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the best sas programming practices for handling very large datasets? : sas-grid-administration

961


Have you ever used the SAS Debugger?

1692


what is sas application server? : Sas-di

996


What is the difference between reading data from an external file and reading data from an existing data set?

1121


What is the function of output statement in a SAS Program?

1007


What is the different between functions and PROCs that calculate the same simple descriptive statistics?

1720


How would you determine the number of missing or nonmissing values in computations?

1006


how can you create zero observation dataset? : Sas programming

1085


what is the purpose of _error_? : Sas programming

1079


What is data _null_?

1076


What does P-value signify about the statistical data?

1301


what is sas metadata server? : Sas-di

1046


Tell e how how dealt with..

2168


what is change analysis in sas di ? : Sas-di

990


explain the proc in sas? : Sas-administrator

1032