diff --git a/all.sas b/all.sas index a2193c8..74591ad 100644 --- a/all.sas +++ b/all.sas @@ -4027,6 +4027,15 @@ create table &outds (rename=( The output will be one cards file in the `outloc` directory per dataset in the input `lib` library. If the `outloc` directory does not exist, it is created. + To create a single SAS file with the first 1000 records of each table in a + library you could use this syntax: + + %mp_lib2cards(lib=sashelp + , outloc= /tmp + , outfile= myfile.sas + , maxobs= 1000 + ) +

SAS Macros

@li mf_mkdir.sas @li mf_trimstr.sas diff --git a/base/mp_lib2cards.sas b/base/mp_lib2cards.sas index 47172d7..1e2ee82 100644 --- a/base/mp_lib2cards.sas +++ b/base/mp_lib2cards.sas @@ -10,6 +10,15 @@ The output will be one cards file in the `outloc` directory per dataset in the input `lib` library. If the `outloc` directory does not exist, it is created. + To create a single SAS file with the first 1000 records of each table in a + library you could use this syntax: + + %mp_lib2cards(lib=sashelp + , outloc= /tmp + , outfile= myfile.sas + , maxobs= 1000 + ) +

SAS Macros

@li mf_mkdir.sas @li mf_trimstr.sas