Can some one help me with the below If statement, I dont know where I'm going wrong, it looks simple but, wont work.
DEFINE FILE MYFILE
TEMP/D12.2=IF FIELD1='A' AND FIELD2='B' AND FIELD3='ASD' THEN MYFIELD ELSE 0;
END
TABLE FILE MYFILE
PRINT TEMP
END
gives me below error message
0 ERROR AT OR NEAR LINE 73 IN PROCEDURE
(FOC246) COMPUTATIONAL STATEMENT REFERS TO MORE THAN ONE DATA PATH
How do I define a field with more than one condition?
Any help would be greatful
Thanks
-P
DEFINE FILE MYFILE
TEMP/D12.2=IF FIELD1='A' AND FIELD2='B' AND FIELD3='ASD' THEN MYFIELD ELSE 0;
END
TABLE FILE MYFILE
PRINT TEMP
END
gives me below error message
0 ERROR AT OR NEAR LINE 73 IN PROCEDURE
(FOC246) COMPUTATIONAL STATEMENT REFERS TO MORE THAN ONE DATA PATH
How do I define a field with more than one condition?
Any help would be greatful
Thanks
-P