[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: Accessing the value of the sort variable in a byable program
I'm working on a program that will generate a series of tables for
various academic departments. I want each department's tables to be
together so I've written a fairly generalizable "byable" program as
>program define neat, byable(recall)
> version 9.2
> marksample touse
> display "Total enrollment"
> tab newterm if `touse'
> display "Total enrollment by credit status"
> tab regcred if `touse'
>by subject: neat
I'd like to enhance the output by displaying the current subject_value
in the title of each table (the current subject_value is printed at the
top of each series of tables automatically). I've tried a variety of
>display subject " subject"
>display `_byvars' " _byvars"
However, I always get the first subject_value, rather than the current
subject_value as indicated by the -> automatic heading.
Does anyone know how I can capture the current subject value and print
it out as part of the program?
Any suggestions would be greatly appreciated!
Catherine A. Jackson, Ph.D.
Director of Research and Planning
* For searches and help try: