SASUnit Examples  Version 1.5.0
_render_asserttableexistsexp.sas
Go to the documentation of this file.
1 
22 %macro _render_assertTableExistsExp (i_sourceColumn=
23  ,o_html=0
24  ,o_targetColumn=
25  );
26 
27  hlp2 = scan(&i_sourceColumn., 1, ":");
28  if (hlp2 in ("DATA", "VIEW", "CATALOG")) then do;
29  select (hlp2);
30  when ("DATA") hlp = "&g_nls_reportTableExist_004.";
31  when ("VIEW") hlp = "&g_nls_reportTableExist_005.";
32  when ("CATALOG") hlp = "&g_nls_reportTableExist_006.";
33  otherwise;
34  end;
35 
36  hlp2 = scan(&i_sourceColumn., 2, ":");
37  hlp = catx(" ",hlp,hlp2);
38  hlp2 = scan(&i_sourceColumn., 3, ":");
39  select (hlp2);
40  when (0) hlp = catt(hlp," &g_nls_reportTableExist_007.");
41  when (1) hlp = catt(hlp," &g_nls_reportTableExist_008.");
42  otherwise;
43  end;
44  end;
45  else do;
46  /* invalid type */
47  hlp = tst_errMsg;
48  end;
49 
50  %_render_dataColumn (i_sourceColumn=hlp
51  ,o_targetColumn=&o_targetColumn.
52  );
53 
54 %mend _render_assertTableExistsExp;