*pbp_b14.sas;

libname out '.\sas_data_sets\PBP';
options pageno=1 linesize = 200 nocenter;

data pbp_b14;

length
	pbp_a_hnumber                    $5
	pbp_a_plan_identifier            $3
	pbp_a_ben_cov                    $1
	pbp_a_plan_type                  $2
	orgtype                          $2
	bid_id                           $13
	pbp_b14a_mc_prevent_attest       $1
	pbp_b14a_auth_yn                 $1
	pbp_b14a_refer_yn                $1
	pbp_b14b_bendesc_yn              $1
	pbp_b14b_bendesc_rpe_amo         $1
	pbp_b14b_maxplan_yn              $1
	pbp_b14b_maxenr_yn               $1
	pbp_b14b_coins_yn                $1
	pbp_b14b_ded_yn                  $1
	pbp_b14b_copay_yn                $1
	pbp_b14b_auth_yn                 $1
	pbp_b14b_refer_yn                $1
	pbp_b14c_bendesc_yn              $1
	pbp_b14c_bendesc_ehc             $255
	pbp_b14c_bendesc_amo_hec         $1
	pbp_b14c_bendesc_amo_ntb         $1
	pbp_b14c_bendesc_lim_ntb         $1
	pbp_b14c_bendesc_dur_ntb         $1
	pbp_b14c_bendesc_amo_sc          $1
	pbp_b14c_bendesc_amo_mhc         $1
	pbp_b14c_bendesc_amo_edm         $1
	pbp_b14c_bendesc_amo_tm          $1
	pbp_b14c_bendesc_amo_rat         $1
	pbp_b14c_rat_bendesc_ehc         $2
	pbp_b14c_bendesc_amo_bsd         $1
	pbp_b14c_bendesc_amo_cs          $1
	pbp_b14c_bendesc_lim_cs          $1
	pbp_b14c_bendesc_dur_cs          $1
	pbp_b14c_bendesc_amo_isa         $1
	pbp_b14c_bendesc_amo_prs         $1
	pbp_b14c_bendesc_amo_mnt         $1
	pbp_b14c_mnt_mcd_yn              $1
	pbp_b14c_mnt_mcd_unit            $1
	pbp_b14c_mnt_nmcd_yn             $1
	pbp_b14c_mnt_nmcd_unit           $1
	pbp_b14c_bendesc_amo_imr         $1
	pbp_b14c_bendesc_amo_rp          $1
	pbp_b14c_rp_bendesc_ehc          $4
	pbp_b14c_rp_bendesc_other        $72
	pbp_b14c_bendesc_amo_wig         $1
	pbp_b14c_bendesc_amo_wm          $1
	pbp_b14c_bendesc_amo_at          $1
	pbp_b14c_bendesc_lim_at          $1
	pbp_b14c_combined_ben            $1
	pbp_b14c_maxplan_yn              $1
	pbp_b14c_maxplan_ehc             $255
	pbp_b14c_maxplan_per_hec         $1
	pbp_b14c_maxplan_per_ntb         $1
	pbp_b14c_maxplan_per_sc          $1
	pbp_b14c_maxplan_per_mhc         $1
	pbp_b14c_maxplan_per_edm         $1
	pbp_b14c_maxplan_per_tm          $1
	pbp_b14c_maxplan_per_rat         $1
	pbp_b14c_maxplan_per_bsd         $1
	pbp_b14c_maxplan_per_cs          $1
	pbp_b14c_maxplan_per_isa         $1
	pbp_b14c_maxplan_per_prs         $1
	pbp_b14c_maxplan_per_mnt         $1
	pbp_b14c_maxplan_per_imr         $1
	pbp_b14c_maxplan_per_rp          $1
	pbp_b14c_maxplan_per_wig         $1
	pbp_b14c_maxplan_per_wm          $1
	pbp_b14c_maxplan_per_at          $1
	pbp_b14c_maxenr_yn               $1
	pbp_b14c_maxenr_ehc              $255
	pbp_b14c_maxenr_per_hec          $1
	pbp_b14c_maxenr_per_ntb          $1
	pbp_b14c_maxenr_per_sc           $1
	pbp_b14c_maxenr_per_mhc          $1
	pbp_b14c_maxenr_per_edm          $1
	pbp_b14c_maxenr_per_tm           $1
	pbp_b14c_maxenr_per_rat          $1
	pbp_b14c_maxenr_per_bsd          $1
	pbp_b14c_maxenr_per_cs           $1
	pbp_b14c_maxenr_per_isa          $1
	pbp_b14c_maxenr_per_prs          $1
	pbp_b14c_maxenr_per_mnt          $1
	pbp_b14c_maxenr_per_imr          $1
	pbp_b14c_maxenr_per_rp           $1
	pbp_b14c_maxenr_per_wig          $1
	pbp_b14c_maxenr_per_wm           $1
	pbp_b14c_maxenr_per_at           $1
	pbp_b14c_coins_yn                $1
	pbp_b14c_coins_ehc               $255
	pbp_b14c_ded_yn                  $1
	pbp_b14c_copay_yn                $1
	pbp_b14c_copay_ehc               $255
	pbp_b14c_auth_yn                 $1
	pbp_b14c_refer_yn                $1
	pbp_b14d_maxenr_yn               $1
	pbp_b14d_maxenr_per              $1
	pbp_b14d_coins_yn                $1
	pbp_b14d_ded_yn                  $1
	pbp_b14d_copay_yn                $1
	pbp_b14d_auth_yn                 $1
	pbp_b14d_refer_yn                $1
	pbp_b14e_maxenr_yn               $1
	pbp_b14e_maxenr_ehc              $3
	pbp_b14e_maxenr_per_glauc        $1
	pbp_b14e_maxenr_per_diab         $1
	pbp_b14e_maxenr_per_other        $1
	pbp_b14e_coins_yn                $1
	pbp_b14e_coins_ehc               $3
	pbp_b14e_ded_yn                  $1
	pbp_b14e_ded_ehc                 $3
	pbp_b14e_copay_yn                $1
	pbp_b14e_copay_ehc               $3
	pbp_b14e_auth_yn_glauc           $1
	pbp_b14e_auth_yn_diab            $1
	pbp_b14e_auth_yn_other           $1
	pbp_b14e_refer_yn                $1
	pbp_b14e_refer_ehc               $3
