BookmarkSubscribeRSS Feed
Belle
Obsidian | Level 7

Hello,

I am using DDE to write an output to Excel, and I am wondering if SAS can output numbers as accounting format.

My desired output is something look like:

but the output I got is the following:

It seems like column 2 and column 3 have accounting format, but not column 1. Is there a way I can have all numbers as account format?

Here is part of DDE output program.

FILENAME DATA1  DDE "EXCEL|Data!R28C3:R39C9";

DATA _NULL_;

  SET test;

       format cost1 dollar15.

            cost2 cost3 dollar10.1;

     FILE DATA1 LRECL=30000;

        PUT ' ' ' ' ' ' cost1 cost2 cost3 ' ';

RUN;

Thanks

1 REPLY 1
Belle
Obsidian | Level 7

It didn't upload the pictures. Typing here.

My desired output is something look like:

$ 11,111,111
$22,222,223

but the output I got is the following:

$11,111,111

$22,222,223

Thanks

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 965 views
  • 0 likes
  • 1 in conversation