A = LOAD '/user/sasabc/testdata.txt' USING PigStorage(',') AS (customer_number,account_number,tax_id,date_of_birth,status, residence_country_code,marital_status,email_address,phone_number, annual_income,net_worth_amount,risk_classification); B = FILTER A BY marital_status == 'Single'; store B into '/user/sasabc/output_customer' USING PigStorage(',');
filename cfg "C:\Users\sasabc\hadoop\sample_config.xml";
filename code "C:\Users\sasabc\hadoop\sample_pig.txt";
proc hadoop options=cfg username="sasabc" password="sasabc" verbose;
pig code=code registerjar="C:\Users\sasabc\Hadoop\jars\myudf.jar"; run;