Reg. Sort command in Windows
Moderators: chulett, rschirm, roy
Reg. Sort command in Windows
Hi,
As we were using Sort stage in job for processing more than 10 lakh records. Its taking huge time(4-5 hours). Performance was very poor because of this.Our DS server is windows. pls provide the sort command for a delimited file in DOS. So that we ll try using this command in Before stage routine. Hope it ll increase the performance by using this command.
As we were using Sort stage in job for processing more than 10 lakh records. Its taking huge time(4-5 hours). Performance was very poor because of this.Our DS server is windows. pls provide the sort command for a delimited file in DOS. So that we ll try using this command in Before stage routine. Hope it ll increase the performance by using this command.
All MS-DOS commands have help built-in. Open a command prompt in Windows - Start / Run / cmd - and then type the command followed by /?:
You'll get all the options that exist for the command. You didn't find a delimiter option for sort because there isn't one. If you really want to use the DOS command, you'll need to convert your delimited file to fixed-width and then use the /+n option.
At that point, you might as well use the Sort stage.
Code: Select all
sort /?
SORT [/R] [/+n] [/M kilobytes] [/L locale] [/REC recordbytes]
[[drive1:][path1]filename1] [/T [drive2:][path2]]
[/O [drive3:][path3]filename3]
/+n Specifies the character number, n, to
begin each comparison. /+3 indicates that
each comparison should begin at the 3rd
character in each line. Lines with fewer
than n characters collate before other lines.
By default comparisons start at the first
character in each line.
<snip everything else>
At that point, you might as well use the Sort stage.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The Sort stage in server jobs is universally acknowledged to be horrible. I'd suggest getting a UNIX emulator for Windows, such as MKS Toolkit or Cygwin, and using the sort command therein.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: