Creating value set

Discussions about CSEntry
Post Reply
Habtamu E
Posts: 15
Joined: April 15th, 2025, 8:19 am

Creating value set

Post by Habtamu E »

Dear Team,
How are you?
I have difficulty creating a value set from two different lookups. One is a single occurrence, and the second one is a multiple occurrence. If you have a solution, please let me know.
Thank you.
Gregory Martin
Posts: 1970
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: Creating value set

Post by Gregory Martin »

You posted an application here: https://www.csprousers.org/forum/viewtopic.php?t=6603

However, you did not give a description of the problem that you are facing. You have this code:
PROC FARMID_K

preproc

    numeric
c;
    ValueSet FarmK_vs;

    do varying c=1 until  c > totocc(WOREDA_DICT.WOREDA_REC);

        forcase WOREDA_DICT where  FRAME_LOGIN_WOREDA=FRAME_LOGIN_KEBELE  do
           
FarmK_vs.add(FRM02_W(c), FARMID_W(c));
        enddo;

    enddo;
But you do not assign the value set to a field like this:
    setvalueset(FARMID_K, FarmK_vs);
Can you give more details about what you are trying to do?
Habtamu E
Posts: 15
Joined: April 15th, 2025, 8:19 am

Re: Creating value set

Post by Habtamu E »

Thank you Gregory
Post Reply