Discussion:
Why my variables are uninitialized?
(too old to reply)
Irin later
2007-04-17 13:26:59 UTC
Permalink
Arild, sorry, I meant BB in Proc contents

# Variable Type Len Pos Format Informat Label
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
40 AMHC_BB_NOT_PRESCIBE_ Num 8 48 12. 12. AMHC_BB_NOT_PRESCIBE_
ALLERGY ALLERGY
41 AMHC_BB_NOT_PRESCIBE_ Num 8 56 12. 12. AMHC_BB_NOT_PRESCIBE_
ASTHMA ASTHMA
45 AMHC_BB_NOT_PRESCIBE_COPD Num 8 88 12. 12. AMHC_BB_NOT_PRESCIBE_COPD
43 AMHC_BB_NOT_PRESCIBE_ Num 8 72 12. 12. AMHC_BB_NOT_PRESCIBE_
HEARTBLOCK HEARTBLOCK
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12. AMHC_BB_NOT_PRESCIBE_
HYPOTENSION HYPOTENSION
44 AMHC_BB_NOT_PRESCIBE_SINUS Num 8 80 12. 12. AMHC_BB_NOT_PRESCIBE_SINUS

All my datasets contain all variables.....
So I am totally confused....
After rumming my code I got the following log?..
132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
Did you mean to write AMHC_ARB.. not BB, like your contents suggests?
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.
# Variable Type Len Pos Format Informat Label
?????????????????????????????????????????????????????????????????????????
??????????????????????
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12.
AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO
HYPOTENSIO
Why I get uninitialized variables?
What I am doing wrong?
Thank you in advance
Irin
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Arild S
2007-04-17 13:12:53 UTC
Permalink
After rumming my code I got the following log?..
132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
Did you mean to write AMHC_ARB.. not BB, like your contents suggests?
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.
# Variable Type Len Pos Format Informat Label
?????????????????????????????????????????????????????????????????????????
??????????????????????
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12.
AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO
HYPOTENSIO
Why I get uninitialized variables?
What I am doing wrong?
Thank you in advance
Irin
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Nat Wooding
2007-04-17 13:45:01 UTC
Permalink
Irin

I note

if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR


but the contents shows the variable as

AMHC_BB_NOT_PRESCIBE_ALLERGY

In the if statement, you have PRESCRIBE but in the variable from the
contents list, you have

PRESCIBE which lacks the R.




Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977



Irin later
<***@YAHOO
.COM> To
Sent by: "SAS(r) SAS-***@LISTSERV.UGA.EDU
Discussion" cc
<SAS-***@LISTSERV.U
GA.EDU> Subject
Re: Why my variables are
uninitialized?
04/17/2007 09:26
AM


Please respond to
Irin later
<***@YAHOO
.COM>






Arild, sorry, I meant BB in Proc contents

# Variable Type Len Pos Format Informat
Label

ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

40 AMHC_BB_NOT_PRESCIBE_ Num 8 48 12. 12.
AMHC_BB_NOT_PRESCIBE_
ALLERGY
ALLERGY
41 AMHC_BB_NOT_PRESCIBE_ Num 8 56 12. 12.
AMHC_BB_NOT_PRESCIBE_
ASTHMA
ASTHMA
45 AMHC_BB_NOT_PRESCIBE_COPD Num 8 88 12. 12.
AMHC_BB_NOT_PRESCIBE_COPD
43 AMHC_BB_NOT_PRESCIBE_ Num 8 72 12. 12.
AMHC_BB_NOT_PRESCIBE_
HEARTBLOCK
HEARTBLOCK
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12.
AMHC_BB_NOT_PRESCIBE_
HYPOTENSION
HYPOTENSION
44 AMHC_BB_NOT_PRESCIBE_SINUS Num 8 80 12. 12.
AMHC_BB_NOT_PRESCIBE_SINUS

