SASUnit Examples  Version 1.5.0
_nls.sas
Go to the documentation of this file.
1 
26 data nls (drop=mark);
27  infile "&g_sasunit./_nls.txt" truncover;
28  input mark $3. @;
29  if mark ne '###' then do;
30  if mark='---' then input @4 program $32.;
31  retain program;
32  input @1 num 3. +1 language $2. +1 text $128.;
33  output;
34  end;
35 run;
36 
37 %MACRO _nls (i_language =
38  );
39 
40  data _null_;
41  set nls;
42  where language = "&i_language";
43  call execute ('%global g_nls_' !! trim(program) !! '_' !! put (num, z3.) !! ';');
44  call symput ('g_nls_' !! trim(program) !! '_' !! put (num, z3.), trim (text));
45  run;
46 
47 %MEND _nls;