Iam having NAME - 30 characters of length. I need to sort this name like First name, Last Name and Middle Name but i don't know from where middle and last names will start. For sure there is a space will come after first name, middle name and last name. Kindly help me how to sort this NAME separately as FIRSTNAME, MIDDLE NAME, LAST NAME ?
I need to sort this name like First name, Last Name and Middle Name
You want to sort the file based on names or split the 30 byte name as first name, last name and middle name. If you want to split it, you will find lot of examples right here in this forum. Try it and let us know what issues you are facing.
Also provide more details like what should be maximum length of each field and if in case there is no middle name how to find it. It will be better if you give us some sample input records.