SAS Formatting question

Posted on 2006-06-09
Last Modified: 2010-05-18

I need some SAS formatting help, currently a have a monetary field formating like so:


Whats the easiest and fastest way to format it like:


Question by:const71
1 Comment

Accepted Solution

tobydavid earned 500 total points
ID: 16878560
Use PROC FORMAT to create your own format

PICTURE myformat
low -< 0  = '000,000,000.99-' (prefix='$')
0 - high = '000,000,000.99 ' (prefix='$');

.... you can then use "myformat" like any other format.  Be sure to remember that formats end with a period.  I do not have SAS installed on this computer so I cannot test it, but this will get you there or very close.  if you get 2 minus signs (before and after) you should be able to fix that by adding ",mult=-1" in the before the first parenthesis.

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question