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 is sas metadata server? : Sas-di

1158


what is the difference between unique key and primary key? : Sas-di

1180


how do you pull data from equifax?tell me the process?

1836


Explain data_null_?

1110


What is your favorite all time computer book? Why?

2559


what is data access? : Sas-di

1178


i have a dataset with 100 obs i want to generate title from 20th obs onwards with total observations. that should contain 100 obs.dont use firstobs and dnt split the data. use dataset block or proc report? how can we genarate;

2557


Explain proc sort?

1177


do you need to know if there are any missing values? : Sas programming

1126


Difference between nodup and nodupkey options?

1273


what is sas application server, database server, sas olap server and sas metadata server? : Sas-di

1058


How do you control the number of observations and/or variables read or written? Approximately what date is represented by the SAS date value of 730?

1731


how many types prompting framework can be broken down to? : Sas-bi

1120


What are the statements in proc sql?

1149


What is the role of unrestrictive users? : sas-grid-administration

1077