Re: How do we know the Length of numeric field with decimal
Posted: August 25th, 2012, 9:05 am
Dear pierrew;
Reference of last post from Gregory, he mentioned that use value alphanumeric for Latitude variable. If we use alphanumeric then syntax is:
PROC GLOBAL
Numeric decimalPlace, Nlength;
PROC LATITUDE
decimalPlace = poschar(".",$);
if decimalPlace<>3 then
errmsg ("Latitude is not correct. Reenter");
reenter;
else
Nlength=length(strip($));
if Nlength<>8 then
errmsg ("Latitude length is not correctd");
$="";
reenter;
else
endif;
endif;
Regards.
Reference of last post from Gregory, he mentioned that use value alphanumeric for Latitude variable. If we use alphanumeric then syntax is:
PROC GLOBAL
Numeric decimalPlace, Nlength;
PROC LATITUDE
decimalPlace = poschar(".",$);
if decimalPlace<>3 then
errmsg ("Latitude is not correct. Reenter");
reenter;
else
Nlength=length(strip($));
if Nlength<>8 then
errmsg ("Latitude length is not correctd");
$="";
reenter;
else
endif;
endif;
Regards.