* Encoding: windows-1252. * ==================================================================================================. * EU-SILC panel 2018 - release 2022-03 / DOI: TBD * * When publishing statistics derived from the EU-SILC UDB, please state as source: * "EU-SILC UDB - version of 2022-03" * * SPSS Command Syntax File * 2018_panel_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-2018 DIFFERENCES BETWEEN DATA COLLECTED.doc * * ==================================================================================================. * * EU-SILC - panel - 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): 2018_panel_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 ***************************************************************************************. set decimal=DOT. * When using SPSS earlier than V16 you might not use "set unicode" . set unicode=OFF. *----------------------------------------------------------------- Start definition macro ---------------------------------------------------------------. DEFINE !L2018_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\Longitudinal 2005-2018\); * 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 RS SE SI SK UK'. !DO !i !IN (!CC) GET DATA /TYPE=TXT /FILE=!QUOTE(!CONCAT(!csv_path,!i,'\2018\UDB_l',!i,'18R.csv')) /ENCODING='Locale' /DELCASE=LINE /DELIMITERS="," /ARRANGEMENT=DELIMITED /FIRSTCASE=2 /IMPORTCASE=ALL /VARIABLES= RB010 F4.0 RB020 A2 RB030 F9.0 RB040 F7.0 RB060 COMMA8.0 RB060_F F1.0 RB062 COMMA1.0 RB062_F F2.0 RB063 COMMA1.0 RB063_F F2.0 RB064 COMMA1.0 RB064_F F2.0 RB070 F1.0 RB070_F F1.0 RB080 F4.0 RB080_F F1.0 RB090 F1.0 RB090_F F1.0 RB100 F1.0 RB100_F F1.0 RB110 F1.0 RB110_F F1.0 RB120 F1.0 RB120_F F2.0 RB140 F1.0 RB140_F F2.0 RB150 F1.0 RB150_F F2.0 RB160 F1.0 RB160_F F2.0 RB170 F1.0 RB170_F F2.0 RB180 F1.0 RB180_F F2.0 RB190 F1.0 RB190_F F2.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 RX010 F2.0 RX020 F2.0 . variable labels RB010 'Year of the survey' / RB020 'Country alphanumeric'/ RB030 'Personal ID' / RB040 'Current household ID' / RB060 'Personal base weight' / RB060_F 'Flag' / RB062 'Longitudinal weight (two-year duration)' / RB062_F 'Flag' / RB063 'Longitudinal weight (three-year duration)' / RB063_F 'Flag' / RB064 'Longitudinal weight (four-year duration)' / RB064_F 'Flag' / RB070 'Quarter of birth (DE,IE,MT,NL,SI,UK: missing)' / RB070_F 'Flag' / RB080 'Year of birth (Top coping; DE: B cod & age grp prtbtn; FI, IS: Age grp prtbtn)' / RB080_F 'Flag' / RB090 'Sex (DE,SI: in same sex HH: recoded gender)' / RB090_f 'Flag' / RB100 'Sample person or co-resident' / RB100_F 'Flag' / RB110 'Membership status (DE: 5,6=5)' / RB110_F 'Flag' / RB120 'Moved to' / RB120_F 'Flag' / RB140 'Quarter moved out or died (BE: Month, DE, NL: missing)' / RB140_f 'Flag' / RB150 'Year moved out or died' / RB150_F 'Flag' / RB160 'Number of months in household during the income reference period (DE: missing)' / RB160_F 'Flag' / RB170 'Main activity status during the income reference period' / RB170_F 'Flag' / RB180 'Quarter moved in (BE: Month, DE, NL: missing)' / RB180_F 'Flag' / RB190 'Year moved in' / RB190_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' / RX010 'Age at date of the interview (T cod: >=80; DE, FI, IS: Age grp pert, MT: mis)'/ RX020 'Age at the end of the income reference period (DE: age grp pertubation, MT: mis)' / . VALUE LABELS RB020 'BE' "Belgique" 'BG' "Bulgaria" 'CZ' "Czech Republic" 'DK' "Danmark" 'DE' "Deutschland" 'EE' "Estonia" 'EL' "Ellada" 'IE' "Ireland" '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" 'RS' "Srbija" / RB060_F 1 'Filled' / RB062_F 1 'Filled' -1 'Missing' -2 'Not applicable (no two year trajectory for the individual i.e. individual in 1st wave)' / RB063_F 1 'Filled' -1 'Missing' -2 'Not applicable (no 3-year trajectory for the individual i.e. individual in 1st or 2nd wave)' / RB064_F 1 'Filled' -1 'Missing' -2 'Not applicable (no 4-year trajectory for the individual i.e. individual in 1st, 2nd or 3rd wave)' / RB070 1 'January, February, March' 2 'April, May, June' 3 'July, August, September' 4 'October, November, December' / RB070_F 1 'Filled' -1 'Missing' / RB080 1937 "1937 or before" 1938 "MT,PT: 1938 and before" 1942 "MT: 1938-1942" 1944 "DE: 1944 & before" 1947 "MT: 1943-1947" 1952 "MT: 1948-1952" 1957 "MT: 1953-1957" 1962 "MT: 1958-1962" 1967 "MT: 1963-1967" 1972 "MT: 1968-1972" 1977 "MT: 1973-1977" 1982 "MT: 1978-1982" 1987 "MT: 1983-1987" 1992 "MT: 1988-1992" 1997 "MT: 1993-1997" 2002 "MT: 1998-2002" 2007 "MT: 2003-2007" 2012 "MT: 2008-2012" 2018 "MT: 2013-2018" / RB080_F 1 'Filled' -1 'Missing' / RB090 1 'Male' 2 'Female' / RB090_F 1 'Filled' -1 'Missing' / RB100 1 'Sample person' 2 'Co-resident' / RB100_F 1 'Filled' -1 'Missing' / RB110 1 'Was in hh in previous waves or current hh member' 2 'Moved into hh from another sample hh since previous wave' 3 'Moved into hh from outside sample since previous wave' 4 'Newly born hh since last wave' 5 'Moved out since previous wave if not contacted in previous wave)' 6 'Died' 7 'Lived in hh at least 3 months during the income ref. period, not recorded in the register of this hh' / RB110_F 1 'Filled' -1 'Missing' / RB120 1 'To a private household in the country' 2 'To a collective household or institution in the country' 3 'Abroad' 4 'Lost' / RB120_F 1 'Filled' -2 'Not applicable (RB110 not=5)' / RB140 1 '1st quarter. BE:January' 2 '2nd quarter. BE:February' 3 '3rd quarter. BE:March' 4 '4th quarter. BE:April' 5 'BE:May' 6 'BE:June' 7 'BE:July' 8 'BE:August' 9 'BE:September' 10 'BE:October' 11 'BE:November' 12 'BE:December' / RB140_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not=5 or 6)' / RB150_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not =5 or 6)' / RB160_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not = 5 or 6 or 7)' / RB170 1 'At work' 2 'Unemployed' 3 'In retirement or early retirement' 4 'Other inactive person' / RB170_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not = 5 or 6 or 7)' / RB180 1 '1st quarter. BE:January' 2 '2nd quarter. BE:February' 3 '3rd quarter. BE:March' 4 '4th quarter. BE:April' 5 'BE:May' 6 'BE:June' 7 'BE:July' 8 'BE:August' 9 'BE:September' 10 'BE:October' 11 'BE:November' 12 'BE:December' / RB180_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not = 3)' / RB190_F 1 'Filled' -1 'Missing' -2 'Not applicable (RB110 not = 3)' / 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)" / RX010 74 "DE: 74 or over" 80 '80 or over' / RX020 73 "DE: 73 or over" 80 '80 or over' . SAVE OUTFILE= !QUOTE(!CONCAT(!spss_path,'UDB_l',!i,'18R.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_l',!i,'18R.sav')). !LET !firstfile=0. !ELSE ADD FILES FILE=* /FILE=!QUOTE(!CONCAT(!spss_path,'UDB_l',!i,'18R.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_l',!i,'18R.sav')). !DOEND. !ENDDEFINE. *----------------------------------------------------------------- End definition macro ---------------------------------------------------------------. *----------------------------------------------------------------- Invoke macro ---------------------------------------------------------------------------. !L2018_R.