[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: macro error
From: mmb <jr4 () IX ! URZ ! UNI-HEIDELBERG ! DE>
Date: 2000-03-31 14:18:53
[Download RAW message or body]
%macro h;
Options MPRINT mlogic symbolgen;
data dd; set das;
%do j=1 %to 61;
%let doo=dass&j;
%if (datum lt '1jan1990'd)
%then %let dox1=doo; %else %let dox1=.;
%if((datum lt '1jan1991'd) & (datum GE '1jan1990'd))
%then %let dox2=doo; %else %let dox2=.;
%if((datum lt '1jan1992'd) & (datum GE '1jan1991'd))
%then %let dox3=doo; %else %let dox3=.;
%if((datum lt '1jan1993'd) & (datum GE '1jan1992'd))
%then %let dox4=doo; %else %let dox4=.;
%if((datum lt '1jan1994'd) & (datum GE '1jan1993'd))
%then %let dox5=doo; %else %let dox5=.;
%if((datum lt '1jan1995'd) & (datum GE '1jan1994'd))
%then %let dox6=doo; %else %let dox6=.;
run;
seems to do that on the first glance, but
SP 10 3 1 3 13 65 261191 7 0 . . 2 1 3 0 0 0 8 0 0 0 2 0 2 2 1 3 0 0 0 0 0
0 8 8
8 8 8 8 8 8 8 2 1 3 4 1 5 4 1 5 0 0 0 SP 10 3 2 3 13 65 3 0 0 0 0 0 0 0 0
0 0 0
7 9 9 9 9 9
SP 10 3 1 3 2 64 31291 0 4 . . 0 0 0 3 1 4 0 2 0 2 1 1 2 0 0 0 0 0 0 0 0 0
1 1 2
1 1 2 0 0 0 8 8 8 8 8 8
the data set is looking like this and I "always" get FALSE in the
comparison:
ERROR: All variables have missing values for all observations in the input
ERROR: All variables have missing values for all observations in the input
ERROR: All variables have missing values for all observations in the input
data set.
data set.
data set.
NOTE: The PROCEDURE CORR printed page 27.
NOTE: PROCEDURE CORR used:
real time 0.01 seconds
cpu time 0.01 seconds
MLOGIC(H): %DO loop index variable J is now 28; loop will iterate again.
MLOGIC(H): %LET (variable name is DOO)
SYMBOLGEN: Macro variable J resolves to 28
MLOGIC(H): %IF condition (datum lt '1jan1990'd) is FALSE
MLOGIC(H): %LET (variable name is DOX1)
MLOGIC(H): %IF condition ((datum lt '1jan1991'd) & (datum GE
'1jan1990'd))
is FALSE
MLOGIC(H): %LET (variable name is DOX2)
MLOGIC(H): %IF condition ((datum lt '1jan1992'd) & (datum GE
'1jan1991'd))
is FALSE
MLOGIC(H): %LET (variable name is DOX3)
MLOGIC(H): %IF condition ((datum lt '1jan1993'd) & (datum GE
'1jan1992'd))
is FALSE
MLOGIC(H): %LET (variable name is DOX4)
MLOGIC(H): %IF condition ((datum lt '1jan1994'd) & (datum GE
'1jan1993'd))
is FALSE
MLOGIC(H): %LET (variable name is DOX5)
MLOGIC(H): %IF condition ((datum lt '1jan1995'd) & (datum GE
'1jan1994'd))
is FALSE
MLOGIC(H): %LET (variable name is DOX6)
MPRINT(H): RUN;
MPRINT(H): DATA HELP1(KEEP=DOX1);
MPRINT(H): SET DD;
MLOGIC(H): %IF condition dox1 eq . is FALSE
MPRINT(H): RUN;
WARNING: The variable DOX1 in the DROP, KEEP, or RENAME list has never
been
referenced.
that is the thing, that is so strange.
Sincerely,
--- mmb
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic