I for one am not clear.
You have converted a PDF to an XLS(X?) file and brought it into SPSS. You have a single field (?), string I presume, that has text in each row. That text can (but need not) include either the word "Math" or the word "Language." You want another variable to have some kind of indicator telling you if a particular row has "Math", "Language," or neither. Really not sure about that last part....
If so, you would use COMPUTE and the INDEX function to find the string value you want in text field. If you want, I can make an example syntax.
If not, then I misunderstood.
------------------------------
Rick Marcantonio
Quality Assurance
IBM
------------------------------