-IF &XYZ EQ 0 THEN GOTO NOdata ELSE GOTO Data ; and another similar If stmt is -IF &ABC EQ 0 THEN GOTO NOdata ELSE GOTO Data ;
i need help on how to tie these above two statements.i mean how to use both &ABC and &XYZ in a single if stmt.This message has been edited. Last edited by: Kerry,
7.6.7 windows PDF,EXCEL.
August 04, 2010, 02:16 PM
Prarie
OR
August 04, 2010, 02:19 PM
swati
Hi PRARIE, can i use 'or' like this in IF stmt.
-IF (&ABC or &XYZ) EQ 0 THEN GOTO NOdata ELSE GOTO Data ;
please let me know.
7.6.7 windows PDF,EXCEL.
August 04, 2010, 02:39 PM
Arif
OR is capital O and R.
Why are you not trying IF ELSEIF ELSE
WebFOCUS 7.6.10 Windows HTML
August 04, 2010, 04:19 PM
Francis Mariani
This is an OR statement that works similarly for any programming language:
swati, the IF structure seemed simple enough. If you still have trouble going where you want to go, try -SET &ECHO = ALL to see how DM interpret you IF statement. You will be suprised that... FOC_NONE <> 'FOC_NONE' 'ABC' <> 'ABC ' or ABC <> 'ABC' null string <> blanks