All my datasets contain all variables.....
So I am totally confused....
After rumming my code I got the following log?..
132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
Did you mean to write AMHC_ARB.. not BB, like your contents suggests?
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.
# Variable Type Len Pos Format Informat Label
?????????????????????????????????????????????????????????????????????????
??????????????????????
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12.
AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO
HYPOTENSIO
Why I get uninitialized variables?
What I am doing wrong?
Thank you in advance
Irin
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.


-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.
Jack Clark
2007-04-17 13:18:40 UTC
Permalink
Irin,

My initial thought would be that the data set bc65Den2 does not contain these variables. Could you run a PROC CONTENTS on it to check if these exist in that data set?

Jack Clark
Research Analyst
Center for Health Program Development and Management
University of Maryland, Baltimore County


-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-***@LISTSERV.UGA.EDU] On Behalf Of Irin later
Sent: Tuesday, April 17, 2007 8:57 AM
To: SAS-***@LISTSERV.UGA.EDU
Subject: Why my variables are uninitialized?

After rumming my code I got the following log…..

132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;

NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.


Proc contents of the variables look like the following:
# Variable Type Len Pos Format Informat Label
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12. AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO HYPOTENSIO


Why I get uninitialized variables?

What I am doing wrong?

Thank you in advance

Irin



---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Irin later
2007-04-17 13:49:31 UTC
Permalink
Jack, dataset do contain variables

The only think is that as long as AMHC_BB_NOT_PRESCIBE_HYPOTENSION has more than 32 digits (SAS 8.2) I fixed it to AMHC_BB_NOT_PRESCIBE_HYPOTENSIO in Access Database and imported to SAS

proc import table='BC65QEP_RX100'
out=bc65qepDenom
dbms=access;
database='C:\QA.mdb';
userid='Irin';
password=' ';
WORKGPDB="***";
run;

After that Proc contents shows the var name AMHC_BB_NOT_PRESCIBE_HYPOTENSIO for all datasets…including bc65Den2;

However when I view datasets it is still shown as AMHC_BB_NOT_PRESCIBE_HYPOTENSION as if I never fixed it…to 32.

Irin


Jack Clark <***@CHPDM.UMBC.EDU> wrote: Irin,

My initial thought would be that the data set bc65Den2 does not contain these variables. Could you run a PROC CONTENTS on it to check if these exist in that data set?

Jack Clark
Research Analyst
Center for Health Program Development and Management
University of Maryland, Baltimore County


-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-***@LISTSERV.UGA.EDU] On Behalf Of Irin later
Sent: Tuesday, April 17, 2007 8:57 AM
To: SAS-***@LISTSERV.UGA.EDU
Subject: Why my variables are uninitialized?

After rumming my code I got the following log…..

132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;

NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.


Proc contents of the variables look like the following:
# Variable Type Len Pos Format Informat Label
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12. AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO HYPOTENSIO


Why I get uninitialized variables?

What I am doing wrong?

Thank you in advance

Irin



---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.



---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Irin later
2007-04-17 14:17:44 UTC
Permalink
Nat, that is truth! Thank you very much!

Now the only unitialized var is AMHC_BB_NOT_PRESCIBE_
HYPOTENSIO. Still cannot resolve it


Proc contents looks like
# Variable Type Len Pos Format Informat Label
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12. AMHC_BB_NOT_PRESCIBE_
HYPOTENSION HYPOTENSION

Log calls it as 32 digits
NOTE: Variable AMHC_BB_NOT_PRESCIBE_HYPOTENSIO is uninitialized.

Also datasets shows it as AMHC_BB_NOT_PRESCIBE_HYPOTENSION as if I never fixed it ....


Irin



Nat Wooding <***@DOM.COM> wrote:
Irin

I note

if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR


but the contents shows the variable as

AMHC_BB_NOT_PRESCIBE_ALLERGY

In the if statement, you have PRESCRIBE but in the variable from the
contents list, you have

PRESCIBE which lacks the R.




Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977



