"datalore" is the twelfth episode of the of the american science fiction television series "", originally aired on january 18, 1988, in broadcast syndication. the story was created by robert lewin and maurice hurley, and turned into a script by lewin and the creator of the show, gene roddenberry. it was roddenberry's final script credit on a "star trek" series. the director was originally to be joseph l. scanlan, but following delays in pre-production caused by script re-writes, it was reassigned to rob bowman.