In this paper, we set up a procedure that aims at improving the orbits of the known near-Earth asteroids (NEAs) by making use of the One Night Stands (ONS) file distributed by the Minor Planet Center. The identification algorithm employed is of the observation attribution type and takes into account the higher apparent motion exhibited by this kind of asteroids. The application of this algorithm together with the ONS file is not straightforward, as in practice such a file presents several problems that must be managed prior to the massive treatment of the information contained in it. We include a three-step protocol to handle these drawbacks. Finally, we present a detailed analysis of the results obtained with this procedure, the main conclusion being that more than 80 NEA orbits have been improved.