Those cables can be pricey but I am not aware of any substitutes. Resist the temptation to just replace the core. The cable probably broke because of damage to the outer sheathing. Check to make sure the cable is properly secured, especially near any hot spots.
You should be able to get one from the dealer. I replaced mine last year. It was very straightforword. You have to remove the instument cluster to get to the cable attached at the rear. Removing it from the transmission is a snap.
I've got a new (I think it's aftermarket) cable sitting on my shelf waiting for me to get off me arse and change! I got it on "that auction site" for under $20. The brand is "Gemo" and it's marked "Made in Germany".
You might be able to but check where the cable broke and carefully check the housing from end to end for kinking or chafing. If it broke off at the transmission, the binding might be anywhere along the cable.
I phoned a couple of places, checked a few web sites. Nothing. So heading to the volvo dealership, I stop in at an auto parts store, which had told me on the phone that they didn't carry for volvo. I show them the cable and ask what do other cars use. He shows me a "universal speedometer cable kit" by "Papco" for domestic cars. Cable looks the same with the square drive on one end and a 'to be crimped on after cutting to length' square head. Cable is 81" long. Bought it for $9 plus tax.
Have installed it but yet to test it as decided to patch some holes while car on ramps. -- '80..245..M46...b21a..SU carb..