Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
I'm not sure if this is what you had in mind, but you could use DFSORT to parse and change the records for output. I assumed that fields could actually be different lengths in different records and added a record to show that.
You'll need z/OS DFSORT V1R5 PTF UK90007 or DFSORT R14 PTF UK90006 (April, 2006) in order to use DFSORT's PARSE and SQZ functions. If you don't have the April, 2006 PTF, ask your System Programmer to install it (it's free). For complete details on all of the new DFSORT and ICETOOL functions available with the April, 2006 PTF, see:
Joined: 25 Dec 2006 Posts: 63 Location: Perambalur
We can also use ALTSEQ CODE to replace the ";" (semicolon) with " " (space) to achieve the same thing, as from your question you mean by separating the fields by replacing the semicolon with a space.