How to display a row value into cloumn value in ax 2009?

i generate a text file in Ax 2009. i need to dispaly a value into cloumn wise instead of row wise


while select PayrollLedgerTable where PayrollLedgerTable.PeriodFrom == PeriodFrom.dateValue() && PayrollLedgerTable.PeriodTo == Periodto.dateValue() && PayrollLedgerTable.PeriodId == PeriodID.valueStr() && PayrollLedgerTable.EmplId == FLIEmplPayrollText.EmplId


line4 = [PayrollLedgerTable.Amount];



Now the records is displayin in row wise. i need to display this by column wise. am new to dynamics ax 2009.


Thanks in advance. am new to dynamics