Macros for SAS Application Developers
https://github.com/sasjs/core
mp_ds2ddl.sas
Go to the documentation of this file.
1/**
2 @file
3 @brief A wrapper for mp_getddl.sas
4 @details In the next release, this will be the main version.
5
6
7 <h4> SAS Macros </h4>
8 @li mp_getddl.sas
9
10**/
11
12%macro mp_ds2ddl(libds,fref=getddl,flavour=SAS,showlog=YES,schema=
13 ,applydttm=NO
14)/*/STORE SOURCE*/;
15
16%local libref;
17%let libds=%upcase(&libds);
18%let libref=%scan(&libds,1,.);
19%if &libref=&libds %then %let libds=WORK.&libds;
20
21%mp_getddl(%scan(&libds,1,.)
22 ,%scan(&libds,2,.)
23 ,fref=&fref
24 ,flavour=SAS
25 ,showlog=&showlog
26 ,schema=&schema
27 ,applydttm=&applydttm
28)
29
30%mend mp_ds2ddl;