If you haven't installed the SAS Online documentation, then visit the web based documentation at
http://support.sas.com/onlinedoc/913/docMainpage.jsp and look up Base SAS / Transpose Procedure.
Observe the example using the BY statement and how that relates to your IDENT variable.
Now observe the VAR statement and how that relates to your SALARY and STAFF variables.
Finally, observe that the ID statement will identify the variable that names the transposed columns.
Note that the PREFIX statement will identify the prefix to place before the value of your ID statement to name the column. So, with a prefix value of SAL and an ID of PERIOD you will have columns named SAL20001. For naming purposes you are better off constructing a variable called PERIOD that concatenates YEAR and "Trimester" into a value that does not contain characters you cannot use in variable naming.
Do the transposition first for SALARY and then for STAFF so that you can set the prefix appropriately for each VAR as you transpose it.
Then match merge the two tables together to give you a single record for each Ident value.
Message was edited by: dkvj