Hello bhalchandra and welcome to the forums,
To do what you want, you can STRING the data values separated by some delimiter (comma or tab or . . .) into an output field and write that output. This example uses the tab character (x'05'):
STRING IDX X'05'
RCD-TYPE X'05'
DAT-TYPE-ALPHA X'05'
DTL-CNT X'05'
PLAN-NAME X'05'
HDR-DATE X'05'
PROV-DISPRO X'05' DELIMITED BY ''
INTO MY-OUT-REC.
WRITE MY-OUT-REC.