Irin later
.COM> To
Sent by: "SAS(r) SAS-***@LISTSERV.UGA.EDU
Discussion" cc
GA.EDU> Subject
Re: Why my variables are
uninitialized?
04/17/2007 09:26
AM


Please respond to
Irin later
.COM>






Arild, sorry, I meant BB in Proc contents

# Variable Type Len Pos Format Informat
Label

ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

40 AMHC_BB_NOT_PRESCIBE_ Num 8 48 12. 12.
AMHC_BB_NOT_PRESCIBE_
ALLERGY
ALLERGY
41 AMHC_BB_NOT_PRESCIBE_ Num 8 56 12. 12.
AMHC_BB_NOT_PRESCIBE_
ASTHMA
ASTHMA
45 AMHC_BB_NOT_PRESCIBE_COPD Num 8 88 12. 12.
AMHC_BB_NOT_PRESCIBE_COPD
43 AMHC_BB_NOT_PRESCIBE_ Num 8 72 12. 12.
AMHC_BB_NOT_PRESCIBE_
HEARTBLOCK
HEARTBLOCK
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12.
AMHC_BB_NOT_PRESCIBE_
HYPOTENSION
HYPOTENSION
44 AMHC_BB_NOT_PRESCIBE_SINUS Num 8 80 12. 12.
AMHC_BB_NOT_PRESCIBE_SINUS

All my datasets contain all variables.....
So I am totally confused....

Arild S wrote: On Tue, 17 Apr 2007 05:57:13 -0700, Irin later
After rumming my code I got the following log?..
132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
Did you mean to write AMHC_ARB.. not BB, like your contents suggests?
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.
# Variable Type Len Pos Format Informat Label
?????????????????????????????????????????????????????????????????????????
??????????????????????
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12.
AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO
HYPOTENSIO
Why I get uninitialized variables?
What I am doing wrong?
Thank you in advance
Irin
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.


-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.



---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
Nat Wooding
2007-04-17 14:24:19 UTC
Permalink
It looks like the variable in the data set has an "N" on the end but the
variable in the if statement does not.

I, personally, try to avoid long variable names if I can -- meaning, if a
short variable name is clearly understandable. Then, if I want a longer
name to appear in tables and such, I use a long lable.

For me, it is just too easy to mistype a long name and have errors such as
these.

A trick that I might use for situations such as the one you have hear would
be to print out a list of the variables and then copy these into my editor
and add the rest of the code. I have even been know to use put statement to
write out as much of the if statements as possible.

Nat

Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977



Irin later
<***@yahoo
.com> To
***@DOM.COM,
04/17/2007 10:17 SAS-***@LISTSERV.UGA.EDU
AM cc

Subject
Re: Why my variables are
uninitialized?










Nat, that is truth! Thank you very much!

Now the only unitialized var is AMHC_BB_NOT_PRESCIBE_
HYPOTENSIO. Still cannot resolve it


Proc contents looks like
# Variable Type Len Pos Format Informat Label
ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12.
AMHC_BB_NOT_PRESCIBE_
HYPOTENSION
HYPOTENSION

Log calls it as 32 digits
NOTE: Variable AMHC_BB_NOT_PRESCIBE_HYPOTENSIO is uninitialized.

Also datasets shows it as AMHC_BB_NOT_PRESCIBE_HYPOTENSION as if I never
fixed it ....


Irin



Nat Wooding <***@DOM.COM> wrote:
Irin

I note

if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR


but the contents shows the variable as

AMHC_BB_NOT_PRESCIBE_ALLERGY

In the if statement, you have PRESCRIBE but in the variable from the
contents list, you have

PRESCIBE which lacks the R.




Nat Wooding
Environmental Specialist III
Dominion, Environmental Biology
4111 Castlewood Rd
Richmond, VA 23234
Phone:804-271-5313, Fax: 804-271-2977



