The Legacy or earlier TMCC electronics in Lionel O gauge locomotives are not compatible with DCC. If you want to run DCC, you'll have to gut the electronics and replace them with a suitable DCC decoder.
Only the newest Legacy-equipped Lionel/American Flyer S Scale diesels (SD70ACe's ES44AC's) are compatible with DCC.
Rusty