125 DATA FORMAT_VALUE ;
126 INPUT value ;
127 FORMAT format_value DOLLAR11.2 ;
128 format_value = value ;
129 DATALINES ;
NOTE: The data set WORK.FORMAT_VALUE has 1 observations and 2 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
132 RUN ;
The value 110700 has 6 digits but after applying the dollar format it will display as $110,700.00, In the latter format, it now it has 11 characters. To display this value correctly we need to use DOLLAR11. format applied to the value. This format add $ at start and add commas after 3 digits.
The one and only FREE resource for general SAS online training as well as study guides for the SAS Base Certification. My goal is to create the SAS Certification prep guide that I never found but always wanted. This should also be a place to come if you are new to the language but are simply looking for online SAS training.