* Encoding: windows-1252. * ==================================================================================================. * EU-SILC Cross 2017 - release 2020-03 / DOI: https://doi.org/10.2907/EUSILC2004-2018V.1 * * When publishing statistics derived from the EU-SILC UDB, please state as source: * "EU-SILC UDB – version of 2020-03" * * SPSS Command Syntax File * 2017_cross_eu_silc_r_ver_2020_03.sps * * (c) GESIS 2020-12-15 * * PLEASE NOTE * For Differences between data as described in the guidelines * and the anonymised user database as well as country specific anonymisation measures see: * C-2017 DIFFERENCES BETWEEN DATA COLLECTED.doc * * ==================================================================================================. * * EU-SILC - Cross - Personal register file * * * Transforms the EU-SILC CSV-data (as released by Eurostat) into an SPSS-Systemfile * * This version of the EU-SILC has been delivered in form of seperate country files. * The following syntax transforms the raw data into one SPSS file using all available country files. * * Country files are delivered in the format UDB_c*country_stub*.csv * * This SPSS-File is licensed under a * Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License * * * Wirth, Heike (2020): 2017_cross_eu_silc_r_ver_2020_03.sps. * SPSS-Syntax for transforming EU-SILC csv data into an SPSS-Systemfile. * * https://www.gesis.org/gml/european-microdata/eu-silc/ * * Contact: heike.wirth@gesis.org ************************************************************************************************************************************. set decimal=DOT. * When using SPSS earlier than V16 you might not use "set unicode" . set unicode=OFF. *----------------------------------------------------------------- Start definition macro ---------------------------------------------------------------. DEFINE !C2017_R (). *-------------------------------------------------------- CONFIGURATION SECTION - Start ------------------------------------------------------. * The following command should contain the complete path where the CSV data files are stored; * 1) Change CSV_PATH to your file path; (E.g. C:\EU-SILC\Crossectional 2004-2017\); * 2) But keep path structure as delivered by Eurostat CSV_PATH/COUNTRY/YEAR . !LET !csv_path ='CSV_PATH' * The following command should contain the complete path where the SPSS data files should be stored; * Change SPSS_PATH to your file path. !LET !spss_path ='SPSS_PATH\' * The following command should contain the name of the SPSS data file (specify without .sav extension); * Change SPSS_FILENAME to your final filename. !LET !finalfile='SPSS_FILENAME' *----------------------------------------------------------- CONFIGURATION SECTION - End ---------------------------------------------------------. * There should be probably nothing to change below this line. * ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------. *------------------------------------------------------------- Definition of country stubs -----------------------------------------------------------------------. !LET !csvfiles= 'UDB_cAT UDB_cBE UDB_cBG UDB_cCH UDB_cCY UDB_cCZ UDB_cDE UDB_cDK UDB_cEE' + ' UDB_cEL UDB_cES UDB_cFI UDB_cFR UDB_cHR UDB_cHU UDB_cIE UDB_cIT UDB_cLT UDB_cLU UDB_cLV UDB_cMT ' + ' UDB_cNL UDB_cNO UDB_cPL UDB_cPT UDB_cRO UDB_cRS UDB_cSE UDB_cSI UDB_cSK UDB_cUK'. !LET !CC= 'AT BE BG CH CY CZ DE DK EE EL ES FI FR HR HU IE IT LT LU LV MT NL NO PL PT RO RS SE SI SK UK '. !DO !i !IN (!CC) GET DATA /TYPE=TXT /FILE=!QUOTE(!CONCAT(!csv_path,!i,'\2017\UDB_c',!i,'17R.csv')) /ENCODING='Locale' /DELCASE=LINE /DELIMITERS="," /ARRANGEMENT=DELIMITED /FIRSTCASE=2 /IMPORTCASE=ALL /VARIABLES= RB010 F4.0 RB020 A2 RB030 F9.0 RB031 F4.0 RB031_F F2.0 RB050 COMMA8.0 RB050_F F1.0 RB070 F1.0 RB070_F F1.0 RB080 F4.0 RB080_F F1.0 RB090 F1.0 RB090_F F1.0 RB200 F1.0 RB200_F F1.0 RB210 F1.0 RB210_F F1.0 RB220 F9.0 RB220_F F2.0 RB230 F9.0 RB230_F F2.0 RB240 F9.0 RB240_F F2.0 RB245 F1.0 RB245_F F1.0 RB250 F2.0 RB250_F F2.0 RB260 F1.0 RB260_F F2.0 RB270 F9.0 RB270_F F2.0 RL010 F2.0 RL010_F F2.0 RL020 F2.0 RL020_F F2.0 RL030 F2.0 RL030_F F2.0 RL040 F2.0 RL040_F F2.0 RL050 F1.0 RL050_F F2.0 RL060 F2.0 RL060_F F2.0 RL070 COMMA8.0 RL070_F F2.0 RC010T F1.0 RC010T_F F1.0 RC020T F1.0 RC020T_F F1.0 RC030T COMMA8.0 RC030T_F F1.0 RX010 F2.0 RX020 F2.0 RX030 F7.0 RX040 COMMA12.0 RX050 F1.0 RX060 F1.0 RX070 F3.0. VARIABLE LABELS RB010 'Year of the survey' / RB020 'Country alphanumeric' / RB030 'Personal ID' / RB031 'Year of immigration- grouped in 5 year classes (DE, IS, MT, SI: missing)' / RB031_F 'Flag' / RB050 'Personal cross-sectional weight' / RB050_F 'Flag' / RB070 'Quarter of birth (DE, IE, MT, NL, SI, UK: missing)' / RB070_F 'Flag' / RB080 'Year of birth (DE: Age group pertubation; MT: 5 yr groups)' / RB080_F 'Flag' / RB090 'Sex (DE, SI: in same sex HH: recoded gender)' / RB090_F 'Flag' / RB200 'Residential status' / RB200_F 'Flag' / RB210 'Basic activity status' / RB210_F 'Flag' / RB220 'Father ID' / RB220_F 'Flag' / RB230 'Mother ID' / RB230_F 'Flag' / RB240 'Spouse/Partner ID' / RB240_F 'Flag' / RB245 'Respondent status' / RB245_F 'Flag' / RB250 'Data status' / RB250_F 'Flag' / RB260 'Type of interview' / RB260_F 'Flag' / RB270 'Personal ID of proxy' / RB270_F 'Flag' / RL010 'Education at pre-school: hours of education during an usual week' / RL010_F 'Flag' / RL020 'Education at compulsory school: hours of education during an usual week' / RL020_F 'Flag' / RL030 'Childcare at centre-based services: hours of child care during an usual week' / RL030_F 'Flag' / RL040 'Childcare at day-care centre: hours of child care during an usual week' / RL040_F 'Flag' / RL050 'Childcare by a professional child-miner: hours of child care during an usual week' / RL050_F 'Flag' / RL060 'Child care by grand-parents, other hhld members, relatives etc: hours during an usual week' / RL060_F 'Flag' / RL070 'Children cross-sectional weight for child care' / RL070_F 'Flag' / RX010 'Age at the date of the interview (DE: age group pertubation, MT: missing)' / RX020 'Age at the end of the income reference period (DE: age group pertubation, MT: missing)' / RX030 'Household ID' / RX040 'Work intensity' / RX050 'Low work intensity status' / RX060 'Severely materially deprived household' / RX070 'At risk of poverty or social exclusion' RC010T 'General health (child)' / RC010T_F 'Flag' / RC020T 'Limitation in activities because of health problems (child)' / RC020T_F 'Flag' / RC030T 'Module child 0-15 personal weight (optional)' / RC030T_F 'Flag' / . VALUE LABELS RB031 2017 "2017 - 2013" 2012 "2012 - 2008" 2007 "2007 - 2003" 2002 "2002 - 1998" 1997 "1997 - 1993" 1992 "1992 - 1988" 1987 "1987 - 1983" 1982 "1982 - 1978" 1977 "1977 - 1973" 1972 "1972 - 1968" 1967 "1967 - 1963" 1962 "1962 - 1958" 1957 "1957 - 1953" 1952 "1952 - 1948" 1947 "1947 - 1943" 1942 "1942 - 1938" 1937 "<=1937" / RB031_F 1 "Filled" -1 "Missing" -2 "Not applicable (no immigration for the person)" / RB050_F 1 "Filled" -2 "Not applicable (RB110 not equal to 1, 2, 3 or 4)" -7 "Not applicable RB010 not equal last year" / RB070 1 "January, February, March" 2 "April, May, June" 3 "July, August, September" 4 "October, November, December" / RB070_F 1 "Filled" -1 "Missing" / RB080 1936 "1936 or before" 1937 "PT: 1937 and before" 1941 "MT: 1937-1941" 1943 "DE: 1943 & before" 1946 "MT: 1942-1946" 1951 "MT: 1947-1951" 1956 "MT: 1952-1956" 1961 "MT: 1957-1961" 1966 "MT: 1962-1966" 1971 "MT: 1967-1971" 1976 "MT: 1972-1976" 1981 "MT: 1977-1981" 1986 "MT: 1982-1986" 1991 "MT: 1987-1991" 1996 "MT: 1992-1996" 2001 "MT: 1997-2001" 2006 "MT: 2002-2006" 2011 "MT: 2007-2011" 2017 "MT: 2012-2017" / RB080_F 1 "Filled" -1 "Missing" / RB090 1 "Male" 2 "Female" / RB090_F 1 "Filled" -1 "Missing" / RB200 1 "Currently living in the household" 2 "Temporarily absent" / RB200_F 1 "Filled" -1 "Missing" -2 "Not applicable (RB110 not = 1, 2, 3 or 4)" / RB210 1 "At work" 2 "Unemployed" 3 "In retirement or early retirement" 4 "Other inactive person" / RB210_F 1 "Filled" -1 "Missing" -2 "Not applicable (RB110 not = 1, 2, 3 or 4)" / RB220_F 1 "Filled" -1 "Missing" -2 "Not applicable (father is not a household member) or (RB110 not = 1, 2, 3 or 4)" / RB230_F 1 "Filled" -1 "Missing" -2 "Not applicable (mother is not a household member) or (RB110 not = 1, 2, 3 or 4)" / RB240_F 1 "Filled" -1 "Missing" -2 "Not applicable (spouse or partner is not a household member) or (RB110 not = 1,2, 3 or 4)" / RB245 1 "Current household member aged 16 and over (all hm aged 16+ interviewed)" 2 "Selected respondent (only selected hm aged 16+ interviewed)" 3 "Not selected respondent(only selected hm aged 16+ interviewed)" 4 "Not eligible person(Hm aged less than 16)" / RB245_F 1 "Filled" -2 "Not applicable (RB110 not = 1, 2, 3 or 4)" / RB250 11 "Information only completed from interview (information or interview completed)" 12 "Information only completed from registers(information or interview completed) " 13 "Information completed from both: interview and registers(information or interview completed) " 14 "Information completed from full-record imputation (information or interview completed)" 21 "Individual unable to respond and no proxy possible(Interview not completed though contact made)" 22 "Failed to return self-completed questionnaire (Interview not completed though contact made)" 23 "Refusal to cooperate(Interview not completed though contact made) " 31 "Individual not contacted because temporarily away and no proxy possible " 32 "Individual not contacted for other reasons" 33 "Information not completed: reason unknown" / RB250_F 1 "Filled" -2 "Not applicable (RB245 not = 1,2 or 3)" / RB260 1 "Face to face interview-PAPI" 2 "Face to face interview-CAPI" 3 "CATI, telephone interview" 4 "Self-administered by respondent" 5 "Computer assisted web interviewing-CAWI" 6 "Face to face interview-PAPI with proxy" 7 "Face to face interview-CAPI with proxy" 8 "CATI, telephone interview with proxy" 9 "Self-administered by respondent with proxy" 10 "Computer assisted web interviewing-CAWI with proxy" / RB260_F 1 "Filled" -1 "Missing" -2 "Not applicable (RB250 not=11 or 13)" / RB270_F 1 "Filled" -1 "Missing" -2 "Not applicable (RB260 not=5)" / RL010_F 1 "Filled" -1 "Missing" -2 "Not applicable (person not admitted to pre-school because of her age)" / RL020_F 1 "Filled" -1 "Missing" -2 "Not applicable (person is not admitted to compulsory school)" / RL030_F 1 "Filled" -1 "Missing" -2 "Not applicable (person is neither at pre-school nor at school or is more than twelve years old" / RL040_F 1 "Filled" -1 "Missing" -2 "Not applicable (person is more than twelve years old)" / RL050_F 1 "Filled" -1 "Missing" -2 "Not applicable (person is more than twelve years old)" / RL060_F 1 "Filled" -1 "Missing" -2 "Not applicable (person is more than twelve years old)" / RL070_F 1 "Filled" -2 "Not applicable (persons aged more than 12 years old at the date of interview)" / RX010 RX020 66 "DE: 66 and over" 80 "80 or over" / RX050 0 'No low work intensity' 1 'Low work intensity' 2 'Not applicable' / RX060 0 'Not severely deprived' 1 'Severely deprived' / RX070 000 "Not ARP or not severely materially deprived or no low work intensity" 001 "Not ARP or not severely materially deprived or low work intensity" 010 "Not ARP or severely materially deprived or no low work intensity" 011 "Not ARP or severely materially deprived or low work intensity" 100 "ARP or not severely materially deprived or no low work intensity" 101 "ARP or not severely materially deprived or low work intensity" 110 "ARP or severely materially deprived or no low work intensity" 111 "ARP or severely materially deprived or low work intensity" / RC010T 1 'Very good' 2 'Good' 3 'Fair' 4 'Bad' 5 'Very bad' / RC010T_F 1 'Filled' -1 'Missing' -2 'Not applicable: RB110 not equal to 1, 2, 3 or 4 (person is not a current household member)' -5 'Not applicable (person is not 0 - 15 years old)' -7 'Not applicable (RB010 not equal 2017)' / RC020T 1 'Severely limited' 2 'Limited but not severely' 3 'Not limited at all' / RC020T_F 1 'Filled' -1 'Missing' -2 'Not applicable: RB110 not equal to 1, 2, 3 or 4 (person is not a current household member)' -5 'Not applicable (person is not aged 0 - 15 years)' -7 'Not applicable (RB010 not equal 2017)' / RC030T_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not equal to 1, 2, 3 or 4) or not aged 0-15 at the time of interview' -5 'Not applicable (person is not aged 0 - 15 years)' -7 'Not applicable (RB010 not equal last year)' / . SAVE OUTFILE= !QUOTE(!CONCAT(!spss_path,'UDB_c',!i,'17R.sav')). !DOEND. *-------------------------------------------------- Compile and save final file -----------------------------------------------------------------------------------. !LET !firstfile=1. !DO !filestub !IN (!csvfiles). !IF (!firstfile=1) !THEN GET FILE=!QUOTE(!CONCAT(!spss_path,!filestub,'17R.sav')). !LET !firstfile=0. !ELSE ADD FILES FILE=* /FILE=!QUOTE(!CONCAT(!spss_path,!filestub,'17R.sav')). !IFEND. !DOEND. SAVE OUTFILE=!QUOTE(!CONCAT(!spss_path,!finalfile,'.sav')). *--------------------------------------------------------Delete single country files -------------------------------------------------------------------------------. !DO !filestub !IN (!csvfiles). ERASE FILE=!QUOTE(!CONCAT(!spss_path,!filestub,'17R.sav')). !DOEND. !ENDDEFINE. *----------------------------------------------------------------- End definition macro ---------------------------------------------------------------. *----------------------------------------------------------------- Invoke macro ---------------------------------------------------------------------------. !C2017_R.