Except in the case prescribed in the following paragraph, when the mayor of the municipality makes an entry in a certificate of residence, the mayor is to enter the resident record code most recently entered in that certificate of residence by the mayor of the municipality who most recently made an entry in the certificate of residence of the person pertaining to that entry.
When the mayor of the municipality makes an entry in a certificate of residence for a person who is to be newly recorded in the basic resident register of that municipality, if that person has never been recorded in the basic resident register of any municipality, the mayor is to enter in the certificate of residence pertaining to that person one resident record code selected from among the resident record codes designated by the Agency under Article 30-2, paragraph (1). In this case, the mayor of the municipality is to select and enter a resident record code that is different from the resident record codes entered in the certificates of residence pertaining to persons other than the person pertaining to that entry.
When the mayor of the municipality has entered a resident record code pursuant to the preceding paragraph, the mayor must promptly notify the person pertaining to that entry, in writing, of that fact and of the resident record code.
Read this with the articles around it
Designation of Resident Record Code
The Agency is to designate, for each mayor of a municipality, the resident record codes that the mayor of the municipality may enter in a certificate of residence…
機構は、総務省令で定めるところにより、市町村長ごとに、当該市町村長が住民票に記載することのできる住民票コードを指定し、これを当該市町村長に通知するものとする。
Open this provisionEntry, etc. of Resident Record Code
When the mayor of the municipality makes an entry in a certificate of residence for a person who is to be newly recorded in the basic resident register of that municipality…
市町村長は、新たにその市町村の住民基本台帳に記録されるべき者につき住民票の記載をする場合において、その者がいずれの市町村においても住民基本台帳に記録されたことがない者であるときは、その者に係る住民票に前条第一項の規定により機構から指定された住民票コードのうちから選択するいずれか一の住民票コードを記載するものとする。
Open this provisionresident record codemachine translation
「住民票コード」
The resident record code: a number, symbol or other code, of a form set by Ministry of Internal Affairs and Communications Order (総務省令), entered on each person's certificate of residence (住民票) under Article 7, item (xiii).
Defined inArticle 7, paragraph (1), item (xiii)
the Agencymachine translation
「機構」
The Japan Agency for Local Authority Information Systems (地方公共団体情報システム機構), which designates the resident record codes (住民票コード) municipal mayors may use and keeps the identity confirmation information (本人確認情報) that prefectural governors pass to it.
Short name set inArticle 19-3, paragraph (1)