FTPSTF93 (formerly FTP9206) Modules for FTP Transfer Related to 1990 STF3 Processing ======================================================== All "jobs" include sample MVS job control language. Unless otherwise noted all are EBCDIC files. A. cd '$6386.public.cnvtjobs' get stf93amo ***This module contains 2 jobs: the first reads the original STF3A files and splits them into 2 sequential files with Inventory & Hierarchal summaries. The 2nd job converts each of the 2 files created in the copy job to SAS data sets (using the STF903C macro) If you want to attach labels to all 3000+ data cells on these data sets you will need to get the (unchanged) ATTR903 module from the same SASMACRO library. ***WARNING*** The labels assigned in this module are based on the first 40 chars of text for the item from the census bureau's data dictionary. These can be misleading because they are often truncated. For example P78I1 has the label "Managerial and professionsl specialty..." when it is really the count of Executive, administrative & managerial occupations, a sub-category of "Managerial and ...". We attempted to edit these for our ATTR901 module but have not had time to work on the STF3 module. B. cd '$6386.public.sasmacro' get stf903c ***This is the SAS conversion macro. C. cd '$6386.public.listings' get stf93amo ***Optional. If you'd like to view the SAS listing (print) file produced by the STF93AMO conversion run it is stored here. Just under 1000 lines. D. cd '$6386.public.sasmacro' get tabrgen get f903tabs ***We added a PCTPOVTY routine to the TABRGEN macro to facilitate calculating different kinds of pcts in the STF3 poverty tables. The display macros for those tables (P117-P127) have been edited to calculate percentages as above/below poverty rates (the % fig on the line "Below Poverty / Age 0-4" is the pct of people 0-4 who are below poverty instead of the pct of people below poverty who are 0-4.) Some other typo - cosmetic corrections were made to some other display macros. cd '$6386.public.applctns' get tabrgenc ***This sample job setup is used to runa quick test of the %TABRGEN macro and also to compile the macros. This is a new feature of SAS607 documented in Tech Rept. P-222 and if used will greatly increase speed of %TABRGEN job runs. E. cd '$6386.public.sascode' get stf903x get xtabs3 cd '$6386.public.pretext' get xtabs3 cd '$6386.public.applctns' get stf903x ***These modules are used for creating our version of a standard extract data set from the full STF3 file and generating a custom report. The STF903X module in the APPLCTNS library is the "driver" module and references all the others. F. cd '$6386.public.sascode' get stf3prny ***A small bug in the headers routine (col. where tract/bna was written in headings) was fixed in this module, 6-29-92. (This is the New York SDC 5-page profiles code.) G. cd '$6386.stf3prca.sascode' get hdrpgs12 get pgs329 cd '$6386.testjobs.cntl' get stf3prca cd '$6386.public.applctns' get stf3prca ***These modules represent the Missouri-modified implementation of the 29-page California profiles. There are 2 SAS source modules and 2 MVS job setups. The first job creates a stored SAS data step and the 2nd job (the one in APPLCTNS) executes the stored pgm. This code assumes you have used the STF903C macro to convert your 1990 STF3 file to a SAS data set with those standard naming conventions.