//SYSIN DD *
SORT FIELDS=(1,3,CH,A,9,3,CH,A)
/*
SORT FIELDS=(1,3,CH,A,9,3,CH,A)
/*
What does it do?
FIRST KEY
1,3,CH,A - first key started at string/space 1 , its length is 3
SECOND KEY
9,3,CH,A - second key started at string/space 9, its length is 3
For example if we have following data
12345678901234567890
hello world hello
Adam Travel
hello world hello
Adam Travel
My understanding is as: (for first key)
Position 1 and length is 3, Character , seq Asscending
First Key
Out put will be
12345678901234567890
Adam Travel
hello world hello
SECOND KEY
12345678901234567890
hello world hello
Adam Travel
Out put will be
12345678901234567890
Adam Travel
hello world hello
SECOND KEY
12345678901234567890
hello world hello
Adam Travel
Is it correct?
I am little confused in combining both. Any help will be appricated
Thanks