View previous topic :: View next topic
|
Author |
Message |
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
HI
This is my sort JCL
Code: |
//SORT EXEC PGM=SORT
Sort input:
aaaaa11
aaaaa33
aaaaa22
My Sort card:
//SYSIN DD *
SORT FIELDS=(01,07,CH,A)
/* |
I am expecting result as:
Code: |
aaaaa11
aaaaa22
aaaaa33 |
But I am getting result as:
Code: |
aaaaa11
aaaaa33
aaaaa22 |
I am in the impression that aaaaa33 greater than aaaaa22. but it is not. I am confused with above result and not sure why my result is different. not sure if I am doing anything silly here |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
what is the record format of Your input file
seems that it is a variable record,
for variable records You should take into account the 4 byte RDW
Code: |
SORT FIELDS=(05,07,CH,A) |
|
|
Back to top |
|
|
Harsha1525
New User
Joined: 22 Dec 2009 Posts: 24 Location: hyderabad
|
|
|
|
enrico-sorichetti wrote: |
what is the record format of Your input file
seems that it is a variable record,
for variable records You should take into account the 4 byte RDW
Code: |
SORT FIELDS=(05,07,CH,A) |
|
Hmmm. You are correct.my input file is VB I simply created thru ISPF 3.2 option with out observing the format of referred dataset.this is really silly mistake.thank you for your reply |
|
Back to top |
|
|
|