For the transfer of data to the National Records of Scotland as set out below, the legal basis is that it is necessary for archiving purposes in the public interest (Article 6(1)(e) UK GDPR and section 8(d) DPA or Article 9(2)(j) UK GDPR and section10(2) and paragraph 4(a), part 1, schedule 1 to the DPA).