Mar 13, 2003 #1 JoaoPinto Programmer Joined Feb 12, 2003 Messages 26 Location US Is there anyway to count unique instances? Other than doing DEFINE FILE WEEK1 COUNTNUM/I9 = IF LAST ROLOC NE ROLOC THEN 1 ELSE 0; END And summing COUNTNUM?
Is there anyway to count unique instances? Other than doing DEFINE FILE WEEK1 COUNTNUM/I9 = IF LAST ROLOC NE ROLOC THEN 1 ELSE 0; END And summing COUNTNUM?
Mar 13, 2003 #2 GrSw Programmer Joined Feb 13, 2003 Messages 60 Location PL Use DST. prefix operator, e.g.: TABLE FILE MOVIES COUNT DST.CATEGORY END Grzegorz Upvote 0 Downvote
Mar 13, 2003 Thread starter #3 JoaoPinto Programmer Joined Feb 12, 2003 Messages 26 Location US Thanks a lot. Is there anyway to add a label to that? eg. COUNT DST.CATEGORY AS 'My Label is this' The above doesn't seem to work? Upvote 0 Downvote
Thanks a lot. Is there anyway to add a label to that? eg. COUNT DST.CATEGORY AS 'My Label is this' The above doesn't seem to work?
Mar 13, 2003 #4 GrSw Programmer Joined Feb 13, 2003 Messages 60 Location PL Probably a typo - it works for me: TABLE FILE MOVIES COUNT DST.CATEGORY AS 'My Label is this' END Upvote 0 Downvote