Hi, I have this file that some lines are related to the same record. I need to analize it but I need to create a flat file. I want to every time that the record start with an ENT split it and add to the right the records below the ENT.
ENT*3*2J*34*555 555555~
NM1*QE*1*FIGUER OA~
RMR*11*DB020920 002010080013644 378028**0~
DTM*582****RD8* 20060801-20060831~
RMR*IK*47A0612* *0*0~
ADX*.00*IA~
ENT*4*2J*34*999 999999~
NM1*QE*1*FIGUER OA~
RMR*11*DB020920 002010080013644 378028**0~
DTM*582****RD8* 20060901-20060930~
RMR*IK*47A0612* *0*0~
ADX*.00*IA~
Iwant the file like this:
ENT*3*2J*34*555 555555~NM1*QE*1 *FIGUEROA~RMR*1 1*DB02092000201 008001364437802 8**0~DTM*582*** *RD8*20060801-20060831~RMR*IK *47A0612**0*0~A DX*.00*IA~
ENT*4*2J*34*999 999999~NM1*QE*1 *FIGUEROA~RMR*1 1*DB02092000201 008001364437802 8**0~DTM*582*** *RD8*20060901-20060930~RMR*IK *47A0612**0*0~A DX*.00*IA~
Well, all the data in one record.
I apreciate if someone can help me. I only know how to use access.
ENT*3*2J*34*555 555555~
NM1*QE*1*FIGUER OA~
RMR*11*DB020920 002010080013644 378028**0~
DTM*582****RD8* 20060801-20060831~
RMR*IK*47A0612* *0*0~
ADX*.00*IA~
ENT*4*2J*34*999 999999~
NM1*QE*1*FIGUER OA~
RMR*11*DB020920 002010080013644 378028**0~
DTM*582****RD8* 20060901-20060930~
RMR*IK*47A0612* *0*0~
ADX*.00*IA~
Iwant the file like this:
ENT*3*2J*34*555 555555~NM1*QE*1 *FIGUEROA~RMR*1 1*DB02092000201 008001364437802 8**0~DTM*582*** *RD8*20060801-20060831~RMR*IK *47A0612**0*0~A DX*.00*IA~
ENT*4*2J*34*999 999999~NM1*QE*1 *FIGUEROA~RMR*1 1*DB02092000201 008001364437802 8**0~DTM*582*** *RD8*20060901-20060930~RMR*IK *47A0612**0*0~A DX*.00*IA~
Well, all the data in one record.
I apreciate if someone can help me. I only know how to use access.
Comment