Kent's Python Programs


The following program is a command-line tool I've converted from Perl. I'm sharing them 'as-is' with no guarantees.

You may copy, use, or modify them, as long as you leave my name in the code. All were developed on Unix systems (Solaris, FreeBSD), but they should run on Windows and Mac OS, too, if you have Python available. Python version 3 is assumed unless otherwise noted.

These programs are intended to be run from a command line (Unix/Linux, for example).

The link below goes to a page that provides usage notes, example runs, assumptions of the programs as well as links to view the program code, and download the programs.

cklg.py: Check a SAS log file for errors, warnings and other issues Output is in QuickFix format for use with the Vim editor.
Using Vim's QuickFix functions, the output of this program supports jumping to the line of the error or warning in your SAS log. Or you can use the output directly to guide your debugging. This is the Python version of cklg.pl.

There is more SAS-related content on my Vim Functions for SAS Programming page. It includes a way to integrate cklg into gvim, as well as how to set gvim up for SAS development.


Back to Kent's Home Page

 

Last Modified: Mon Jan 5 13:04:46 EST 2026