feat: adding ismap attribute to getdata response (and fixing test)
Some checks failed
Build / Build-and-ng-test (pull_request) Failing after 13s
Some checks failed
Build / Build-and-ng-test (pull_request) Failing after 13s
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
/**
|
||||
@file getxlmaps.sas
|
||||
@brief Returns a list of rules for a specific xlmap_id
|
||||
@brief Returns a list of rules and other info for a specific xlmap_id
|
||||
|
||||
<h4> Service Inputs </h4>
|
||||
|
||||
@ -14,11 +14,20 @@
|
||||
|
||||
<h5> xlmaprules </h5>
|
||||
|
||||
Filtered output of the dc.mpe_excel_map table
|
||||
|
||||
|XLMAP_ID|XLMAP_RANGE_ID|XLMAP_SHEET|XLMAP_START|XLMAP_FINISH|
|
||||
|---|---|---|---|---|
|
||||
|Sample|Range1|Sheet1|ABSOLUTE A1| |
|
||||
|Sample|Range2|Sheet1|RELATIVE R[2]C[2]|ABSOLUTE H11|
|
||||
|
||||
<h5> xlmapinfo </h5>
|
||||
Extra info for a map id
|
||||
|
||||
|TARGET_DS|
|
||||
|---|
|
||||
|DCXXX.MPE_EXCEL_UPLOAD|
|
||||
|
||||
<h4> SAS Macros </h4>
|
||||
@li mp_abort.sas
|
||||
@li mpeinit.sas
|
||||
@ -50,7 +59,22 @@ create table work.xlmaprules as
|
||||
,msg=%str(syscc=&syscc)
|
||||
)
|
||||
|
||||
%let chk=0;
|
||||
proc sql noprint;
|
||||
select count(*) into: chk
|
||||
from &mpelib..mpe_tables
|
||||
where catx('.',libref,dsn) in (select xlmap_id from work.getxlmaps_in);
|
||||
|
||||
data work.xlmapinfo;
|
||||
set work.getxlmaps_in;
|
||||
length target_ds $32;
|
||||
if &chk=0 then target_ds="&mpelib..MPE_EXCEL_UPLOAD";
|
||||
else target_ds=xlmap_id;
|
||||
keep target_ds;
|
||||
run;
|
||||
|
||||
%webout(OPEN)
|
||||
%webout(OBJ,xlmaprules)
|
||||
%webout(OBJ,xlmapinfo)
|
||||
%webout(CLOSE)
|
||||
|
||||
|
Reference in New Issue
Block a user