October 26, 2007, 07:35 AM
Gobinath VelusamyGroup By Alignment
Hi
when we use the
A
B
C
BY D
The normal output will be
D A
B
C
But my desired output should b e
D A
D B
D C
i have to group by D only
How to achive this formnat?
Thanks in Advance ...
October 26, 2007, 07:39 AM
RickWSET BYDISPLAY = ON
October 26, 2007, 07:39 AM
ShrikantHi,
Please use:
PRINT D
A
B
C
BY D NOPRINT
END
October 26, 2007, 07:54 AM
Gobinath VelusamyHi Ricky
Where can i use the SET BYDISPLAY = ON ? In Stule sheet ? or anywhee else
i am using this code
SQL SQLMSS
SELECT * FROM
;
TABLE FILE SQLOUT
PRINT
*
ON TABLE HOLD
END
TABLE FILE HOLD
PRINT
Full_Name AS ''
Account
Branch_Name AS ''
BY EndDate
END
Where can i use SET BYDISPLAY = ON ?
October 26, 2007, 07:55 AM
Gobinath VelusamyHi Shrikant
It is not working
Again i got
D A
B
C
Only i got
October 26, 2007, 08:06 AM
FrankDutchGobinath
Rick's suggestion is ok, but in the code you have to say
TABLE FILE HOLD
PRINT
Full_Name AS ''
Account
Branch_Name AS ''
BY EndDate
ON TABLE SET BYDISPLAY ON
END
The other suggestion is also ok if you do
TABLE FILE HOLD
PRINT
EndDate
Full_Name AS ''
Account
Branch_Name AS ''
BY EndDate NOPRINT
END
October 26, 2007, 08:12 AM
Gobinath VelusamyThanks Guys
It is working Fine.