Skip to main content
Kevin King
Participating Frequently
May 28, 2021 12:33 PM UTC

Unidata - why does COPY do this?

When copying an item with a "!" in the key, COPY breaks on the "!" as if it's a delimiter between multiple items.  Why?  Can this be overridden somehow?

TEST>COPY LIVE.PN.PREFIX 001!PHI

TO: (PN.PREFIX
001 is not in file LIVE.PN.PREFIX
!PHI is not in file LIVE.PN.PREFIX
0 records copied

------------------------------
Kevin King
President
Precision Solutions, Inc.
------------------------------

    3 replies

    Mike Rajkowski
    Rocketeer
    May 28, 2021 12:58 PM UTC
    When copying an item with a "!" in the key, COPY breaks on the "!" as if it's a delimiter between multiple items.  Why?  Can this be overridden somehow?

    TEST>COPY LIVE.PN.PREFIX 001!PHI

    TO: (PN.PREFIX
    001 is not in file LIVE.PN.PREFIX
    !PHI is not in file LIVE.PN.PREFIX
    0 records copied

    ------------------------------
    Kevin King
    President
    Precision Solutions, Inc.
    ------------------------------
    Kevin,

    It appears to be something with the parsing, not sure if this goes back to how it was originally on early PICK.

    I did a quick check in UniData, if you put it in quotes, it will work

    :ECLTYPE P
    :COPY BP "001!PHI"
    TO: (VOC
    1 records copied
    :


    ------------------------------
    Michael Rajkowski
    Rocket Software
    ------------------------------
    Kevin King
    Participating Frequently
    May 30, 2021 11:03 PM UTC
    Kevin,

    It appears to be something with the parsing, not sure if this goes back to how it was originally on early PICK.

    I did a quick check in UniData, if you put it in quotes, it will work

    :ECLTYPE P
    :COPY BP "001!PHI"
    TO: (VOC
    1 records copied
    :


    ------------------------------
    Michael Rajkowski
    Rocket Software
    ------------------------------
    Thank you sir.  Now I just have to remember to quote that!  Old dog, new tricks, all that. :-)

    ------------------------------
    Kevin King
    President
    Precision Solutions, Inc.
    ------------------------------
    KathleenHambrick
    Participating Frequently
    Jun 4, 2021 11:46 AM UTC
    Thank you sir.  Now I just have to remember to quote that!  Old dog, new tricks, all that. :-)

    ------------------------------
    Kevin King
    President
    Precision Solutions, Inc.
    ------------------------------
    Think of it as the same as a space in something you are looking for...quotes always help clarify :)

    ------------------------------
    kathleen hambrick
    w c earhart
    ------------------------------