PRINT has long been
used in debugging. for example, ending a do if block when it
reached ELSE.
Each DO IF block would put messages in the listing. something like this untested example do if condition1. compute newvar=1. else if condition2. compute newvar=2. else. compute newvar=-1. print /' problem in setting newvar' ' ID= ' ID 'Age = ' Age /. end if. do if gender eq 'male' and not missing(pregnancy#). print //'ID = ' ID gender 'recorded as being pregnant' pregnancy# ' times/. compute pregnancy# = -1. end if. Art Kendall Social Research ConsultantsOn 5/7/2014 8:52 PM, Rich Ulrich [via SPSSX Discussion] wrote:
Art Kendall
Social Research Consultants |
In reply to this post by Rich Ulrich
PRINT has long been
used in debugging. for example, ending a do if block when it
reached ELSE.
Each DO IF block would put messages in the listing. something like this untested example do if condition1. compute newvar=1. else if condition2. compute newvar=2. else. compute newvar=-1. print /' problem in setting newvar' ' ID= ' ID 'Age = ' Age /. end if. do if gender eq 'male' and not missing(pregnancy#). print //'ID = ' ID gender 'recorded as being pregnant' pregnancy# ' times/. compute pregnancy Art Kendall Social Research ConsultantsOn 5/7/2014 8:52 PM, Rich Ulrich [via SPSSX Discussion] wrote:
Art Kendall
Social Research Consultants |
Free forum by Nabble | Edit this page |