View previous topic :: View next topic
|
Author |
Message |
ksssrikanth
New User
Joined: 21 Jul 2005 Posts: 6
|
|
|
|
Hi ,
In DFsort , My control card is sorting on bases of character mode , plz let me know the control card to sort the numeric data (not the packed decimal feilds)
intially : 19,32,20,
output(error) : 10,29,39
Required output :19,20,32
thanks |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
What does the control card that produces the wrong data look like? |
|
Back to top |
|
|
ksssrikanth
New User
Joined: 21 Jul 2005 Posts: 6
|
|
|
|
output(error) : 10,29,32
sort fields = (1,2,ch,a) |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
these three records input
caused this output
using this sortcard?
sort fields = (1,2,ch,a) |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
ksssrikanth,
It's not clear from your post what you're trying to do. In fact, I can't make any sense out of it at all. You show three values for input (19,32,20) and three completey different values for output (10,29,39). Where did those output values come from?
You need to explain clearly what you're trying to do. Give an example of the records in your input file and what you expect for output. Give the RECFM and LRECL of the input file. Give the starting position, length and format of the relevant fields. |
|
Back to top |
|
|
ksssrikanth
New User
Joined: 21 Jul 2005 Posts: 6
|
|
|
|
Hi ,
i am giving the example
input :
19
18
254
2
206
245
26
output : SORT FIELDS=(1,4,CH,A)
18
19
2
206
245
254
26
But i need the Sort to be done on numeric base not on the character mode
Excepted output :
2
18
19
26
206
245
254
thanks |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Ah, why didn't you say so in the first place. You can use this DFSORT statement:
Code: |
SORT FIELDS=(1,4,UFF,A)
|
|
|
Back to top |
|
|
|