10-22-2013 07:28 PM
BPM = INTNX('Month',&pbd_date,-1,'b');/*1st day LM*/
EPM = INTNX('Month',&pbd_date,-1,'e');/*Last day last Month*/
%put &pmb &pme
I want to assign a variable name called LastMth to encompass a range between BPM and EPM (or all of last month). I want to be able to use this in a datastep to capture records that fall within the entire month(last month).
For example something like LastMth = range between &pmb and &pme ??
then I want to use it in a datastep like this
10-22-2013 07:54 PM
i'm NOT suggesting this is the best way to accomplish what you want, but are your data and problem similar to the one described at: https://communities.sas.com/message/185021#185021