Hi,
Can someone please explain this line of code for me?
IFN(SUM(IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT)>0,1,0);
Does it mean that the sum of the 3, IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT are > than 0,1,0 then it will return '1'.
Or does it mean that if sum of IFHLDCURR_MRTA>0 and sum of IFHLDCURR_TRDL>1 and sum of IFHLDCURR_INVT>0, only then it will return '1'.
or any other explanation that i misunderstood?
Thank you.
RTM.
IFN(logical-expression, value-returned-when-true, value-returned-when-false
<, value-returned-when-missing>)
Logical Expression -> SUM(IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT)>0
Value when True: 1
Value when False: 0
Value when Missing: Not declared
@Wken1122 wrote:
Hi,
Can someone please explain this line of code for me?
IFN(SUM(IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT)>0,1,0);
Does it mean that the sum of the 3, IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT are > than 0,1,0 then it will return '1'.
Or does it mean that if sum of IFHLDCURR_MRTA>0 and sum of IFHLDCURR_TRDL>1 and sum of IFHLDCURR_INVT>0, only then it will return '1'.
or any other explanation that i misunderstood?
Thank you.
RTM.
IFN(logical-expression, value-returned-when-true, value-returned-when-false
<, value-returned-when-missing>)
Logical Expression -> SUM(IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT)>0
Value when True: 1
Value when False: 0
Value when Missing: Not declared
@Wken1122 wrote:
Hi,
Can someone please explain this line of code for me?
IFN(SUM(IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT)>0,1,0);
Does it mean that the sum of the 3, IFHLDCURR_MRTA,IFHLDCURR_TRDL,IFHLDCURR_INVT are > than 0,1,0 then it will return '1'.
Or does it mean that if sum of IFHLDCURR_MRTA>0 and sum of IFHLDCURR_TRDL>1 and sum of IFHLDCURR_INVT>0, only then it will return '1'.
or any other explanation that i misunderstood?
Thank you.
Thanks a lot for the clarification!
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.