Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
No replies
SystemAdmin
SystemAdmin
1250 Posts
ACCEPTED ANSWER

Pinned topic HL Segment Incrementing

‏2012-11-19T14:46:37Z |
Hi ~ I am trying to Increment by 1 the Parent ID and then the Child ID by 1 in an 837 EDI document. The counting should look like this...however with each new Provider or Parent ID the counting begins all over. How do you hold a place value and continue. PLEASE HELP!!

HL*1**20*1
HL*2*1*22*0
HL*3*1*22*0 etc..
but when the next provider is listed the HL segments start ALL over again. What this should look like is
Parent 1 (Provider 1)
HL*1**20*1
HL*2*1*22*0
HL*3*1*22*0…..

Parent 2 (Provider 2)
HL*4**20*1
HL*5*4*22*0
HL*6*4*22*0…..