I recall helping out a user once who recently installed / re-installed z3ta+ from the Sonar package. It was quite similar to what you're reporting here. The problem turned out to be that no MIDI Learn folder was created by the installation process.
Check to see if you have a MIDI Learn subfolder under z3ta+. Depending on your O/S and versions, it should be under Application Data or Cakewalk Content. If it's not there, create a MIDI Learn subfolder yourself. That should 'feather the nest' that the MIDI Learn process is looking for.
Faiiling that, search your system (including Hidden Files) for MidiConfig00.bin. Most - but not all - Cakewalk synths use this file to store MIDI Learn configurations, so check first for the synth it's located under. [I believe the Dimension Pro equivalent is named MidiCfg00.bin.] The ten storable MIDI configurations run from MidiConfig00.bin through MidiConfig09.bin.
The midicfg.txt that appears when you select Options > Show MIDI Configuration File is generated from the active MidiConfig
xx.bin file. If there's no MIDI Learn subfolder, then there's no place to put the MidiConfig
xx.bin file. No midicfg.txt will be generated. In an Explorer window open alongside z3ta+, you can see MidiConfig00.bin appear (under MIDI Learn) as soon as a successful Learn operation is completed in z3ta+.