SASUnit Examples  Version 1.5.0
_reportpgmheader.sas
Go to the documentation of this file.
1 
5 %macro _reportPgmHeader (i_lib=, i_data=, i_language=EN);
6 
7  data WORK._RPGH;
8  set &i_lib..&i_data.;
9  new_name=name;
10  lag_name=lag(name);
11  if (name ne '' AND lag_name eq name) then do;
12  new_name='';
13  end;
14  run;
15 
16  proc report data=WORK._RPGH (where=(tag_sort like "00%")) nowd missing
17  style(report)=blindTable [borderwidth=0]
18  style(column)=blindData
19  style(header)=blindHeader
20  style(lines)=blindCaption [textalign=left]
21  ;
22 
23  column tag_sort tag dummy new_description;
24 
25  define tag_sort / group noprint;
26  define tag / group noprint format=$HeaderText_&i_language..;
27  define dummy / display;
28  define new_description / display;
29 
30  compute before tag;
31  line tag $HeaderText_&i_language..;
32  endcomp;
33  compute after tag;
34  line "^{style blindheader ^_^_^_^_}";
35  endcomp;
36  run;
37  title;
38  proc report data=WORK._RPGH (where=(tag_sort like "01%")) nowd missing
39  style(report)=blindTable [borderwidth=0]
40  style(column)=blindData
41  style(header)=blindHeader
42  style(lines)=blindCaption [textalign=left]
43  ;
44 
45  column tag_sort tag dummy new_name new_description;
46 
47  define tag_sort / group noprint;
48  define tag / group noprint format=$HeaderText_&i_language..;
49  define dummy / display;
50  define new_name / display style(column)=blindStrongData;
51  define new_description / display;
52 
53  compute before tag;
54  line tag $HeaderText_&i_language..;
55  endcomp;
56  compute after tag;
57  line "^{style blindheader ^_^_^_^_}";
58  endcomp;
59  run;
60 %mend _reportPgmHeader;