hadoop - How to convert sas7bdat file to csv? -



hadoop - How to convert sas7bdat file to csv? -

i want convert .sas7bdat file .csv/txt format can upload hive table. i'm receiving .sas7bdat file outside server , not have sas on machine.

thanks in advance.

use 1 of r foreign packages read file , convert csv tool.

http://cran.r-project.org/doc/manuals/r-data.pdf pg 12

using sas7bdat bundle instead. appears ignore custom formatted, reading underlying data.

in sas:

proc format; value agegrp low - 12 = 'pre teen' 13 -15 = 'teen' 16 - high = 'driver'; run; libname test 'z:\consulting\sas programs'; info test.class; set sashelp.class; age2=age; format age2 agegrp.; run;

in r:

install.packages(sas7bdat) library(sas7bdat) x<-read.sas7bdat("class.sas7bdat", debug=true) x

csv hadoop hive sas hdfs

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -