In order to analyze my multilevel data by means of multi-level analysis, I would like to match person-level data (Level 2) of my sample (collected only once, i.e. demographics or cognitive variables) with the corresponding within-person data (Level 1) collected on the multiple occasions e.g. daily behavior observations. To prepare the data for multi-level analysis I matched person-level data identified by a unique ID to the corresponding within-level data identified by the same ID. As a result (see tables below), four behavior observations of ID 001 are now matched with the corresponding (ID 001) demographic and cognition information fourfold and so on. Is this matching procedure correct or should I prepare these differently?
Thanks

Between-person data
ID Demographics Cognition
001 2 7
002 5 4
003 6 8

Within-person data (behavior observations)
ID Days Smoking
001 1 1
001 2 0
001 3 0
001 4 0
002 1 1
002 2 1
002 3 1
002 4 1
003 1 1
003 2 1
003 3 0
003 4 0

Matched data
ID Days Smoking Demographics Cognition
001 1 1 2 7
001 2 0 2 7
001 3 0 2 7
001 4 0 2 7
002 1 1 5 4
002 2 1 5 4
002 3 1 5 4
002 4 1 5 4
003 1 1 6 8
003 2 1 6 8
003 3 0 6 8
003 4 0 6 8