[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Reply to Select Columns in Left Margin



> Does anyone know why you have to place column names at the left margin in
> SELECT paragraphs? The User's Guide explains that it is to differentiate
> column names and commands. Couldn't there be a more aesthetical solution? A
> structured program in SQR is because of this an oxymoron...
>
> Have I perhaps overlooked any "work around" of this matter?
>
> Orjan Nordlund
> National Council for Crime Prevention Sweden

Only the first column name needs to be indented, if you are using only
column names and &aliases, provided you use comma separators between the
column/alias pairs, and there is no intermixed SQR code.  Assuming you put
all column specs first within the begin-select, followed by the sqr code,
then there is only 1 "sore thumb" in your structured listing.

IHMO, structured-listings don't mean structured programs, although they
can help in reading one.  They can also hide logic flaws... hence, lack of
indentation within the begin-selects doesn't bother me.
------------------------------------------------------------------------
John Griffin                (205) 890-2401  |       A    TTTTTTT  SSSSS
Advanced Technology Systems (ATS), Inc.     |     A   A     T     S
4801 University Square, Suite 2             |     AaaaA     T     SSSSS
Huntsville, AL  35816-3431                  |     A   A     T         S
johng@rmf41.usace.army.mil                  |     A   A     T     SSSSS
------------------------------------------------------------------------