SASUnit Examples  Version 1.2
_sasunit_nls.sas
Go to the documentation of this file.
1 
25 /* change log
26  31.01.2013 KL Skip comments identified by ###
27  22-07-2008 AM modified infile statement for linux
28  13-08-2008 AM created
29 */
30 
31 data nls (drop=mark);
32  infile "&g_sasunit./_sasunit_nls.txt" truncover termstr=crlf;
33  input mark $3. @;
34  if mark ne '###' then do;
35  if mark='---' then input @4 program $32.;
36  retain program;
37  input @1 num 3. +1 language $2. +1 text $128.;
38  output;
39  end;
40 run;
41 
42 %MACRO _sasunit_nls(
43  i_language =
44 );
45 
46 data _null_;
47  set nls;
48  where language = "&i_language";
49  call execute ('%global g_nls_' !! trim(program) !! '_' !! put (num, z3.) !! ';');
50  call symput ('g_nls_' !! trim(program) !! '_' !! put (num, z3.), trim (text));
51 run;
52 
53 %MEND _sasunit_nls;