It is possible to call a SAS proc (e.g.: proc corr) from a function defined in proc ga using the dusubl() function.
First you will need to create the input data source of proc corr, then call procc corr using dosubl(), then read the results from the created dataset (open(), read(),... functions).
If this is realy just calculating correlation and data is already in variables of proc ga, I would write the calculation myself.
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.
Find more tutorials on the SAS Users YouTube channel.