From 26623ba085871750f389be493247de79e2ddf9b5 Mon Sep 17 00:00:00 2001 From: munja Date: Wed, 13 Apr 2022 21:32:47 +0100 Subject: [PATCH] fix: adding cond/endcond to mp_ds2cards --- all.sas | 11 ++++++++--- base/mp_ds2cards.sas | 8 ++++++-- server/ms_webout.sas | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/all.sas b/all.sas index 054fcb1..0c6100b 100644 --- a/all.sas +++ b/all.sas @@ -4545,6 +4545,7 @@ drop table &out_ds; @version 9.2 @author Allan Bowe + @cond **/ %macro mp_ds2cards(base_ds=, tgt_ds= @@ -4716,7 +4717,8 @@ data _null_; put ' @file'; put " @brief Datalines for %upcase(%scan(&base_ds,2)) dataset"; put " @details Generated by %nrstr(%%)mp_ds2cards()"; - put " Available on github.com/sasjs/core"; + put " Source: https://github.com/sasjs/core"; + put ' @cond '; put '**/'; put "data &tgt_ds &indexes;"; put "attrib "; @@ -4761,6 +4763,7 @@ data _null_; if __lastobs then do; put ';;;;'; put 'run;'; + put '/** @endcond **/'; stop; end; run; @@ -4780,7 +4783,9 @@ quit; %put NOTE-;%put NOTE-; %put NOTE- %sysfunc(dequote(&cards_file.)); %put NOTE-;%put NOTE-; -%mend mp_ds2cards;/** +%mend mp_ds2cards; +/** @endcond **/ +/** @file @brief Export a dataset to a CSV file WITH leading blanks @details Export a dataset to a file or fileref, retaining leading blanks. @@ -19149,7 +19154,7 @@ run; %end; %mend ms_runstp;/** @file - @brief Send data to/from @sasjs/server + @brief Send data to/from sasjs/server @details This macro should be added to the start of each web service, **immediately** followed by a call to: diff --git a/base/mp_ds2cards.sas b/base/mp_ds2cards.sas index 626439b..de2c455 100644 --- a/base/mp_ds2cards.sas +++ b/base/mp_ds2cards.sas @@ -48,6 +48,7 @@ @version 9.2 @author Allan Bowe + @cond **/ %macro mp_ds2cards(base_ds=, tgt_ds= @@ -219,7 +220,8 @@ data _null_; put ' @file'; put " @brief Datalines for %upcase(%scan(&base_ds,2)) dataset"; put " @details Generated by %nrstr(%%)mp_ds2cards()"; - put " Available on github.com/sasjs/core"; + put " Source: https://github.com/sasjs/core"; + put ' @cond '; put '**/'; put "data &tgt_ds &indexes;"; put "attrib "; @@ -264,6 +266,7 @@ data _null_; if __lastobs then do; put ';;;;'; put 'run;'; + put '/** @endcond **/'; stop; end; run; @@ -283,4 +286,5 @@ quit; %put NOTE-;%put NOTE-; %put NOTE- %sysfunc(dequote(&cards_file.)); %put NOTE-;%put NOTE-; -%mend mp_ds2cards; \ No newline at end of file +%mend mp_ds2cards; +/** @endcond **/ diff --git a/server/ms_webout.sas b/server/ms_webout.sas index 951c85a..1a3d52a 100644 --- a/server/ms_webout.sas +++ b/server/ms_webout.sas @@ -1,6 +1,6 @@ /** @file - @brief Send data to/from @sasjs/server + @brief Send data to/from sasjs/server @details This macro should be added to the start of each web service, **immediately** followed by a call to: