arunkantony Beginner
Joined: 28 Feb 2006 Posts: 6 Topics: 2 Location: India
|
Posted: Sun Apr 23, 2006 5:43 am Post subject: Append Records using DFSORT |
|
|
Hi,
Is is possible to append the recods in a dataset(FB) into a single record using DFSORT? If yes, what can be the maximum byte the output dataset(VB or FB) can hold in that single record?
The control card that I used is Code: | OPTION COPY
OUTFIL OUTREC=(1,40),
HEADER1=(1:'<A> ****THIS IS THE START **** </A>'),
TRAILER1=(1:'<C> **** END **** </C>'),REMOVECC
END |
Input: Code: | <A> ****This is the start **** </A>
<DATA>001ABC</DATA>
<DATA>002DEF</DATA>
<DATA>003GHI</DATA>
<C> **** END **** </C> |
Output:
Code: | <A> ****This is the start **** </A><DATA>001ABC(/DATA><DATA>002DEF(/DATA><DATA>003GHI(/DATA><C> **** END **** </C> |
NOTE:
The header, trailer and data have different lengths. But all the data will be having the same length.
Please help!
Thanks,
Arun |
|