In reply to arun.

I think I'd define a function in FCMP that formats the number as CATS(x, "/1") when x is an integer and as PUTC(x,"fract.") otherwise. You can then use that function to define a user=defined format. If you run into problems, ask your question at the SAS Support Communities.