Skip to main content
KathleenHambrick
Participating Frequently
Apr 5, 2022 9:38 AM UTC

Unidata to Universe differences

Hi - I am switching back from 20 years of Unidata, to Universe....can't remember all the differences but I'm sure I will pick it back up quickly. One thing I just tried and couldn't do...editing mv and smv lines with the EV (edit values) command.... can someone pop off the command to edit values in the line editor on Universe?

Thanks!



------------------------------
Kathleen Hambrick
Programmer at Colwell
------------------------------

    23 replies

    Harold Hambrick
    Participating Frequently
    Apr 13, 2022 8:20 AM UTC
    Just an additional note here (Unidata 8.2), that actually sped up some of our long running processes.
    We have variables that might have a few hundred thousand multi-values. Rather than use the <1,-1> methodology,
    we append the variable with an @VM and the data element. This seems to eliminate the need to traverse the entire string before appending the data. I would imagine it would work in UniVerse as well.
    LIST = LIST: @VM  : "C"        or     LIST := @VM  :"C"
    ​​​

    ------------------------------
    David Hanson
    Senior Software Engineer
    basys Inc
    Baltimore MD US
    ------------------------------
    It does. Use that all the time.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------
    Ian McGowan
    Participating Frequently
    Apr 13, 2022 10:05 AM UTC
    Just an additional note here (Unidata 8.2), that actually sped up some of our long running processes.
    We have variables that might have a few hundred thousand multi-values. Rather than use the <1,-1> methodology,
    we append the variable with an @VM and the data element. This seems to eliminate the need to traverse the entire string before appending the data. I would imagine it would work in UniVerse as well.
    LIST = LIST: @VM  : "C"        or     LIST := @VM  :"C"
    ​​​

    ------------------------------
    David Hanson
    Senior Software Engineer
    basys Inc
    Baltimore MD US
    ------------------------------
    Ah, that's a really good reminder!

    I don't often produce lists with hundreds of thousands of entries, but when consuming them the opposite trick to the :@VM is to use REMOVE -

    LOOP
      REMOVE NEXT.VAL FROM HUGE.LIST SETTING MORE
    UNTIL NOT(MORE) DO
      * Do something with NEXT.VAL

    REPEAT

    Is much faster than traversing the list.  I think that works in both U2's - might even go back to the original PICK days..

    ------------------------------
    Ian McGowan
    Principal Consultant
    Rocket Forum Shared Account
    ------------------------------
    Harold Hambrick
    Participating Frequently
    Apr 13, 2022 4:59 PM UTC
    Ah, that's a really good reminder!

    I don't often produce lists with hundreds of thousands of entries, but when consuming them the opposite trick to the :@VM is to use REMOVE -

    LOOP
      REMOVE NEXT.VAL FROM HUGE.LIST SETTING MORE
    UNTIL NOT(MORE) DO
      * Do something with NEXT.VAL

    REPEAT

    Is much faster than traversing the list.  I think that works in both U2's - might even go back to the original PICK days..

    ------------------------------
    Ian McGowan
    Principal Consultant
    Rocket Forum Shared Account
    ------------------------------
    I did use the REMOVE in Unidata and it really sped up accessing large arrays.  It seems to be different in Universe but I haven't had a need to try it yet.

    ------------------------------
    Harry Hambrick
    Senior Software Developer
    Rooms To Go Inc
    Seffner FL US
    ------------------------------