How to retrieve maillist into one field?

Discussão em 'StackOverflow' iniciado por fdantas, Maio 10, 2016.

  1. fdantas

    fdantas Administrator Moderador

    I want to retrieve the mail list into one field and display the data retrieved.

    The mail list is represented as an array, and I want all data to be in one field.

    define variable i as integer no-undo.
    define variable cmmt as longchar no-undo.
    cmmt = " ".

    for each cd_det no-lock
    where cd_ref = "test1"
    and cd_type = "EL":

    do i = 1 to extent(cd_cmmt):
    cmmt = cmmt + cd_cmmt.
    end.
    disp cmmt.

    end.


    I tried the above code, but it doesn't display. Instead, test1 record contains 2 mails (gangadhar.pichika-external@gemalto.com,balkrishna.talapalliwar- external@gemalto.com), but I didn’t get that data in cmmt.

    Continue reading...

Compartilhe esta Página