Skip to content

Commit

Permalink
extract comment table
Browse files Browse the repository at this point in the history
  • Loading branch information
mle2718 committed Oct 31, 2024
1 parent 4896299 commit 1a522d0
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions stata_code/data_extraction_processing/extraction/cams_keyfiles.do
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,18 @@ notes: "`sql'";

save $data_main/cams_vlgear_keyfile_$today_date_string.dta, replace;
export delimited using $data_main/cams_vlgear_keyfile_$today_date_string.csv, replace;




clear;
local sql "select table_name, column_name, comments from all_col_comments where owner='CAMS_GARFO' and table_name in('CAMS_SUBTRIP','CAMS_LAND','CAMS_ORPHAN_SUBTRIP') order by column_name, table_name" ;

odbc load, exec("`sql' ;") lower;

/*jdbc load, exec("`sql'") case(lower); not run.*/

save $data_main/cams_keyfile_$today_date_string.dta, replace;
export delimited using $data_main/cams_keyfile_$today_date_string.csv, replace;


0 comments on commit 1a522d0

Please sign in to comment.