Not sure how it works in Denmark but in Poland you have to work certain amount of years (20-25) to qualify for retirement even though the retirement age is 60-65. The amount you get depends on how much you paid into the system, so you will get less for not working, but it'll not prevent you from receiving the pension. And in the US, you become eligible for pension after just 10 years of paying into the system.