Peter Hunkeler wrote:

>Not sure whether I shall laugh or cry. DFSort is a great tool, no doubt; it's 
>control statements (I intentionally don't called it "language") are a 
>nightmare, no doubt. Hopefully noone will ever consider the above as something 
>suitable for production. Overkill; not maintainable.

Perhaps, this is why ICETOOL is in place. That is a great tool.

You can always write a 3rd SORT system with a build in programming language. 
Hopefully that system is sort of free...

Something like this, sort of, but ...

PROGRAM Sort-it-Yourself

Declaration fiels left to programmer as an exercise...

OPEN IN
OPEN OUT

For records 1 - last do
 sort by surname
 output name, surname, phone number
end for

SHOW records 'Records sorted by surname.'

Close everything;

SHOW ' You're sorted out!'

Groete / Greetings
Elardus Engelbrecht

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to