I have an X12 file broken into segment format, and I need to find all CLP segments (e.g see below) and then identify the 1st field of each CLP segment (eg. 0-147L81771-4). Can someone advise me on the best was to do this.
E.g. of file format:
ISA*00* *00* *27*00882 *ZZ*ER1559 *060929*141
7*U*00401*627100040*0*P*>~
GS*HP*00882*ER1559*20060929*141710*1509293*X*004010X091A1~
ST*835*000000001~
BPR*H*0*C*NON************20060928~
TRN*1*304418615*1571062326~
CAS*CO*18*11.55~
REF*LU*81~
CLP
NM1*QC*1*PACHECO*DICK*F***HN*A525589743~
MOA***MA01~
DTM*050*20060927~
SVC*HC>36415*11.55*0****1~
DTM*472*20050311~
CAS*CO*18*11.55~
REF*LU*81~
CLP
Thank you.
fj