I used the code you suggested to Sharmiladevi and wrote the below code. It worked good and I got the desired output. However, when I tried for records more than 50 to be joined(ie, number of records b/w 2 '@'), I'm getting error. Because am using more than 50 'WITH' keyword in SPLICE operator.
Do you have any other suggestion to address this issue? Below is the piece of code that I used assuming I need to combine 50 records into one.
//TOOLIN DD *
SPLICE FROM(IN) TO(OUT) ON(30001,8,ZD) KEEPNODUPS WITHANY -
WITH(81,80) WITH(161,80) WITH(241,80) WITH(321,80) WITH(401,80) -
//CTL1CNTL DD *
Please provide ur suggestion.
Thanks in advance!