In reply to Alain Voyer.

Hi Alain, it's not 100% reliable, but you might be able to use binary reads to scan the data set file header and see the byte signature. You'll find signatures such as "9.0401M3X64_8PRO" from which you can infer the proper architecture.