View previous topic :: View next topic
|
Author |
Message |
subarna roy
New User
Joined: 07 Dec 2007 Posts: 16 Location: mumbai
|
|
|
|
Hi
I need to sort a GDG file . The sorting field is a packed decimal one.
The actual field length is 10 without sign. and the it's occupying a length of 6 as packed decimal. So Do i need to sort it on actual field length or packed decimal length.
Please help me. |
|
Back to top |
|
|
ParagChouguley
Active User
Joined: 03 Feb 2007 Posts: 175 Location: PUNE(INDIA)
|
|
|
|
Bytes it is occupying.
In your case its 6. (as per your info)
--Parag |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
And you need to specify packed-decimal in the sort control statement - (bgn,6,PD,A). CH would sort, but the result might be incorrect. |
|
Back to top |
|
|
Phrzby Phil
Senior Member
Joined: 31 Oct 2006 Posts: 1042 Location: Richmond, Virginia
|
|
|
|
And the fact that it is a GDG is irrelevant. |
|
Back to top |
|
|
|