1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

How to parse the XML after compare the previous row using progress 4GL?

Discussão em 'StackOverflow' iniciado por fdantas, Dezembro 31, 2018.

  1. fdantas

    fdantas Administrator Moderador

    i need to parse the XML after compare the previous line.For example following lines are present in the XML

    Row 1.663 123465789 ADS445D

    Row 2.664 846248636 ADS445D

    Row 3.665 456792452 ADS445D

    Below are my progress 4GL query for parsing XML

    CASE cSegmenTNAME :
    WHEN "663" THEN DO:
    i = i + 1.
    IF LENGTH(cInputData) = 128 THEN DO:
    ASSIGN
    i661 = i
    lv_c_Customer_Number = SUBSTRING(cInputData,6,9).


    Like wise I can parse every row but my doubt is I need to parse row 3 if previous row starts with 664.

    Any answers appreciated here.

    Continue reading...

Compartilhe esta Página