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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 4 replies
  • 805 views
  • 0 likes
  • 3 in conversation