BookmarkSubscribeRSS Feed
LineMoon
Lapis Lazuli | Level 10

Please, some one give some sas macro to analyse data:

 

> I want to have a report with data and graphs ( with the needs)

   Data 1 graph1 data2 graph2  ......datan  graphn

or  graph1  graph2  ......graphn

 

> an other means a sas macro to analyse data with many views.

 

 

 

 

4 REPLIES 4
andreas_lds
Jade | Level 19

Can't see any question ... you should add the code you have, provide example data and desired output including format.

 

Why do you think, that sas-macro-code is required to solve the problem?

LineMoon
Lapis Lazuli | Level 10

For the moment, I need a reporting likes this :

 

table | graph

table| graph

table|graph

 

But it depends,

 

I can need

a reporting likes this

| T1  T2|

|G1  G2|

............

 

or

| T1 T2            Tn

| G1 G2           Gn|

 

 

or | sub-group of Ti .... ...........graph of sub-group of Ti|

 

 

  | sub-group of Tj .... ...........graph of sub-group of Tj| 

 

extra ...

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Hi,

 

I agree with andreas_ids, you have not clarified your problem, nor provide any test data win the form of a datastep or what the output should look like.  At a guess you want to do something for several datasets with the same prefix, here is an example:

 

ods rtf file =....;

data _null_;

  do i=1 to 10;

    call execute(cats('proc print data=data',put(i,best.),'; run;'));  /* Report datax */

    call execute(cats('proc sgplot data=graph',put(i,best.),';....;run;'));  /* Produce graph */

  end;

run;

ods rtf close;

    

LineMoon
Lapis Lazuli | Level 10

Thank you for answer..

yes, your answer can reply to in party of my question..

you can see my answer to andreas_ids

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1160 views
  • 0 likes
  • 3 in conversation