Mar 13, 2003 #1 JoaoPinto Programmer Feb 12, 2003 26 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 Feb 13, 2003 60 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 Feb 12, 2003 26 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 Feb 13, 2003 60 PL Probably a typo - it works for me: TABLE FILE MOVIES COUNT DST.CATEGORY AS 'My Label is this' END Upvote 0 Downvote