-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcbgen.ado
28 lines (18 loc) · 801 Bytes
/
cbgen.ado
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
program define cbgen, nclass
syntax [using/], save(string) [replace ///
LSpath(string) LANGuage(string) lsonly panel ///
VARstub(string) NOAuto ///
drop(varlist) add(varlist) lslab textno ///
german CLRtblrow(string) tblmax(integer 16) NOSTatistics lsdrop stdrop ///
frag NONUMbering LANDscape]
version 12
* 1. use cbdata to create data for cbout
local cbdata_opts = `""'
if "`lspath'" != "" local cbdata_opts = `"`cbdata_opts' lspath("`lspath'")"'
if "`varstub'" != "" local cbdata_opts = `"`cbdata_opts' varstub("`varstub'")"'
if "`using'" == "" cbdata, `cbdata_opts' `replace' `lsonly' `noauto'
else cbdata using "`using'", `cbdata_opts' `replace' `lsonly' `noauto'
* 2. use cbout to create output file
cbout, save("`save'") `replace' `nonumbering' `german' // `frag'
end
exit