Explanation : Creation of four temporary SAS tables (`alias_list`, `order_list`, `header_list`, `scrub_list`) using `datalines`. These tables contain the configuration parameters for the documentation macro (keyword mapping, display order, header labels, elements to hide).
Copied!
data work.alias_list;
infile datalines;
input short_keyword $1-10 long_keyword $11-50;
datalines;
excl exclusion
stat statistics
;
data work.order_list;
infile datalines;
input keyword $1-20 order_no 21-25;
datalines;
todo -30
exclusion -20
exclusion.time -19
exclusion.person -18
methods -10
no_keyword 0
;
data work.header_list;
infile datalines;
input keyword $1-15 header $16-50;
datalines;
exclusion Exclusion criteria
person Subjects
time Time periods
todo Task list
;
data work.scrub_list;
infile datalines;
input keyword $1-15;
datalines;
todo
regex
;
1
DATA work.alias_list;
2
INFILEDATALINES;
3
INPUT short_keyword $1-10 long_keyword $11-50;
4
DATALINES;
5
excl exclusion
6
stat statistics
7
;
8
9
DATA work.order_list;
10
INFILEDATALINES;
11
INPUT keyword $1-20 order_no 21-25;
12
DATALINES;
13
todo -30
14
exclusion -20
15
exclusion.time -19
16
exclusion.person -18
17
methods -10
18
no_keyword 0
19
;
20
21
DATA work.header_list;
22
INFILEDATALINES;
23
INPUT keyword $1-15 header $16-50;
24
DATALINES;
25
exclusion Exclusion criteria
26
person Subjects
27
time Time periods
28
todo Task list
29
;
30
31
DATA work.scrub_list;
32
INFILEDATALINES;
33
INPUT keyword $1-15;
34
DATALINES;
35
todo
36
regex
37
;
3 Code Block
MACRO CALL
Explanation : Call to the `%code_diary` macro to analyze the `project_main.sas` file. It uses the previously created configuration tables to structure and filter the content, generating two Markdown files as output.
Explanation : Call to the `%convert_markdown_to_html` macro to convert the generated Markdown file (`output-for-all.md`) into an HTML page (`output-for-all.htm`).
This material is provided "as is" by We Are Cas. There are no warranties, expressed or implied, as to merchantability or fitness for a particular purpose regarding the materials or code contained herein. We Are Cas is not responsible for errors in this material as it now exists or will exist, nor does We Are Cas provide technical support for it.
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration. WeAreCAS is an independent community site and is not affiliated with SAS Institute Inc.
This site uses technical and analytical cookies to improve your experience.
Read more.