Statalist,
Is it possible to use and if statement in conjunction with -label- values?
I have a variable testcode with values of 1-90 indicating 90 different
teacher certification tests.  Versioncode has values of 1 & 2 which indicate
a specific version of the test used.  Subpart has values of 1-7 naming the
different parts of the test for that version in that test.    The subpart
titles (and total number) within each version of a test are not always the
same across versions.  
I would like to assign different subpart value labels depending on the
versioncode of a test.  Below is an example for test 1.  
studentid	testcode	versioncode	subpart
    22	    1			1	   1
    22	    1			1	   2
    22	    1			1	   3
    22	    1			1	   4
    22	    1			1	   5
    13	    1			2	   1
    13	    1			2	   2
    13	    1			2	   3
    13	    1			2	   4
Carter Rees
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/