67%macro mp_dsmeta(libds,outds=work.dsmeta);
70data;run; %let ds1=&syslast;
71data;run; %let ds2=&syslast;
74ods output attributes=&ds1 enginehost=&ds2;
77proc contents data=&libds;
81data &outds (keep=ods_table name value);
82 length ods_table $10 name label2 label1 label $100
83 value cvalue cvalue1 cvalue2 $1000
84 nvalue nvalue1 nvalue2 8;
85 if _n_=1 then call missing (of _all_);
87 set &ds1 (in=atrs) &ds2 (in=eng);
89 ods_table=
'ATTRIBUTES';
90 name=coalescec(label1,label);
91 value=coalescec(cvalue1,cvalue,put(coalesce(nvalue1,nvalue),best.));
93 if label2 ne
'' then
do;
95 value=coalescec(cvalue2,put(nvalue2,best.));
100 ods_table=
'ENGINEHOST';
101 name=coalescec(label1,label);
102 value=coalescec(cvalue1,cvalue,put(coalesce(nvalue1,nvalue),best.));
108drop table &ds1, &ds2;