x cd /pub/data/workflow/Tools; %let pgm=invoke_dosets; filename pgm "&pgm..sas"; /*--Invoke the %doset macro to create observations in the Datasets dataset for this directory. J. Blodgett, OSEDA, Mar., 2003 Rerun: Jan 16, 2004 -- */ title "Job to Invoke doset Macro for Sets in workflow, creating workflow.datasets"; libname workflow '/pub/data/workflow'; *-----Run this step ONLY ONCE------------------------------------------; *----If you need to rerun (start over) then delete the datasets dataset first. doset will not allow initialize mode if the datasets set already exists.---; %*doset(mode=initialize,libname=workflow,debug=1); *----------------------------------------------------------------------; %doset(mode=,libname=workflow, memname=usbyres, memlabel=Worker flows at county level for entire U.S. sorted by Residence Geography, geouniv=United_States, units=Counties, Year=2000, CreatePgm=cnvtus, Keywords=census 2000 work trips commuting county workflow, Description=%nrbquote(Each observation on the dataset describes a Resident geographic area and a Work geographic area and reports the count of persons who lived in the resident area and worked in the work area on April 1, 2000. The geography is usually a county except in a few cases where the work area can reference a foreign country or US territory. Use this dataset to answer questions regarding commuting patterns.), keyvars=stater countyr msacmsar pmsar , keyfmats=state county metro metro , keyquals=, DataSource=%str(2000 Census - Special Workflow tabulation. Data were posted on Bureau web site March, 2003), SortedBy=stater countyr Count descending, UsageNotes=%nrbquote(This dataset is best for applications where you want to know where people who live in a given area or areas work. If you want to answer questions about where people live who work in a given area or areas then the companion dataset (view, actually), usbywrk, may be better. It is just a matter of sort order.
Note that the values for the work geographic codes - StateW, CountyW, msacmsaW and pmsaW are the same as those for the corresponding Resident geocodes.
Work-side geography was assigned based on the response to a write-in question asking people where they worked last week.
When the person was working in a foreign country StateW has a value of 99 and AreanameW contains the name of the country.
All metro area codes will have values of * for counties in New England and will be blank for areas outside the U.S. ), SubType=, SetGroup=us, VarSet=, URLMeta=%str(http://www.census.gov/population/www/cen2000/commuting.html), filters=, debug=1) %doset(mode=,libname=workflow, memname=usbywrk, memlabel=Worker flows at county level for entire U.S. sorted by Work Geography, geouniv=United_States, units=Counties, Year=2000, CreatePgm=cnvtus, Keywords=census 2000 work trips commuting county workflow, Description=%nrbquote(Each observation on the dataset describes a Work geographic area and a Residence geographic area and reports the count of persons who lived in the resident area and worked in the work area on April 1, 2000. The geography is usually a county except in a few cases where the work area can reference a foreign country or US territory. Use this dataset to answer questions regarding commuting patterns.), keyvars=statew countyw msacmsaw pmsaw, keyfmats=state county metro pmsa, keyquals=, DataSource=%str(2000 Census - Special Workflow tabulation. Data were posted on Bureau web site March, 2003), SortedBy=statew countyw Count descending, UsageNotes=%nrbquote(This dataset is best for applications where you want to know where people who work in a given area or areas live. If you want to answer questions about where people work who live in a given area or areas then the companion dataset, usbyres, may be better. It is just a matter of sort order.
Note that the values for the resident geographic codes - StateR, CountyR, msacmsaR and pmsaR are the same as those for the corresponding Work geocodes.,
Work-side geography was assigned based on the response to a write-in question asking people where they worked last week.
When the person was working in a foreign country StateW has a value of 99 and AreanameW contains the name of the country.
All metro area codes will have values of * for counties in New England and will be blank for areas outside the U.S. ), SubType=, SetGroup=us, VarSet=, URLMeta=%str(http://www.census.gov/population/www/cen2000/commuting.html), filters=, debug=1) %doset(mode=,libname=workflow, memname=usflows2, memlabel=Enhanced version of usbyres dataset with county totals and pcts added, geouniv=United_States, units=Counties, Year=2000, CreatePgm=usflows2, Keywords=census 2000 work trips commuting county workflow totals percents, Description=%nrbquote(Each observation on the dataset describes a Work geographic area and a Residence geographic area and reports the count of persons who lived in the resident area and worked in the work area on April 1, 2000. The geography is usually a county except in a few cases where the work area can reference a foreign country or US territory. Use this dataset to answer questions regarding commuting patterns.), keyvars=stater countyr msacmsar pmsar statew, keyfmats=state county metro pmsa state, keyquals=, DataSource=%str(2000 Census - Special Workflow tabulation. Data were posted on Bureau web site March, 2003), SortedBy=stater countyr Count descending, UsageNotes=%nrbquote(This dataset is just the usbyres dataset with 4 new variables added by the MCDC:

See https://mcdc.missouri.edu/reports/workflow to see custom reports generated from this dataset.

Note that the values for the resident geographic codes - StateR, CountyR, msacmsaR and pmsaR are the same as those for the corresponding Work geocodes.

Work-side geography was assigned based on the response to a write-in question asking people where they worked last week.
When the person was working in a foreign country StateW has a value of 99 and AreanameW contains the name of the country.
All metro area codes will have values of * for counties in New England and will be blank for areas outside the U.S. ), SubType=flows2, SetGroup=us, VarSet=, URLMeta=%str(http://www.census.gov/population/www/cen2000/commuting.html), filters=, debug=1) proc sort data=workflow.datasets out=bysortprio; by sortprio setgroup subtype; run; proc print data=bysortprio; by libname notsorted libpath ; id memname; var SortPrio SetGroup SubType GeoUniv ; title2 'Listing of Selected Fields from workflow.datasets (Sorted by SortPrio)'; run ; proc datasets library=workflow nolist; modify datasets; index delete dataset memname; index create dataset=(libname memname) / unique; index create memname; quit; options mprint msglevel=i; %gendshtm(libname=workflow,debug=1,runprocc=1);