Wed Jun 29, 2022 1:59 pm
Login Register Lost Password? Contact Us

Please Note: The HPCC Systems forums are moving to Stack Overflow. We invite you to post your questions on Stack Overflow utilizing the tag hpcc-ecl (https://stackoverflow.com/search?tab=newest&q=hpcc-ecl). This legacy forum will be active and monitored during our transition to Stack Overflow but will become read only beginning September 1, 2022.



Code Correction - Introduction to ECL - Module 24

Questions and comments regarding the Online Lessons should be posted here.

Tue Mar 12, 2013 2:49 pm Change Time Zone

In Tutorial #9, the suggested solution has a missing filter clause on Line 14:

Change:

Code: Select all
OlderFemaleinMStates := COUNT($.Persons(State IN $.SetMStates,OlderPersons)) -
                        COUNT($.MeninMStatesPersons(OlderPersons));


To:

Code: Select all
OlderFemaleinMStates :=
              COUNT($.Persons(State IN $.SetMStates,OlderPersons,Gender = 'F'));


In the old code, we are also counting gender types that are "Unknown" or "None".


Thanks to Lorraine Hill in Dayton for catching this! Kudos!

Regards,

Bob
bforeman
Community Advisory Board Member
Community Advisory Board Member
 
Posts: 1006
Joined: Wed Jun 29, 2011 7:13 pm

Return to Online Classroom

Who is online

Users browsing this forum: No registered users and 1 guest