I know this question is very old, but I stumbled across it while working on a similar problem and thought this might be of some use to someone in the future.
I think the OP intended the given matrix
{{1, 2, 3, a}, {4, 5, 6, b}, {7, 8, 9, c}}
to be taken as an augmented matrix with reduced row echelon form
{{1, 0, -1, 1/3 (-5 a + 2 b)}, {0, 1, 2, 1/3 (4 a - b)}, {0, 0, 0, a - 2 b + c}}
But
RowReduce[{{1, 2, 3, a}, {4, 5, 6, b}, {7, 8, 9, c}}]
knows nothing of the augmentation and continues the reduction by taking a - 2 b + c
as the next pivot and gives
{{1, 0, -1, 0}, {0, 1, 2, 0}, {0, 0, 0, 1}}
A Workaround (Add a "Dummy" Column Vector)
A workaround that I came up with is to just add a "dummy" column vector Transpose[{{0, 0, 1}}]
to the augmented matrix in the next-to-last column to absorb the pivot. Then
R = RowReduce[{{1, 2, 3, 0, a}, {4, 5, 6, 0, b}, {7, 8, 9, 1, c}}]
gives
{{1, 0, -1, 0, 1/3 (-5 a + 2 b)}, {0, 1, 2, 0, 1/3 (4 a - b)}, {0, 0, 0, 1, a - 2 b + c}}
You can then either simply ignore the dummy column in the result or, if desired, do
Drop[R, None, {-2}]
which gives
{{1, 0, -1, 1/3 (-5 a + 2 b)}, {0, 1, 2, 1/3 (4 a - b)}, {0, 0, 0, a - 2 b + c}}
Solve[{x + 2 y + 3 z == a, 4 x + 5 y + 6 z == b, 7 x + 8 y + 9 z == c}, {x, y, z}]
results in{}
. $\endgroup$