// !! Start of "extra" commands !! // NOTE: The following comments and commands would normally be put after // the log using command. To correspond to the simple example in the // text, they are not included in the log file for this example. capture log close // program: wf3-step1.do // task: Step 1 of job sequence to illustrate why files // need to be self-contained. // project: workflow - chapter 3 // author: scott long \ 2008-05-03 // #0 // setup version 10 set linesize 80 clear all macro drop _all // #1 // create variables for having children of different ages // !! End of "extra commands" !! log using wf3-step1, replace text use wf-lfp, clear generate hask5 = (k5>0) & (k5<.) label var hask5 "Has children less than 5 yrs old?" generate hask618 = (k618>0) & (k618<.) label var hask618 "Has children between 6 and 18 yrs old?" log close