Configuration data (lists of aliases, orders, headers, and filters) are created directly within the script using DATA steps and the `datalines` statement.
1 Code Block
INCLUDE
Explanation : Inclusion of source files containing the definitions of the `code_diary` and `convert_markdown_to_html` macros.
Explanation : Configuration of documentation parameters via the creation of SAS tables (WORK). These tables define section aliases, sort order, custom titles, and elements to exclude from the final output.
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 : Execution of the `%code_diary` macro to analyze the `project_main.sas` file and generate two Markdown files (a complete version for developers and a scrubbed version).
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.