Hi Frankie,

On 11 November 2011 12:59, Cranky Frankie <cranky.fran...@gmail.com> wrote:

> I'm trying to build a script to parse IBM AIX DB2 DDL to line up the
> data types (it drives me crazy when the column data types are not
> lined up). For example, typical create table DDL might be hundreds of
> lines long but will look like this:
>

Just knocked this up:
http://pastie.org/2847380

It reformats the example you posted, at least, and should leave lines that
are not field definitions alone (thanks to looking for the start of the
datatype after the space.) Hopefully you can get some inspiration form it.

Walter
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to