Hello ja82 and welcome to the forum!!
From the partial Engine Assembly Code you have, 22TJX, the TJX is the part of the number that will give us the most information.
This is the Engine Suffix Code, it cross references as;
TJX 1972 307 cid fwrd cab 135 HP 2 bolt C-20 & 30
TJX 1973 350 cid conv.cab 155 HP 4 bolt C-10 to 3500
TJX 1978 350 cid conv.cab L LS9 165 HP 4 bolt C-10 & 1500
Nearly all T, Tx and Txx Engine Suffix Codes are for trucks, buses and some commercial vehicles, large trucks, taxis, police cars, etc.
These Engine Suffix Codes are reused by the engine and vehicle assembly plants.
To narrow it down to a 350 cid or 307 cid, look on the rear portion of the block, in the area between the passenger head surface and the transmission mounting flange, you will find a cast mark (raised letters/numbers) 5.0 L, or 5.7 L.
5.0 L = 307 cid, 5.7 L = 350 cid.
I have had a little trouble running down the Engine Casting Number you posted, 3979818.
I don't have my reference books with me at the moment.
But, the Engine Casting Number will give us a larger range of years this block was cast, not really much help.
Regards buying parts for this block to rebuild it or whatever, all the internal parts will fit, once you've determined if it's a 350 or 307. All these hydraulic cam, small blocks are the same, without respect to bore dimensions and stroke.
If you need any additional information about your block/engine, just post the questions.
There are some knowledgeable folks here abouts!!
Don'tt be a stranger to the forum, stop by from time to time and fill us in on what your doing with your engine build!