Macro XSET (from Fraktal SAS Programming): Unterschied zwischen den Versionen

Aus phenixxenia.org
Zur Navigation springen Zur Suche springen
K
K
Zeile 15: Zeile 15:
 
  infile path dlm = '=';
 
  infile path dlm = '=';
 
  input xvar $ xval $;
 
  input xvar $ xval $;
  xvar = translate(xvar,'_','-()');
+
  xvar = translate(xvar,'_','(-)');
 
  call symput(compress(xvar),compress(xval));
 
  call symput(compress(xvar),compress(xval));
 
  run;
 
  run;

Version vom 22. Juli 2014, 10:05 Uhr

Zurück

Übersicht

Vorwärts

%MACRO xset;
filename path pipe "set" lrecl = 2048;
data _NULL_;
length xvar $256 xval $1024;
infile path dlm = '=';
input xvar $ xval $;
xvar = translate(xvar,'_','(-)');
call symput(compress(xvar),compress(xval));
run;
%MEND xset;

Zurück

Übersicht

Vorwärts