{Application 'ADDWEIGHTS' logic file generated by CSPro}
PROC GLOBAL

PROC POPSTANCENSUS_FF

PROC WEIGHT

// Load weight from lookup file
if loadcase(WEIGHTS_DICT, PROVINCE, DISTRICT) then
	// copy weight from lookup
	$ = W_WGT;
else
	errmsg("Weight for province %v district %v missing from lookup",
		PROVINCE, DISTRICT);
endif;