;

infile '.\pbp\pbp_b14_preventive.txt' delimiter = '09'x
dsd lrecl = 30000 firstobs=2 missover;


input
	pbp_a_hnumber
	pbp_a_plan_identifier
	segment_id
	pbp_a_ben_cov
	pbp_a_plan_type
	orgtype
	bid_id
	version
	pbp_b14a_mc_prevent_attest
	pbp_b14a_auth_yn
	pbp_b14a_refer_yn
	pbp_b14b_bendesc_yn
	pbp_b14b_bendesc_rpe_amo
	pbp_b14b_maxplan_yn
	pbp_b14b_maxplan_amt
	pbp_b14b_maxenr_yn
	pbp_b14b_maxenr_amt
	pbp_b14b_coins_yn
	pbp_b14b_coins_pct_rpe_min
	pbp_b14b_coins_pct_rpe_max
	pbp_b14b_ded_yn
	pbp_b14b_ded_amt
	pbp_b14b_copay_yn
	pbp_b14b_copay_amt_rpe_min
	pbp_b14b_copay_amt_rpe_max
	pbp_b14b_auth_yn
	pbp_b14b_refer_yn
	pbp_b14c_bendesc_yn
	pbp_b14c_bendesc_ehc
	pbp_b14c_bendesc_amo_hec
	pbp_b14c_bendesc_amo_ntb
	pbp_b14c_bendesc_lim_ntb
	pbp_b14c_bendesc_num_ntb
	pbp_b14c_bendesc_dur_ntb
	pbp_b14c_bendesc_amo_sc
	pbp_b14c_bendesc_visit_num_sc
	pbp_b14c_bendesc_amo_mhc
	pbp_b14c_bendesc_amo_edm
	pbp_b14c_bendesc_amo_tm
	pbp_b14c_bendesc_amo_rat
	pbp_b14c_rat_bendesc_ehc
	pbp_b14c_bendesc_amo_bsd
	pbp_b14c_bendesc_amo_cs
	pbp_b14c_bendesc_lim_cs
	pbp_b14c_bendesc_num_cs
	pbp_b14c_bendesc_dur_cs
	pbp_b14c_bendesc_dur_num_cs
	pbp_b14c_bendesc_amo_isa
	pbp_b14c_bendesc_amo_prs
	pbp_b14c_bendesc_amo_mnt
	pbp_b14c_mnt_mcd_yn
	pbp_b14c_mnt_mcd_unit
	pbp_b14c_mnt_mcd_num
	pbp_b14c_mnt_nmcd_yn
	pbp_b14c_mnt_nmcd_unit
	pbp_b14c_mnt_nmcd_num
	pbp_b14c_bendesc_amo_imr
	pbp_b14c_bendesc_amo_rp
	pbp_b14c_rp_bendesc_ehc
	pbp_b14c_rp_bendesc_other
	pbp_b14c_rp_days
	pbp_b14c_rp_max_meals
	pbp_b14c_bendesc_amo_wig
	pbp_b14c_bendesc_amo_wm
	pbp_b14c_bendesc_amo_at
	pbp_b14c_bendesc_lim_at
	pbp_b14c_at_visits
	pbp_b14c_combined_ben
	pbp_b14c_maxplan_yn
	pbp_b14c_maxplan_ehc
	pbp_b14c_maxplan_amt_hec
	pbp_b14c_maxplan_per_hec
	pbp_b14c_maxplan_amt_ntb
	pbp_b14c_maxplan_per_ntb
	pbp_b14c_maxplan_amt_sc
	pbp_b14c_maxplan_per_sc
	pbp_b14c_maxplan_amt_mhc
	pbp_b14c_maxplan_per_mhc
	pbp_b14c_maxplan_amt_edm
	pbp_b14c_maxplan_per_edm
	pbp_b14c_maxplan_amt_tm
	pbp_b14c_maxplan_per_tm
	pbp_b14c_maxplan_amt_rat
	pbp_b14c_maxplan_per_rat
	pbp_b14c_maxplan_amt_bsd
	pbp_b14c_maxplan_per_bsd
	pbp_b14c_maxplan_amt_cs
	pbp_b14c_maxplan_per_cs
	pbp_b14c_maxplan_amt_isa
	pbp_b14c_maxplan_per_isa
	pbp_b14c_maxplan_amt_prs
	pbp_b14c_maxplan_per_prs
	pbp_b14c_maxplan_amt_mnt
	pbp_b14c_maxplan_per_mnt
	pbp_b14c_maxplan_amt_imr
	pbp_b14c_maxplan_per_imr
	pbp_b14c_maxplan_amt_rp
	pbp_b14c_maxplan_per_rp
	pbp_b14c_maxplan_amt_wig
	pbp_b14c_maxplan_per_wig
	pbp_b14c_maxplan_amt_wm
	pbp_b14c_maxplan_per_wm
	pbp_b14c_maxplan_amt_at
	pbp_b14c_maxplan_per_at
	pbp_b14c_maxenr_yn
	pbp_b14c_maxenr_ehc
	pbp_b14c_maxenr_amt_hec
	pbp_b14c_maxenr_per_hec
	pbp_b14c_maxenr_amt_ntb
	pbp_b14c_maxenr_per_ntb
	pbp_b14c_maxenr_amt_sc
	pbp_b14c_maxenr_per_sc
	pbp_b14c_maxenr_amt_mhc
	pbp_b14c_maxenr_per_mhc
	pbp_b14c_maxenr_amt_edm
	pbp_b14c_maxenr_per_edm
	pbp_b14c_maxenr_amt_tm
	pbp_b14c_maxenr_per_tm
	pbp_b14c_maxenr_amt_rat
	pbp_b14c_maxenr_per_rat
	pbp_b14c_maxenr_amt_bsd
	pbp_b14c_maxenr_per_bsd
	pbp_b14c_maxenr_amt_cs
	pbp_b14c_maxenr_per_cs
	pbp_b14c_maxenr_amt_isa
	pbp_b14c_maxenr_per_isa
	pbp_b14c_maxenr_amt_prs
	pbp_b14c_maxenr_per_prs
	pbp_b14c_maxenr_amt_mnt
	pbp_b14c_maxenr_per_mnt
	pbp_b14c_maxenr_amt_imr
	pbp_b14c_maxenr_per_imr
	pbp_b14c_maxenr_amt_rp
	pbp_b14c_maxenr_per_rp
	pbp_b14c_maxenr_amt_wig
	pbp_b14c_maxenr_per_wig
	pbp_b14c_maxenr_amt_wm
	pbp_b14c_maxenr_per_wm
	pbp_b14c_maxenr_amt_at
	pbp_b14c_maxenr_per_at
	pbp_b14c_coins_yn
	pbp_b14c_coins_ehc
	pbp_b14c_coins_pct_min_hec
	pbp_b14c_coins_pct_max_hec
	pbp_b14c_coins_pct_min_ntb
	pbp_b14c_coins_pct_max_ntb
	pbp_b14c_coins_pct_min_sc
	pbp_b14c_coins_pct_max_sc
	pbp_b14c_coins_pct_min_mhc
	pbp_b14c_coins_pct_max_mhc
	pbp_b14c_coins_pct_min_edm
	pbp_b14c_coins_pct_max_edm
	pbp_b14c_coins_pct_min_tm
	pbp_b14c_coins_pct_max_tm
	pbp_b14c_coins_pct_min_rat
	pbp_b14c_coins_pct_max_rat
	pbp_b14c_coins_pct_min_bsd
	pbp_b14c_coins_pct_max_bsd
	pbp_b14c_coins_pct_min_cs
	pbp_b14c_coins_pct_max_cs
	pbp_b14c_coins_pct_min_isa
	pbp_b14c_coins_pct_max_isa
	pbp_b14c_coins_pct_min_prs
	pbp_b14c_coins_pct_max_prs
	pbp_b14c_coins_pct_min_mnt
	pbp_b14c_coins_pct_max_mnt
	pbp_b14c_coins_pct_min_imr
	pbp_b14c_coins_pct_max_imr
	pbp_b14c_coins_pct_min_rp
	pbp_b14c_coins_pct_max_rp
	pbp_b14c_coins_pct_min_wig
	pbp_b14c_coins_pct_max_wig
	pbp_b14c_coins_pct_min_wm
	pbp_b14c_coins_pct_max_wm
	pbp_b14c_coins_pct_min_at
	pbp_b14c_coins_pct_max_at
	pbp_b14c_ded_yn
	pbp_b14c_ded_amt
	pbp_b14c_copay_yn
	pbp_b14c_copay_ehc
	pbp_b14c_copay_hec_min_amt
	pbp_b14c_copay_hec_max_amt
	pbp_b14c_copay_ntb_min_amt
	pbp_b14c_copay_ntb_max_amt
	pbp_b14c_copay_sc_min_amt
	pbp_b14c_copay_sc_max_amt
	pbp_b14c_copay_mhc_min_amt
	pbp_b14c_copay_mhc_max_amt
	pbp_b14c_copay_edm_min_amt
	pbp_b14c_copay_edm_max_amt
	pbp_b14c_copay_tm_min_amt
	pbp_b14c_copay_tm_max_amt
	pbp_b14c_copay_rat_min_amt
	pbp_b14c_copay_rat_max_amt
	pbp_b14c_copay_bsd_min_amt
	pbp_b14c_copay_bsd_max_amt
	pbp_b14c_copay_cs_min_amt
	pbp_b14c_copay_cs_max_amt
	pbp_b14c_copay_isa_min_amt
	pbp_b14c_copay_isa_max_amt
	pbp_b14c_copay_prs_min_amt
	pbp_b14c_copay_prs_max_amt
	pbp_b14c_copay_mnt_min_amt
	pbp_b14c_copay_mnt_max_amt
	pbp_b14c_copay_imr_min_amt
	pbp_b14c_copay_imr_max_amt
	pbp_b14c_copay_rp_min_amt
	pbp_b14c_copay_rp_max_amt
	pbp_b14c_copay_wig_min_amt
	pbp_b14c_copay_wig_max_amt
	pbp_b14c_copay_wm_min_amt
	pbp_b14c_copay_wm_max_amt
	pbp_b14c_copay_at_min_amt
	pbp_b14c_copay_at_max_amt
	pbp_b14c_auth_yn
	pbp_b14c_refer_yn
	pbp_b14d_maxenr_yn
	pbp_b14d_maxenr_amt
	pbp_b14d_maxenr_per
	pbp_b14d_coins_yn
	pbp_b14d_coins_mc_min_pct
	pbp_b14d_coins_mc_max_pct
	pbp_b14d_ded_yn
	pbp_b14d_ded_amt
	pbp_b14d_copay_yn
	pbp_b14d_copay_mc_min_amt
	pbp_b14d_copay_mc_max_amt
	pbp_b14d_auth_yn
	pbp_b14d_refer_yn
	pbp_b14e_maxenr_yn
	pbp_b14e_maxenr_ehc
	pbp_b14e_maxenr_amt_glauc
	pbp_b14e_maxenr_per_glauc
	pbp_b14e_maxenr_amt_diab
	pbp_b14e_maxenr_per_diab
	pbp_b14e_maxenr_amt_other
	pbp_b14e_maxenr_per_other
	pbp_b14e_coins_yn
	pbp_b14e_coins_ehc
	pbp_b14e_coins_pct_min_glauc
	pbp_b14e_coins_pct_max_glauc
	pbp_b14e_coins_pct_min_diab
	pbp_b14e_coins_pct_max_diab
	pbp_b14e_coins_pct_min_other
	pbp_b14e_coins_pct_max_other
	pbp_b14e_ded_yn
	pbp_b14e_ded_ehc
	pbp_b14e_ded_amt_glauc
	pbp_b14e_ded_amt_diab
	pbp_b14e_ded_amt_other
	pbp_b14e_copay_yn
	pbp_b14e_copay_ehc
	pbp_b14e_copay_amt_min_glauc
	pbp_b14e_copay_amt_max_glauc
	pbp_b14e_copay_amt_min_diab
	pbp_b14e_copay_amt_max_diab
	pbp_b14e_copay_amt_min_other
	pbp_b14e_copay_amt_max_other
	pbp_b14e_auth_yn_glauc
	pbp_b14e_auth_yn_diab
	pbp_b14e_auth_yn_other
	pbp_b14e_refer_yn
	pbp_b14e_refer_ehc
