08-29-2012 06:32 AM
Here is a SAS program for constructing magic squares, that uses pairs of orthogonal Latin squares obtained from PROC FACTEX and additional constructions in IML to give a way of making a magic square of any given size. The comments in the program attached contains further notes on the construction methods used.
This message is a response to Rick's excellent blog entry http://blogs.sas.com/content/iml/2012/08/29/construct-a-magic-square-of-any-size/
so be sure to read that as well if you are interested in this topic.