Irin later
.COM> To
Sent by: "SAS(r) SAS-***@LISTSERV.UGA.EDU
Discussion" cc
GA.EDU> Subject
Re: Why my variables are
uninitialized?
04/17/2007 09:26
AM


Please respond to
Irin later
.COM>






Arild, sorry, I meant BB in Proc contents

# Variable Type Len Pos Format Informat
Label

Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’Æ’


40 AMHC_BB_NOT_PRESCIBE_ Num 8 48 12. 12.
AMHC_BB_NOT_PRESCIBE_
ALLERGY
ALLERGY
41 AMHC_BB_NOT_PRESCIBE_ Num 8 56 12. 12.
AMHC_BB_NOT_PRESCIBE_
ASTHMA
ASTHMA
45 AMHC_BB_NOT_PRESCIBE_COPD Num 8 88 12. 12.
AMHC_BB_NOT_PRESCIBE_COPD
43 AMHC_BB_NOT_PRESCIBE_ Num 8 72 12. 12.
AMHC_BB_NOT_PRESCIBE_
HEARTBLOCK
HEARTBLOCK
42 AMHC_BB_NOT_PRESCIBE_ Num 8 64 12. 12.
AMHC_BB_NOT_PRESCIBE_
HYPOTENSION
HYPOTENSION
44 AMHC_BB_NOT_PRESCIBE_SINUS Num 8 80 12. 12.
AMHC_BB_NOT_PRESCIBE_SINUS

All my datasets contain all variables.....
So I am totally confused....

Arild S wrote: On Tue, 17 Apr 2007 05:57:13 -0700, Irin later
After rumming my code I got the following log?..
132 data bc65num2;
133 set bc65Den2;
134
135 if AMHC_BB_NOT_PRESCRIBE_ALLERGY=-1 OR
Did you mean to write AMHC_ARB.. not BB, like your contents suggests?
136 AMHC_BB_NOT_PRESCRIBE_ASTHMA=-1 OR
137 AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO=-1 OR
138 AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK=-1 OR
139 AMHC_BB_NOT_PRESCRIBE_SINUS=-1 OR
140 AMHC_BB_NOT_PRESCRIBE_COPD=-1 THEN
141 MHFREANP='1';
142 ELSE MHFREANP='0';
143 if MHFLVF='1' AND
144 MHFLVSD='1' AND
145 ( MHFBB='1' OR
146 (MHFREANP='1' OR
147 AMHC_DR_NO_BB_REASON='Y'));
148 run;
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ALLERGY is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_ASTHMA is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HYPOTENSIO is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_HEARTBLOCK is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_SINUS is uninitialized.
NOTE: Variable AMHC_BB_NOT_PRESCRIBE_COPD is uninitialized.
NOTE: There were 79 observations read from the data set WORK.BC65DEN2.
NOTE: The data set WORK.BC65NUM2 has 74 observations and 149 variables.
# Variable Type Len Pos Format Informat Label
?????????????????????????????????????????????????????????????????????????
??????????????????????
55 AMHC_ARB_NOT_PRESCRIB_ Num 8 120 12. 12.
AMHC_ARB_NOT_PRESCRIB_
HYPOTENSIO
HYPOTENSIO
Why I get uninitialized variables?
What I am doing wrong?
Thank you in advance
Irin
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
Check outnew cars at Yahoo! Autos.


-----------------------------------------
CONFIDENTIALITY NOTICE: This electronic message contains
information which may be legally confidential and/or privileged and
does not in any case represent a firm ENERGY COMMODITY bid or offer
relating thereto which binds the sender without an additional
express written confirmation to that effect. The information is
intended solely for the individual or entity named above and access
by anyone else is unauthorized. If you are not the intended
recipient, any disclosure, copying, distribution, or use of the
contents of this information is prohibited and may be unlawful. If
you have received this electronic transmission in error, please
reply immediately to the sender that you have received the message
in error, and delete it. Thank you.



Ahhh...imagining that irresistible "new car" smell?
Check out new cars at Yahoo! Autos.

Loading...