;


label
	pbp_a_hnumber                    = 'H Number'
	pbp_a_plan_identifier            = 'Plan ID'
	segment_id                       = 'Segment ID'
	pbp_a_ben_cov                    = 'Coverage Criteria'
	pbp_a_plan_type                  = 'Plan Type'
	orgtype                          = 'Organization Type'
	bid_id                           = 'Bid ID'
	version                          = 'Version Number'
	pbp_b14a_mc_prevent_attest       = '14A MC Prevent Srvcs attest'
	pbp_b14a_auth_yn                 = 'Auth required?'
	pbp_b14a_refer_yn                = 'Referral required?'
	pbp_b14b_bendesc_yn              = 'Supp Prevent  Ben Desc YN'
	pbp_b14b_bendesc_rpe_amo         = 'Annual Phys Exams Ben Desc MO'
	pbp_b14b_maxplan_yn              = 'Mammography Max Plan YN'
	pbp_b14b_maxplan_amt             = 'Mammography Max Plan Amt'
	pbp_b14b_maxenr_yn               = 'Immunizations Max Enr YN'
	pbp_b14b_maxenr_amt              = 'Immunizations Max Enr Amt'
	pbp_b14b_coins_yn                = 'Immunizations Coinsurance YN'
	pbp_b14b_coins_pct_rpe_min       = 'Routine Phys Min Coins Pct'
	pbp_b14b_coins_pct_rpe_max       = 'Routine Phys Max Coins Pct'
	pbp_b14b_ded_yn                  = 'Immunizations Deductible YN'
	pbp_b14b_ded_amt                 = 'Immunizations Deductible Amt'
	pbp_b14b_copay_yn                = 'Immunizations Copayment YN'
	pbp_b14b_copay_amt_rpe_min       = 'Routine Phys Min Copay Amt'
	pbp_b14b_copay_amt_rpe_max       = 'Routine Phys Max Copay Amt'
	pbp_b14b_auth_yn                 = 'Supp Prev Srvcs Enrollee Auth'
	pbp_b14b_refer_yn                = 'Immunizations Referral YN'
	pbp_b14c_bendesc_yn              = 'Routine Phys Ben Desc YN'
	pbp_b14c_bendesc_ehc             = 'Health Ed Ben Desc Enhance'
	pbp_b14c_bendesc_amo_hec         = 'Health Ed HEC Ben Desc MO'
	pbp_b14c_bendesc_amo_ntb         = 'Health Ed NTB Ben Desc MO'
	pbp_b14c_bendesc_lim_ntb         = '14C Nut Ben Desc Lim'
	pbp_b14c_bendesc_num_ntb         = '14C Nut Ben Desc Num'
	pbp_b14c_bendesc_dur_ntb         = '14C Nut Ben Desc Dur'
	pbp_b14c_bendesc_amo_sc          = 'Health Ed SC Ben Desc MO'
	pbp_b14c_bendesc_visit_num_sc    = '14C SC Num Visits'
	pbp_b14c_bendesc_amo_mhc         = 'Health Ed MHC Ben Desc MO'
	pbp_b14c_bendesc_amo_edm         = 'Health Ed EDM AMO'
	pbp_b14c_bendesc_amo_tm          = 'Health Ed TM AMO'
	pbp_b14c_bendesc_amo_rat         = 'Health Ed RAT AMO'
	pbp_b14c_rat_bendesc_ehc         = 'b14c RAT benefit select'
	pbp_b14c_bendesc_amo_bsd         = 'BSD BENDESC_AMO Label'
	pbp_b14c_bendesc_amo_cs          = 'CS BENDESC_AMO Label'
	pbp_b14c_bendesc_lim_cs          = '14C CS Ben Desc Lim'
	pbp_b14c_bendesc_num_cs          = '14C CS Ben Desc Num'
	pbp_b14c_bendesc_dur_cs          = '14C CS Ben Desc Dur'
	pbp_b14c_bendesc_dur_num_cs      = '14C CS Dur Num'
	pbp_b14c_bendesc_amo_isa         = 'ISA BENDESC_AMO Label'
	pbp_b14c_bendesc_amo_prs         = 'PRS BENDESC_AMO Label'
	pbp_b14c_bendesc_amo_mnt         = 'MNT BENDESC_AMO Label'
	pbp_b14c_mnt_mcd_yn              = 'AdtlSess MC diseases yn'
	pbp_b14c_mnt_mcd_unit            = 'AdtlSess MC diseases unit'
	pbp_b14c_mnt_mcd_num             = 'AdtlSess MC diseases num'
	pbp_b14c_mnt_nmcd_yn             = 'Coverage NMC diseases'
	pbp_b14c_mnt_nmcd_unit           = 'Coverage NMC diseases unit'
	pbp_b14c_mnt_nmcd_num            = 'Coverage NMC diseases num'
	pbp_b14c_bendesc_amo_imr         = 'IMR BENDESC_AMO Label'
	pbp_b14c_bendesc_amo_rp          = 'RP BENDESC_AMO Label'
	pbp_b14c_rp_bendesc_ehc          = 'B14C RP Benefit List'
	pbp_b14c_rp_bendesc_other        = 'Other RP Service Name'
	pbp_b14c_rp_days                 = 'How many days does your Meal'
	pbp_b14c_rp_max_meals            = 'Max Meals'
	pbp_b14c_bendesc_amo_wig         = 'WIG BENDESC_AMO Label'
	pbp_b14c_bendesc_amo_wm          = 'Weight Mngmt Ben Desc MO'
	pbp_b14c_bendesc_amo_at          = 'AltTherapy Ben Desc MO'
	pbp_b14c_bendesc_lim_at          = '14C AT Ben Desc Lim'
	pbp_b14c_at_visits               = 'B14C Visits AT'
	pbp_b14c_combined_ben            = 'B14c combined ben yn'
	pbp_b14c_maxplan_yn              = 'Max Plan YN'
	pbp_b14c_maxplan_ehc             = '14C Maxplan enhanced bens'
	pbp_b14c_maxplan_amt_hec         = 'HEC Max Plan Amt'
	pbp_b14c_maxplan_per_hec         = 'HEC Max Plan Per'
	pbp_b14c_maxplan_amt_ntb         = 'NTB Max Plan Amt'
	pbp_b14c_maxplan_per_ntb         = 'NTB Max Plan Per'
	pbp_b14c_maxplan_amt_sc          = 'SC Max Plan Amt'
	pbp_b14c_maxplan_per_sc          = 'SC Max Plan Per'
	pbp_b14c_maxplan_amt_mhc         = 'MHC Max Plan Amt'
	pbp_b14c_maxplan_per_mhc         = 'MHC Max Plan Per'
	pbp_b14c_maxplan_amt_edm         = 'EDM Max Plan Amt'
	pbp_b14c_maxplan_per_edm         = 'EDM Max Plan Per'
	pbp_b14c_maxplan_amt_tm          = 'TM Max Plan Amt'
	pbp_b14c_maxplan_per_tm          = 'TM Max Plan Per'
	pbp_b14c_maxplan_amt_rat         = 'RAT Max Plan Amt'
	pbp_b14c_maxplan_per_rat         = 'RAT Max Plan Per'
	pbp_b14c_maxplan_amt_bsd         = 'BSD Max Plan Amt'
	pbp_b14c_maxplan_per_bsd         = 'BSD Max Plan Per'
	pbp_b14c_maxplan_amt_cs          = 'CS Max Plan Amt'
	pbp_b14c_maxplan_per_cs          = 'CS Max Plan Per'
	pbp_b14c_maxplan_amt_isa         = 'ISA Max Plan Amt'
	pbp_b14c_maxplan_per_isa         = 'ISA Max Plan Per'
	pbp_b14c_maxplan_amt_prs         = 'PRS Max Plan Amt'
	pbp_b14c_maxplan_per_prs         = 'PRS Max Plan Per'
	pbp_b14c_maxplan_amt_mnt         = 'MNT Max Plan Amt'
	pbp_b14c_maxplan_per_mnt         = 'MNT Max Plan Per'
	pbp_b14c_maxplan_amt_imr         = 'IMR Max Plan Amt'
	pbp_b14c_maxplan_per_imr         = 'IMR Max Plan Per'
	pbp_b14c_maxplan_amt_rp          = 'RP Max Plan Amt'
	pbp_b14c_maxplan_per_rp          = 'RP Max Plan Per'
	pbp_b14c_maxplan_amt_wig         = 'WIG Max Plan Amt'
	pbp_b14c_maxplan_per_wig         = 'WIG Max Plan Per'
	pbp_b14c_maxplan_amt_wm          = 'WMP Max Plan Amt'
	pbp_b14c_maxplan_per_wm          = 'WMP Max Plan Per'
	pbp_b14c_maxplan_amt_at          = 'ALT Max Plan Amt'
	pbp_b14c_maxplan_per_at          = 'ALT Max Plan Per'
	pbp_b14c_maxenr_yn               = 'Routine Phys Max Enr YN'
	pbp_b14c_maxenr_ehc              = '14C Max Enr enhanced bens'
	pbp_b14c_maxenr_amt_hec          = 'B14c HEC Max Enr Amt'
	pbp_b14c_maxenr_per_hec          = 'B14c HEC Max Enr Per'
	pbp_b14c_maxenr_amt_ntb          = 'B14c NTB Max Enr Amt'
	pbp_b14c_maxenr_per_ntb          = 'B14c NTB Max Enr Per'
	pbp_b14c_maxenr_amt_sc           = 'B14c SC Max Enr Amt'
	pbp_b14c_maxenr_per_sc           = 'B14c SC Max Enr Per'
	pbp_b14c_maxenr_amt_mhc          = 'B14c MHC Max Enr Amt'
	pbp_b14c_maxenr_per_mhc          = 'B14c MHC Max Enr Per'
	pbp_b14c_maxenr_amt_edm          = 'B14c EDM Max Enr Amt'
	pbp_b14c_maxenr_per_edm          = 'B14c EDM Max Enr Per'
	pbp_b14c_maxenr_amt_tm           = 'B14c TM Max Enr Amt'
	pbp_b14c_maxenr_per_tm           = 'B14c TM Max Enr Per'
	pbp_b14c_maxenr_amt_rat          = 'B14c RAT Max Enr Amt'
	pbp_b14c_maxenr_per_rat          = 'B14c RAT Max Enr Per'
	pbp_b14c_maxenr_amt_bsd          = 'B14c BSD Max Enr Amt'
	pbp_b14c_maxenr_per_bsd          = 'B14c BSD Max Enr Per'
	pbp_b14c_maxenr_amt_cs           = 'B14c CS Max Enr Amt'
	pbp_b14c_maxenr_per_cs           = 'B14c CS Max Enr Per'
	pbp_b14c_maxenr_amt_isa          = 'B14c ISA Max Enr Amt'
	pbp_b14c_maxenr_per_isa          = 'B14c ISA Max Enr Per'
	pbp_b14c_maxenr_amt_prs          = 'B14c PRS Max Enr Amt'
	pbp_b14c_maxenr_per_prs          = 'B14c PRS Max Enr Per'
	pbp_b14c_maxenr_amt_mnt          = 'B14c MNT Max Enr Amt'
	pbp_b14c_maxenr_per_mnt          = 'B14c MNT Max Enr Per'
	pbp_b14c_maxenr_amt_imr          = 'B14c IMR Max Enr Amt'
	pbp_b14c_maxenr_per_imr          = 'B14c IMR Max Enr Per'
	pbp_b14c_maxenr_amt_rp           = 'B14c RP Max Enr Amt'
	pbp_b14c_maxenr_per_rp           = 'B14c RP Max Enr Per'
	pbp_b14c_maxenr_amt_wig          = 'B14c WIG Max Enr Amt'
	pbp_b14c_maxenr_per_wig          = 'B14c WIG Max Enr Per'
	pbp_b14c_maxenr_amt_wm           = 'B14c WM Max Enr Amt'
	pbp_b14c_maxenr_per_wm           = 'B14c WM Max Enr Per'
	pbp_b14c_maxenr_amt_at           = 'B14c AT Max Enr Amt'
	pbp_b14c_maxenr_per_at           = 'B14c AT Max Enr Per'
	pbp_b14c_coins_yn                = 'Routine Phys Coinsurance YN'
	pbp_b14c_coins_ehc               = 'B14C Coins Enhance Bens'
	pbp_b14c_coins_pct_min_hec       = 'Health Ed HEC Min Coins Pct'
	pbp_b14c_coins_pct_max_hec       = 'Health Ed HEC Max Coins Pct'
	pbp_b14c_coins_pct_min_ntb       = 'Health Ed NTB Coins min Pct'
	pbp_b14c_coins_pct_max_ntb       = 'Health Ed NTB Coins max Pct'
	pbp_b14c_coins_pct_min_sc        = 'Health Ed SC Coins min Pct'
	pbp_b14c_coins_pct_max_sc        = 'Health Ed SC Coins max Pct'
	pbp_b14c_coins_pct_min_mhc       = 'Health Ed MHC Min Coins Pct'
	pbp_b14c_coins_pct_max_mhc       = 'Health Ed MHC Max Coins Pct'
	pbp_b14c_coins_pct_min_edm       = 'B14C EDM Coinsurance min Pct'
	pbp_b14c_coins_pct_max_edm       = 'B14C EDM Coinsurance max Pct'
	pbp_b14c_coins_pct_min_tm        = 'B14C TM Coinsurance min Pct'
	pbp_b14c_coins_pct_max_tm        = 'B14C TM Coinsurance max Pct'
	pbp_b14c_coins_pct_min_rat       = 'B14C RAT Coinsurance min Pct'
	pbp_b14c_coins_pct_max_rat       = 'B14C RAT Coinsurance max Pct'
	pbp_b14c_coins_pct_min_bsd       = 'BSD COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_bsd       = 'BSD COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_cs        = 'CS COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_cs        = 'CS COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_isa       = 'ISA COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_isa       = 'ISA COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_prs       = 'PRS COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_prs       = 'PRS COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_mnt       = 'MNT COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_mnt       = 'MNT COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_imr       = 'IMR COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_imr       = 'IMR COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_rp        = 'RP COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_rp        = 'RP COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_wig       = 'WIG COINS_PCT_MIN Label'
	pbp_b14c_coins_pct_max_wig       = 'WIG COINS_PCT_MAX Label'
	pbp_b14c_coins_pct_min_wm        = 'WeightManage Min Coins Pct'
	pbp_b14c_coins_pct_max_wm        = 'WeightManage Max Coins Pct'
	pbp_b14c_coins_pct_min_at        = 'AltTherapy Min Coins Pct'
	pbp_b14c_coins_pct_max_at        = 'AltTherapy Max Coins Pct'
	pbp_b14c_ded_yn                  = 'Routine Phys Deductible YN'
	pbp_b14c_ded_amt                 = 'Routine Phys Deductible Amt'
	pbp_b14c_copay_yn                = 'Routine Phys Copayment YN'
	pbp_b14c_copay_ehc               = '14C Copay Enhanced Bens'
	pbp_b14c_copay_hec_min_amt       = 'Health Ed HEC Copay Min Amt'
	pbp_b14c_copay_hec_max_amt       = 'Health Ed HEC Copay Max Amt'
	pbp_b14c_copay_ntb_min_amt       = 'Health Ed NTB Copay min Amt'
	pbp_b14c_copay_ntb_max_amt       = 'Health Ed NTB Copay max Amt'
	pbp_b14c_copay_sc_min_amt        = 'Health Ed SC Copay min Amt'
	pbp_b14c_copay_sc_max_amt        = 'Health Ed SC Copay max Amt'
	pbp_b14c_copay_mhc_min_amt       = 'Health Ed MHC Min Copay Amt'
	pbp_b14c_copay_mhc_max_amt       = 'Health Ed MHC Max Copay Amt'
	pbp_b14c_copay_edm_min_amt       = 'B14C EDM Copayment min Amt'
	pbp_b14c_copay_edm_max_amt       = 'B14C EDM Copayment max Amt'
	pbp_b14c_copay_tm_min_amt        = 'B14C TM Copayment min Amt'
	pbp_b14c_copay_tm_max_amt        = 'B14C TM Copayment max Amt'
	pbp_b14c_copay_rat_min_amt       = 'B14C RAT Copayment min Amt'
	pbp_b14c_copay_rat_max_amt       = 'B14C RAT Copayment max Amt'
	pbp_b14c_copay_bsd_min_amt       = 'BSD COPAY_MIN Label'
	pbp_b14c_copay_bsd_max_amt       = 'BSD COPAY_MAX Label'
	pbp_b14c_copay_cs_min_amt        = 'CS COPAY_MIN Label'
	pbp_b14c_copay_cs_max_amt        = 'CS COPAY_MAX Label'
	pbp_b14c_copay_isa_min_amt       = 'ISA COPAY_MIN Label'
	pbp_b14c_copay_isa_max_amt       = 'ISA COPAY_MAX Label'
	pbp_b14c_copay_prs_min_amt       = 'PRS COPAY_MIN Label'
	pbp_b14c_copay_prs_max_amt       = 'PRS COPAY_MAX Label'
	pbp_b14c_copay_mnt_min_amt       = 'MNT COPAY_MIN Label'
	pbp_b14c_copay_mnt_max_amt       = 'MNT COPAY_MAX Label'
	pbp_b14c_copay_imr_min_amt       = 'IMR COPAY_MIN Label'
	pbp_b14c_copay_imr_max_amt       = 'IMR COPAY_MAX Label'
	pbp_b14c_copay_rp_min_amt        = 'RP COPAY_MIN Label'
	pbp_b14c_copay_rp_max_amt        = 'RP COPAY_MAX Label'
	pbp_b14c_copay_wig_min_amt       = 'WIG COPAY_MIN Label'
	pbp_b14c_copay_wig_max_amt       = 'WIG COPAY_MAX Label'
	pbp_b14c_copay_wm_min_amt        = 'WeightManage Copay Min Amt'
	pbp_b14c_copay_wm_max_amt        = 'WeightManage Copay Max Amt'
	pbp_b14c_copay_at_min_amt        = 'AltTherapy Copay Min Amt'
	pbp_b14c_copay_at_max_amt        = 'AltTherapy Copay Max Amt'
	pbp_b14c_auth_yn                 = 'Routine Phys Enrollee Auth'
	pbp_b14c_refer_yn                = 'Routine Phys Referral YN'
	pbp_b14d_maxenr_yn               = 'Kidney Disease Max Enr YN'
	pbp_b14d_maxenr_amt              = 'Kidney Disease Max Enr Amt'
	pbp_b14d_maxenr_per              = 'Kidney Disease Max Enr Per'
	pbp_b14d_coins_yn                = 'Kideny Dis Coinsurance YN'
	pbp_b14d_coins_mc_min_pct        = 'Kideny Dis MC Min Coins Pct'
	pbp_b14d_coins_mc_max_pct        = 'Kideny Dis MC Max Coins Pct'
	pbp_b14d_ded_yn                  = 'Kideny Dis Deductible YN'
	pbp_b14d_ded_amt                 = 'Kideny Dis Deductible Amt'
	pbp_b14d_copay_yn                = 'Kideny Dis Copayment YN'
	pbp_b14d_copay_mc_min_amt        = 'Kideny Dis MC Min Copay Amt'
	pbp_b14d_copay_mc_max_amt        = 'Kideny DisMC Max Copay Amt'
	pbp_b14d_auth_yn                 = 'Kideny Dis Enrollee Auth'
	pbp_b14d_refer_yn                = 'Kideny Dis Referral YN'
	pbp_b14e_maxenr_yn               = 'Diabetes Mon Max Enr YN'
	pbp_b14e_maxenr_ehc              = 'B14E_MAXENR_BENEFITS'
	pbp_b14e_maxenr_amt_glauc        = '14e Glaucoma Mon Max Enr Amt'
	pbp_b14e_maxenr_per_glauc        = '14e Glaucoma Mon Max Enr Per'
	pbp_b14e_maxenr_amt_diab         = '14e Diabetes Mon Max Enr Amt'
	pbp_b14e_maxenr_per_diab         = '14e Diabetes Mon Max Enr Per'
	pbp_b14e_maxenr_amt_other        = '14e Other Mon Max Enr Amt'
	pbp_b14e_maxenr_per_other        = '14e Other Mon Max Enr Per'
	pbp_b14e_coins_yn                = '14E Coinsurance YN'
	pbp_b14e_coins_ehc               = 'B14E_COIN_BENEFITS'
	pbp_b14e_coins_pct_min_glauc     = 'B14E_COINS_PCT_MIN_GLAUC'
	pbp_b14e_coins_pct_max_glauc     = 'B14E_COINS_PCT_MAX_GLAUC'
	pbp_b14e_coins_pct_min_diab      = 'B14E_COINS_PCT_MIN_DIAB'
	pbp_b14e_coins_pct_max_diab      = 'B14E_COINS_PCT_MAX_DIAB'
	pbp_b14e_coins_pct_min_other     = 'B14E_COINS_PCT_MIN_OTHER'
	pbp_b14e_coins_pct_max_other     = 'B14E_COINS_PCT_MAX_Other'
	pbp_b14e_ded_yn                  = '14E Deductible YN'
	pbp_b14e_ded_ehc                 = 'B14E_DEDUCT_BENEFITS'
	pbp_b14e_ded_amt_glauc           = '14E Glauc Deductible Amt'
	pbp_b14e_ded_amt_diab            = 'B14E_DEDUCT_AMT_DIAB'
	pbp_b14e_ded_amt_other           = 'B14E_DEDUCT_AMT_OTHER'
	pbp_b14e_copay_yn                = 'B14E_COPAY_YN'
	pbp_b14e_copay_ehc               = 'B14E_COPAY_BENEFITS'
	pbp_b14e_copay_amt_min_glauc     = 'B14E_COPAY_MC_MIN_GLAUC'
	pbp_b14e_copay_amt_max_glauc     = 'B14E_COPAY_MC_MAX_AMT_GLAUC'
	pbp_b14e_copay_amt_min_diab      = 'B14E_COPAY_MC_MIN_DIAB'
	pbp_b14e_copay_amt_max_diab      = 'B14E_COPAY_MC_MAX_DIAB'
	pbp_b14e_copay_amt_min_other     = 'B14E_COPAY_MC_MIN_OTHER'
	pbp_b14e_copay_amt_max_other     = 'B14E_COPAY_MC_MAX_OTHER'
	pbp_b14e_auth_yn_glauc           = 'B14E_AUTH_GLAUC'
	pbp_b14e_auth_yn_diab            = 'B14E_AUTH_DIAB'
	pbp_b14e_auth_yn_other           = 'B14E_AUTH_OTHER'
	pbp_b14e_refer_yn                = 'B14E_REFER_YN'
	pbp_b14e_refer_ehc               = 'B14E_REFER_BENEFITS'
