* Encoding: windows-1252. ****************************************************************************************. * 2013_c_y_panel_eu_silc_pers_reg_r.sps * * SPSS Command Syntax File * Release 24.0.0.1 * * Transforms the EU-SILC CSV-data (as released by Eurostat) into an SPSS-Systemfile * * EU-SILC - Panel 2013_c_y * Personal register file: * This version of the EU-SILC has been delivered in form of seperate country files. * The following syntax transformes the raw data into one SPSS file using all available country files. * Country files are delivered in the format UDB_l*country_stub*13R.csv * * 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-2013 DIFFERENCES BETWEEN DATA COLLECTED.doc * * (c) GESIS 2018-06-08 * GESIS - Leibniz Institute for the Social Sciences * German Microdata Lab * Heike Wirth; Anika Herter * * 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 !L2013_nR (). *-------------------------------------------------------- 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-2015\); * 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 -----------------------------------------------------------------------. *------------------------------------------------------------- Definition of country stubs -----------------------------------------------------------------------. !LET !csvfiles= 'UDB_lAT UDB_lBE UDB_lBG UDB_lCY UDB_lCZ UDB_lDK UDB_lEE UDB_lEL UDB_lES' + ' UDB_lFI UDB_lFR UDB_lHR UDB_lHU UDB_lIE UDB_lIS UDB_lIT UDB_lLT UDB_lLU UDB_lLV UDB_lMT UDB_lNL' + ' UDB_lNO UDB_lPL UDB_lPT UDB_lRO UDB_lSE UDB_lSI UDB_lSK UDB_lUK'. !LET !CC= 'AT BE BG CY CZ 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,'\2013\UDB_l',!i,'13R.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 comma8.0 RB062_F F2.0 RB063 comma8.0 RB063_F F2.0 RB064 comma8.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' /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' /RB070_f 'Flag' /RB080 'Year of birth' /RB080_f 'Flag' /RB090 'Sex' /RB090_f 'Flag' /RB100 'Sample person or co-resident' /RB100_F 'Flag' /RB110 'Membership status' /RB110_f 'Flag' /RB120 'Moved to' /RB120_F 'Flag' /RB140 'Quarter moved out or died (BE:coded in months; NL:info not provided)' /RB140_f 'Flag' /RB150 'Year moved out or died' /RB150_F 'Flag' /RB160 'Number of months in household during the income reference period' /RB160_F 'Flag' /RB170 'Main activity status during the income reference period' /RB170_F 'Flag' /RB180 'Quarter moved in (BE:coded in months; NL:info not provided)' /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' /RX020 'Age at the end of the income reference period' /RX010 'Age at the date of the interview'. 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"/ 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 1932 '1932 or before'/ 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 'na (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 'na(RB110 not=5 or 6)'/ RB150_F 1 'filled' -1 'missing' -2 'na (RB110 not =5 or 6)'/ RB160_F 1 'filled' -1 'missing' -2 'na (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 'na (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 'na (RB110 not = 3)'/ RB190_F 1 'filled' -1 'missing' -2 'na (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/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'. SAVE OUTFILE= !QUOTE(!CONCAT(!spss_path,'UDB_l',!i,'13R.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,'13R.sav')). !LET !firstfile=0. !ELSE ADD FILES FILE=* /FILE=!QUOTE(!CONCAT(!spss_path,!filestub,'13R.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,'13R.sav')). !DOEND. !ENDDEFINE. *----------------------------------------------------------------- End definition macro ---------------------------------------------------------------. *----------------------------------------------------------------- Invoke macro ---------------------------------------------------------------------------. !L2013_nR.