Joined: 28 Jan 2012 Posts: 310 Location: Room: TREE(3). Hilbert's Hotel
You have provided very less information to help. What is the Input/Output record format & record length. What could be the maximum length of any field. Your data might have embedded spaces in name/address fields like:
First Name Last Name ABC ROAD NEW DELHI
Search using key words PARSE, BUILD, SHIFT, SQZ. You will find many examples to start with.
It is as simple as making a tea. You would have to search on what Mistah suggested and TRY and next time try to provide the least minimal information to the problem together when you post than feeding a piece meal.