;

run;

proc sort data = pbp_b14 out=out.pbp_b14;
  by Pbp_a_hnumber pbp_a_plan_identifier segment_id;
run;

proc print data = out.pbp_b14(obs = 10);
  title 'pbp_b14_preventive file ';
run;

proc means data = out.pbp_b14;
  title 'pbp_b14_preventive file ';
run;

proc freq data = out.pbp_b14;
table
	pbp_a_ben_cov
	pbp_a_plan_type
	orgtype
	pbp_b14a_mc_prevent_attest
	pbp_b14a_auth_yn
	pbp_b14a_refer_yn
	pbp_b14b_bendesc_yn
	pbp_b14b_bendesc_rpe_amo
	pbp_b14b_maxplan_yn
	pbp_b14b_maxenr_yn
	pbp_b14b_coins_yn
	pbp_b14b_ded_yn
	pbp_b14b_copay_yn
	pbp_b14b_auth_yn
	pbp_b14b_refer_yn
	pbp_b14c_bendesc_yn
	pbp_b14c_bendesc_amo_hec
	pbp_b14c_bendesc_amo_ntb
	pbp_b14c_bendesc_lim_ntb
	pbp_b14c_bendesc_dur_ntb
	pbp_b14c_bendesc_amo_sc
	pbp_b14c_bendesc_amo_mhc
	pbp_b14c_bendesc_amo_edm
	pbp_b14c_bendesc_amo_tm
	pbp_b14c_bendesc_amo_rat
	pbp_b14c_rat_bendesc_ehc
	pbp_b14c_bendesc_amo_bsd
	pbp_b14c_bendesc_amo_cs
	pbp_b14c_bendesc_lim_cs
	pbp_b14c_bendesc_dur_cs
	pbp_b14c_bendesc_amo_isa
	pbp_b14c_bendesc_amo_prs
	pbp_b14c_bendesc_amo_mnt
	pbp_b14c_mnt_mcd_yn
	pbp_b14c_mnt_mcd_unit
	pbp_b14c_mnt_nmcd_yn
	pbp_b14c_mnt_nmcd_unit
	pbp_b14c_bendesc_amo_imr
	pbp_b14c_bendesc_amo_rp
	pbp_b14c_rp_bendesc_ehc
	pbp_b14c_bendesc_amo_wig
	pbp_b14c_bendesc_amo_wm
	pbp_b14c_bendesc_amo_at
	pbp_b14c_bendesc_lim_at
	pbp_b14c_combined_ben
	pbp_b14c_maxplan_yn
	pbp_b14c_maxplan_per_hec
	pbp_b14c_maxplan_per_ntb
	pbp_b14c_maxplan_per_sc
	pbp_b14c_maxplan_per_mhc
	pbp_b14c_maxplan_per_edm
	pbp_b14c_maxplan_per_tm
	pbp_b14c_maxplan_per_rat
	pbp_b14c_maxplan_per_bsd
	pbp_b14c_maxplan_per_cs
	pbp_b14c_maxplan_per_isa
	pbp_b14c_maxplan_per_prs
	pbp_b14c_maxplan_per_mnt
	pbp_b14c_maxplan_per_imr
	pbp_b14c_maxplan_per_rp
	pbp_b14c_maxplan_per_wig
	pbp_b14c_maxplan_per_wm
	pbp_b14c_maxplan_per_at
	pbp_b14c_maxenr_yn
	pbp_b14c_maxenr_per_hec
	pbp_b14c_maxenr_per_ntb
	pbp_b14c_maxenr_per_sc
	pbp_b14c_maxenr_per_mhc
	pbp_b14c_maxenr_per_edm
	pbp_b14c_maxenr_per_tm
	pbp_b14c_maxenr_per_rat
	pbp_b14c_maxenr_per_bsd
	pbp_b14c_maxenr_per_cs
	pbp_b14c_maxenr_per_isa
	pbp_b14c_maxenr_per_prs
	pbp_b14c_maxenr_per_mnt
	pbp_b14c_maxenr_per_imr
	pbp_b14c_maxenr_per_rp
	pbp_b14c_maxenr_per_wig
	pbp_b14c_maxenr_per_wm
	pbp_b14c_maxenr_per_at
	pbp_b14c_coins_yn
	pbp_b14c_ded_yn
	pbp_b14c_copay_yn
	pbp_b14c_auth_yn
	pbp_b14c_refer_yn
	pbp_b14d_maxenr_yn
	pbp_b14d_maxenr_per
	pbp_b14d_coins_yn
	pbp_b14d_ded_yn
	pbp_b14d_copay_yn
	pbp_b14d_auth_yn
	pbp_b14d_refer_yn
	pbp_b14e_maxenr_yn
	pbp_b14e_maxenr_ehc
	pbp_b14e_maxenr_per_glauc
	pbp_b14e_maxenr_per_diab
	pbp_b14e_maxenr_per_other
	pbp_b14e_coins_yn
	pbp_b14e_coins_ehc
	pbp_b14e_ded_yn
	pbp_b14e_ded_ehc
	pbp_b14e_copay_yn
	pbp_b14e_copay_ehc
	pbp_b14e_auth_yn_glauc
	pbp_b14e_auth_yn_diab
	pbp_b14e_auth_yn_other
	pbp_b14e_refer_yn
	pbp_b14e_refer_ehc
/ missing;
run;

proc contents data = out.pbp_b14;
  title 'pbp_b14 data';
run;