I have the following data: lopnr Syss1995 Syss1996 Syss1997 Syss1998 Syss1999 Syss2000 invar 1 1 5 6 1 5 1 1996 2 3 1 6 5 1 6 1999 3 1 6 1 5 6 1 1995 and so on... I want a new variable with following values Syssinvar 5 1 1 and so on... Thus I need to get the value from the right Syss-variables with the same year as in the invar variable My guessing is that I need to use symputx in some way, but I don't get it right.
... View more