ONS refers to the Office for National Statistics.
It was replaced by the GSS coding system on 1 January 2011.
Local government wards had a two-letter code within their local authority, and census output area an additional four digits within a ward.
An overlapping system encoded civil parish areas.
Parishes were represented by an additional three digits within their local authority: The codes for counties and districts were as follows.