* Encoding: windows-1252. * ==================================================================================================. * EU-SILC cross 2011 - release 2021-09 / DOI: TBD * * When publishing statistics derived from the EU-SILC UDB, please state as source: * "EU-SILC UDB - version of 2021-09" * * SPSS Command Syntax File * 2011_cross_eu_silc_r_ver_2022_03.sps * * (c) 2022-06-02 GESIS * * PLEASE NOTE * For Differences between data as described in the guidelines * and the anonymised user database as well as country specific anonymisation measures see: * L-2011 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_l*country_stub*.csv * * This SPSS-File is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Affero General Public License for more details. * * You should have received a copy of the GNU Affero General Public License * along with this program. If not, see . * * * Pforr, Klaus and Johanna Jung (2022): 2011_cross_eu_silc_r_ver_2022_03.sps. * SPSS-Syntax for transforming EU-SILC csv data into an SPSS-Systemfile. * * https://www.gesis.org/gml/european-microdata/eu-silc/ * * Contact: klaus.pforr@gesis.org ***************************************************************************************. * ======================================================================================== * Important - Changes in the data to earlier releases! * * * Malta: Age and year of birth information: RX020 , RX010 seem to be grouped. * Maybe value swapping was also used in Malta. * * In some other countries the data seemed to be updated (minor changes). * ========================================================================================. set decimal=DOT. * When using SPSS earlier than V16 you might not use "set unicode" . set unicode=OFF. *----------------------------------------------------------------- Start definition macro ---------------------------------------------------------------. DEFINE !C2011_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 !CC= 'AT BE BG CH CY CZ DE DK EE EL ES FI FR HR HU IE IS IT LT LU LV MT NL NO PL PT RO SE SI SK UK'. !DO !i !IN (!CC) GET DATA /TYPE=TXT /FILE=!QUOTE(!CONCAT(!csv_path,!i,'\2011\UDB_c',!i,'11R.csv')) /ENCODING='Locale' /DELCASE=LINE /DELIMITERS="," /ARRANGEMENT=DELIMITED /FIRSTCASE=2 /IMPORTCASE=ALL /VARIABLES= RB010 F4.0 RB020 A2 RB030 F4.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 F4.0 RB220_F F2.0 RB230 F4.0 RB230_F F2.0 RB240 F4.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 F4.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 RX010 F2.0 RX020 F2.0 RX030 F2.0 RX040 COMMA8.0 RX050 F1.0 RX060 F1.0 RX070 N3. variable labels RB010 'Year of the survey' /RB020 'Country alphanumerical' /RB030 'Personal ID' /RB031 'Year of immigration (grouped in 5 year classes)' /RB031_F 'Flag' /RB070 'Quarter of birth' /RB070_F 'Flag' /RB080 'Year of birth' /RB080_F 'Flag' /RB090 'Sex' /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' /RX020 'Age at the end of the income reference period' /RX010 'Age at the date of the interview' /RB050 'Personal cross-sectional weight' /RB050_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 'Child care at centre-based services: hours of child care during an usual week' /RL030_F 'Flag' /RL040 'Child care at day-care centre: hours of child care during an usual week' /RL040_F 'Flag' /RL050 "Child care by a professional child-minder at child's home/at child-minder's home" /RL050_F 'Flag' /RL060 'Child care by grnd-prnts, oth hhld mmbrs (ex. prnts), oth rltvs, frnds or nghbrs' /RL060_F 'Flag' /RL070 'Children cross-sectional weight for child care' /RL070_F 'Flag' /RX040 "Work intensity" /RX050 'Low work intensity status' /RX030 'Household ID' /RX060 'Severely materially deprived household' /RX070 'At risk of poverty or social exclusion'. value labels RB020 'BE' "Belgique" 'BG' "Bulgaria" 'CZ' "Czech Republic" 'DK' "Danmark" 'DE' "Deutschland" 'EE' "Estonia" 'IE' "Ireland" 'EL' "Ellada" 'ES' "Espana" 'FR' "France" 'IT' "Italia" 'CY' "Cyprus" 'LV' "Latvia" 'LT' "Lithuania" 'LU' "Luxembourg" 'HU' "Hungary" 'MT' "Malta" 'NL' "Nederland" 'AT' "Oesterreich" 'PL' "Poland" 'PT' "Portugal" 'RO' "Romania" 'SI' "Slovenia" 'SK' "Slovak Republic" 'FI' "Suomi" 'SE' "Sverige" 'UK' "United Kingdom" 'CH' "Switzerland" 'HR' "Croatia" 'IS' "Iceland" 'NO' "Norway" 'TR' "Turkey"/ RB031 2011 '2011 - 2007' 2006 '2006 - 2002' 2001 '2001 - 1997' 1996 '1996 - 1992' 1991 '1991 - 1987' 1986 '1986 - 1982' 1981 '1981 - 1977' 1976 '1976 - 1972' 1971 '1971 - 1967' 1966 '1966 - 1962' 1961 '1961 - 1957' 1956 '1956 - 1952' 1951 '1951 - 1947' 1946 '1946 - 1942' 1941 '1941 - 1937' 1936 '1936 - 1932' 1931 '<=1931' / RB031_F 1 'filled' -1 'missing' -2 'not applicable (no immigration for the person)'/ RB070 1 'January, February, March' 2 'April, May, June' 3 'July, August, September' 4 'October, November, December'/ RB070_F 1 'filled' -1 'missing'/ RB080 1930 "1930 or before" 1931 "PT: 1931 and before" 1935 "MT: 1931-1935" 1940 "MT: 1936-1940" 1945 "MT: 1941-1945" 1950 "MT: 1946-1950" 1955 "MT: 1951-1955" 1960 "MT: 1956-1960" 1965 "MT: 1961-1965" 1970 "MT: 1966-1970" 1975 "MT: 1971-1975" 1980 "MT: 1976-1980" 1985 "MT: 1981-1985" 1990 "MT: 1986-1990" 1995 "MT: 1991-1995" 2000 "MT: 1996-2000" 2005 "MT: 2001-2005" 2011 "MT: 2006-2011"/ 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/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 'person temporarily away and no proxy possible' 32 'no contact for other reasons' 33 'information not completed: reason unknown'/ RB250_F 1 'filled' -2 'na (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 'proxy interview'/ RB260_F 1 'filled' -1 'missing' -2 'na (RB250 not=11 or 13)'/ RB270_F 1 'filled' -1 'missing' -2 'na (RB260 not=5)'/ RX010 80 '80 or over'/ RX020 80 '80 or over'/ RB050_F 1'filled'/ RL010_F 1 'filled' -1 'missing' -2 'not applicable (person is not admitted to pre-school because of her age, is at compulsory school or is > 12 years)'/ RL020_F 1 'filled' -1 'missing' -2 'not applicable (RL020:person is not admitted to compulsory school because of her age or is > 12 years)'/ RL030_F 1 'filled' -1 'missing' -2 'not applicable (RL030:person is neither at pre-school nor at school or is > 12 years)'/ RL040_F 1 'filled' -1 'missing' -2 'not applicable (RL040, RL050, RL060: person is > 12 years)'/ RL050_F 1 'filled' -1 'missing' -2 'not applicable (RL040, RL050, RL060: person is > 12 years)'/ RL060_F 1 'filled' -1 'missing' -2 'not applicable (RL040, RL050, RL060: person is > 12 years)'/ RX050 0 'no low work intensity' 1 'low work intensity' 2 'not applicable'/ RX060 0 'not severely deprived' 1 'severely deprived'/ RL070_F 1 'filled' -2 'not applicable (persons aged more than 12 years old at the date of interview)'/ RX070 000 'not ARP/not severely materially deprived/no low work intensity' 001 'not ARP/not severely materially deprived/low work intensity' 010 'not ARP/severely materially deprived/no low work intensity' 011 'not ARP/severely materially deprived/low work intensity' 100 'ARP/not severely materially deprived/no low work intensity' 101 'ARP/not severely materially deprived/low work intensity' 110 'ARP/severely materially deprived/no low work intensity' 111 'ARP/severely materially deprived/low work intensity'. SAVE OUTFILE= !QUOTE(!CONCAT(!spss_path,'UDB_c',!i,'11R.sav')). !DOEND. *-------------------------------------------------- Compile and save final file -----------------------------------------------------------------------------------. !LET !firstfile=1. !DO !i !IN (!CC). !IF (!firstfile=1) !THEN GET FILE=!QUOTE(!CONCAT(!spss_path,'UDB_c',!i,'11R.sav')). !LET !firstfile=0. !ELSE ADD FILES FILE=* /FILE=!QUOTE(!CONCAT(!spss_path,'UDB_c',!i,'11R.sav')). !IFEND. !DOEND. SAVE OUTFILE=!QUOTE(!CONCAT(!spss_path,!finalfile,'.sav')). *--------------------------------------------------------Delete single country files -------------------------------------------------------------------------------. !DO !i !IN (!CC). ERASE FILE=!QUOTE(!CONCAT(!spss_path,'UDB_c',!i,'11R.sav')). !DOEND. !ENDDEFINE. *----------------------------------------------------------------- End definition macro ---------------------------------------------------------------. *----------------------------------------------------------------- Invoke macro ---------------------------------------------------------------------------. !C2011_R.