Global Airport Database Conversion Code

The Global Airport Database (GAD) lists the longitude / latitude in sexagesimal notation which makes it a pain to plot on any sort of map using a coordinate system. The following SAS code will convert the GAD and should result in file similar to airports.csv. data airports; infile ‘AirportDatabase.txt’ dsd dlm=’:’; input icao$ iata$ name$ […]

Which logger did that SAS log message come from?

Occasionally you might want to generate a custom SAS log file, perhaps to be parsed and analysed to generate a custom report. You want to focus on a specific subset of messages and already know that you can modify the logging configuration file and attach the logger that generates the message to an appender to […]

A macro calls random forest in SAS

SASHELP.CARS, with 428 observations and 15 variables, is a free dataset in SAS for me to exercise any classification methods. I always have the fantasy to predict which country a random car is manufactured by, such as US, Japan or Europe. After tryi…