Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
rahulainchwaribm,
People seem to be confusing your request to rearrange fields with a request to rearrange records.
Do you only have one record, or do you have more than one record? Are the fields in the record (or records) fixed fields (always start in the same position and have the same length), or are they variable fields (can start in different positions and have different lengths)?
Your fields look to me like variable-length comma separated variables (CSV) of the form:
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
Here's a DFSORT job that will do what I think was requested. It uses the new PARSE and SQZ functions available with z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006). For complete details on all of the new DFSORT and ICETOOL functions available with these PTFs, see: