I use Disc ID in folder name to identify folders. If I try a freedb lookup, it will obviously calculate the ID, but -- it seems -- that unless the disc is in freedb, it won't write it to tag.
Is there any action which will generate the value AND tag it?
No. There is no action in Mp3tag, but a "Tag Sources" dialog, which may help.
You can use the dialog "Mp3tag/Tag Sources/freedb (Local)" and push the radio button "determine from inserted Audio CD". One of the following dialog windows displays the calculated DISCID.
The DISCID then should be stored into the tag-field DISCID as given in the dialog along with the other track related data.
The DISCID value can also be copied to the clipboard, without permitting the dialog, and can be copied to anywhere else.
To calculate a proper DISCID or CDDBID you need the original CD (physical medium or disk image).