The NLSTRQTRw.d
format writes a SAS value, 1–4 as the name-of-the-quarter for
the year in the specified locale. The following examples use the English_UnitedStates
locale.
1 = 1st quarter
2 = 2nd quarter
3 = 3rd quarter
4 = 4th quarter
Example
This example
uses the English_UnitedStates session encoding.
Statements
Results
Data _null_ ;
qtrnum = 1 ; /* January=1,
December=12 */
put qtrnum NLSTRQTR20.
;
put qtrnum NLSTRQTR20.1;
/* decimal .1 specified use abbreviation. */