Check the file sorted or not!
Posted: Wed Dec 19, 2012 12:32 am
Hi All,
I am having a file with 80 bytes which is not sorted in 01-09 position, here my question is if a file is not sorted in a particular position(01-09), then while submitting this file in jcl ,I need to get abend code because file is not sorted. Please look into the below info.
inputfile:
_________10_________20_________30_________40_________
888888888
999999999
555555555
777777777
333333333
111111111
444444444
222222222
000000000
I need to check the file whether it is sorted or not. Please help me on this.
Regards,
Venky.
I am having a file with 80 bytes which is not sorted in 01-09 position, here my question is if a file is not sorted in a particular position(01-09), then while submitting this file in jcl ,I need to get abend code because file is not sorted. Please look into the below info.
inputfile:
_________10_________20_________30_________40_________
888888888
999999999
555555555
777777777
333333333
111111111
444444444
222222222
000000000
I need to check the file whether it is sorted or not. Please help me on this.
Regards,
Venky.