*pbp_b2_b19b_snf_vbid_uf.sas;

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

data pbp_b2_b19b_vbid;

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_vbid_group_id                $2
	pbp_b2_bendesc_yn                $1
	pbp_b2_bendesc_ad_nmcs           $2
	pbp_b2_bendesc_amo_ad            $1
	pbp_b2_benedesc_lim_ad           $1
	pbp_b2_bendesc_amo_nmcs          $1
	pbp_b2_bendesc_pr_hosp_yn        $1
	pbp_b2_bendesc_pr_hosp_num       $1
	pbp_b2_maxenr_yn                 $1
	pbp_b2_maxenr_per                $1
	pbp_b2_cost_vary_tiers_yn        $1
	pbp_b2_cost_vary_low_tier        $1
	pbp_b2_coins_yn                  $1
	pbp_b2_mc_coins_cstshr_yn_t1     $1
	pbp_b2_coins_mcs_int_num_t1      $1
	pbp_b2_mc_coins_cstshr_yn_t2     $1
	pbp_b2_coins_mcs_int_num_t2      $1
	pbp_b2_mc_coins_cstshr_yn_t3     $1
	pbp_b2_coins_mcs_int_num_t3      $1
	pbp_b2_ad_cost_vary_tiers_yn     $1
	pbp_b2_ad_cost_vary_low_tier     $1
	pbp_b2_coins_ad_intrvl_num_t1    $1
	pbp_b2_coins_ad_intrvl_num_t2    $1
	pbp_b2_coins_ad_intrvl_num_t3    $1
	pbp_b2_coins_nmcs_struc_yn       $1
	pbp_b2_coins_nmcs_intrvl_num     $1
	pbp_b2_ded_yn                    $1
	pbp_b2_copay_yn                  $1
	pbp_b2_mc_copay_cstshr_yn_t1     $1
	pbp_b2_copay_mcs_int_num_t1      $1
	pbp_b2_mc_copay_cstshr_yn_t2     $1
	pbp_b2_copay_mcs_int_num_t2      $1
	pbp_b2_mc_copay_cstshr_yn_t3     $1
	pbp_b2_copay_mcs_int_num_t3      $1
	pbp_b2_copay_ad_intrvl_num_t1    $1
	pbp_b2_copay_ad_intrvl_num_t2    $1
	pbp_b2_copay_ad_intrvl_num_t3    $1
	pbp_b2_copay_nmcs_struc_yn       $1
	pbp_b2_copay_nmcs_intrvl_num     $1
	pbp_b2_hosp_ben_period           $1
	pbp_b2_hosp_ben_period_oth       $72
	pbp_b2_cost_discharge_yn         $1
	pbp_b2_auth_yn                   $1
	pbp_b2_refer_yn                  $1
;

infile '.\pbp\pbp_b2_b19b_snf_vbid_uf.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_vbid_group_id
	pbp_b2_bendesc_yn
	pbp_b2_bendesc_ad_nmcs
	pbp_b2_bendesc_amo_ad
	pbp_b2_benedesc_lim_ad
	pbp_b2_bendesc_ad
	pbp_b2_bendesc_amo_nmcs
	pbp_b2_bendesc_pr_hosp_yn
	pbp_b2_bendesc_pr_hosp_num
	pbp_b2_maxenr_yn
	pbp_b2_maxenr_amt
	pbp_b2_maxenr_per
	pbp_b2_cost_vary_tiers_yn
	pbp_b2_cost_vary_tier_num
	pbp_b2_cost_vary_low_tier
	pbp_b2_coins_yn
	pbp_b2_mc_coins_cstshr_yn_t1
	pbp_b2_coins_mcs_pct_t1
	pbp_b2_coins_mcs_int_num_t1
	pbp_b2_coins_mcs_pct_int1_t1
	pbp_b2_coins_mcs_bgnd_int1_t1
	pbp_b2_coins_mcs_endd_int1_t1
	pbp_b2_coins_mcs_pct_int2_t1
	pbp_b2_coins_mcs_bgnd_int2_t1
	pbp_b2_coins_mcs_endd_int2_t1
	pbp_b2_coins_mcs_pct_int3_t1
	pbp_b2_coins_mcs_bgnd_int3_t1
	pbp_b2_coins_mcs_endd_int3_t1
	pbp_b2_mc_coins_cstshr_yn_t2
	pbp_b2_coins_mcs_pct_t2
	pbp_b2_coins_mcs_int_num_t2
	pbp_b2_coins_mcs_pct_int1_t2
	pbp_b2_coins_mcs_bgnd_int1_t2
	pbp_b2_coins_mcs_endd_int1_t2
	pbp_b2_coins_mcs_pct_int2_t2
	pbp_b2_coins_mcs_bgnd_int2_t2
	pbp_b2_coins_mcs_endd_int2_t2
	pbp_b2_coins_mcs_pct_int3_t2
	pbp_b2_coins_mcs_bgnd_int3_t2
	pbp_b2_coins_mcs_endd_int3_t2
	pbp_b2_mc_coins_cstshr_yn_t3
	pbp_b2_coins_mcs_pct_t3
	pbp_b2_coins_mcs_int_num_t3
	pbp_b2_coins_mcs_pct_int1_t3
	pbp_b2_coins_mcs_bgnd_int1_t3
	pbp_b2_coins_mcs_endd_int1_t3
	pbp_b2_coins_mcs_pct_int2_t3
	pbp_b2_coins_mcs_bgnd_int2_t3
	pbp_b2_coins_mcs_endd_int2_t3
	pbp_b2_coins_mcs_pct_int3_t3
	pbp_b2_coins_mcs_bgnd_int3_t3
	pbp_b2_coins_mcs_endd_int3_t3
	pbp_b2_ad_cost_vary_tiers_yn
	pbp_b2_ad_cost_vary_tier_num
	pbp_b2_ad_cost_vary_low_tier
	pbp_b2_coins_ad_intrvl_num_t1
	pbp_b2_coins_ad_pct_int1_t1
	pbp_b2_coins_ad_bgnd_int1_t1
	pbp_b2_coins_ad_endd_int1_t1
	pbp_b2_coins_ad_pct_int2_t1
	pbp_b2_coins_ad_bgnd_int2_t1
	pbp_b2_coins_ad_endd_int2_t1
	pbp_b2_coins_ad_pct_int3_t1
	pbp_b2_coins_ad_bgnd_int3_t1
	pbp_b2_coins_ad_endd_int3_t1
	pbp_b2_coins_ad_intrvl_num_t2
	pbp_b2_coins_ad_pct_int1_t2
	pbp_b2_coins_ad_bgnd_int1_t2
	pbp_b2_coins_ad_endd_int1_t2
	pbp_b2_coins_ad_pct_int2_t2
	pbp_b2_coins_ad_bgnd_int2_t2
	pbp_b2_coins_ad_endd_int2_t2
	pbp_b2_coins_ad_pct_int3_t2
	pbp_b2_coins_ad_bgnd_int3_t2
	pbp_b2_coins_ad_endd_int3_t2
	pbp_b2_coins_ad_intrvl_num_t3
	pbp_b2_coins_ad_pct_int1_t3
	pbp_b2_coins_ad_bgnd_int1_t3
	pbp_b2_coins_ad_endd_int1_t3
	pbp_b2_coins_ad_pct_int2_t3
	pbp_b2_coins_ad_bgnd_int2_t3
	pbp_b2_coins_ad_endd_int2_t3
	pbp_b2_coins_ad_pct_int3_t3
	pbp_b2_coins_ad_bgnd_int3_t3
	pbp_b2_coins_ad_endd_int3_t3
	pbp_b2_coins_nmcs_struc_yn
	pbp_b2_coins_nmcs_pct
	pbp_b2_coins_nmcs_intrvl_num
	pbp_b2_coins_nmcs_pct_intrvl1
	pbp_b2_coins_nmcs_bgnd_intrvl1
	pbp_b2_coins_nmcs_endd_intrvl1
	pbp_b2_coins_nmcs_pct_intrvl2
	pbp_b2_coins_nmcs_bgnd_intrvl2
	pbp_b2_coins_nmcs_endd_intrvl2
	pbp_b2_coins_nmcs_pct_intrvl3
	pbp_b2_coins_nmcs_bgnd_intrvl3
	pbp_b2_coins_nmcs_endd_intrvl3
	pbp_b2_ded_yn
	pbp_b2_ded_amt_t1
	pbp_b2_ded_amt_t2
	pbp_b2_ded_amt_t3
	pbp_b2_copay_yn
	pbp_b2_mc_copay_cstshr_yn_t1
	pbp_b2_copay_mcs_amt_t1
	pbp_b2_copay_mcs_int_num_t1
	pbp_b2_copay_mcs_amt_int1_t1
	pbp_b2_copay_mcs_bgnd_int1_t1
	pbp_b2_copay_mcs_endd_int1_t1
	pbp_b2_copay_mcs_amt_int2_t1
	pbp_b2_copay_mcs_bgnd_int2_t1
	pbp_b2_copay_mcs_endd_int2_t1
	pbp_b2_copay_mcs_amt_int3_t1
	pbp_b2_copay_mcs_bgnd_int3_t1
	pbp_b2_copay_mcs_endd_int3_t1
	pbp_b2_mc_copay_cstshr_yn_t2
	pbp_b2_copay_mcs_amt_t2
	pbp_b2_copay_mcs_int_num_t2
	pbp_b2_copay_mcs_amt_int1_t2
	pbp_b2_copay_mcs_bgnd_int1_t2
	pbp_b2_copay_mcs_endd_int1_t2
	pbp_b2_copay_mcs_amt_int2_t2
	pbp_b2_copay_mcs_bgnd_int2_t2
	pbp_b2_copay_mcs_endd_int2_t2
	pbp_b2_copay_mcs_amt_int3_t2
	pbp_b2_copay_mcs_bgnd_int3_t2
	pbp_b2_copay_mcs_endd_int3_t2
	pbp_b2_mc_copay_cstshr_yn_t3
	pbp_b2_copay_mcs_amt_t3
	pbp_b2_copay_mcs_int_num_t3
	pbp_b2_copay_mcs_amt_int1_t3
	pbp_b2_copay_mcs_bgnd_int1_t3
	pbp_b2_copay_mcs_endd_int1_t3
	pbp_b2_copay_mcs_amt_int2_t3
	pbp_b2_copay_mcs_bgnd_int2_t3
	pbp_b2_copay_mcs_endd_int2_t3
	pbp_b2_copay_mcs_amt_int3_t3
	pbp_b2_copay_mcs_bgnd_int3_t3
	pbp_b2_copay_mcs_endd_int3_t3
	pbp_b2_copay_ad_intrvl_num_t1
	pbp_b2_copay_ad_amt_int1_t1
	pbp_b2_copay_ad_bgnd_int1_t1
	pbp_b2_copay_ad_endd_int1_t1
	pbp_b2_copay_ad_amt_int2_t1
	pbp_b2_copay_ad_bgnd_int2_t1
	pbp_b2_copay_ad_endd_int2_t1
	pbp_b2_copay_ad_amt_int3_t1
	pbp_b2_copay_ad_bgnd_int3_t1
	pbp_b2_copay_ad_endd_int3_t1
	pbp_b2_copay_ad_intrvl_num_t2
	pbp_b2_copay_ad_amt_int1_t2
	pbp_b2_copay_ad_bgnd_int1_t2
	pbp_b2_copay_ad_endd_int1_t2
	pbp_b2_copay_ad_amt_int2_t2
	pbp_b2_copay_ad_bgnd_int2_t2
	pbp_b2_copay_ad_endd_int2_t2
	pbp_b2_copay_ad_amt_int3_t2
	pbp_b2_copay_ad_bgnd_int3_t2
	pbp_b2_copay_ad_endd_int3_t2
	pbp_b2_copay_ad_intrvl_num_t3
	pbp_b2_copay_ad_amt_int1_t3
	pbp_b2_copay_ad_bgnd_int1_t3
	pbp_b2_copay_ad_endd_int1_t3
	pbp_b2_copay_ad_amt_int2_t3
	pbp_b2_copay_ad_bgnd_int2_t3
	pbp_b2_copay_ad_endd_int2_t3
	pbp_b2_copay_ad_amt_int3_t3
	pbp_b2_copay_ad_bgnd_int3_t3
	pbp_b2_copay_ad_endd_int3_t3
	pbp_b2_copay_nmcs_struc_yn
	pbp_b2_copay_nmcs_amt
	pbp_b2_copay_nmcs_intrvl_num
	pbp_b2_copay_nmcs_amt_intrvl1
	pbp_b2_copay_nmcs_bgnd_intrvl1
	pbp_b2_copay_nmcs_endd_intrvl1
	pbp_b2_copay_nmcs_amt_intrvl2
	pbp_b2_copay_nmcs_bgnd_intrvl2
	pbp_b2_copay_nmcs_endd_intrvl2
	pbp_b2_copay_nmcs_amt_intrvl3
	pbp_b2_copay_nmcs_bgnd_intrvl3
	pbp_b2_copay_nmcs_endd_intrvl3
	pbp_b2_hosp_ben_period
	pbp_b2_hosp_ben_period_oth
	pbp_b2_cost_discharge_yn
	pbp_b2_auth_yn
	pbp_b2_refer_yn
;


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_vbid_group_id                = 'B19 VBID Group (Package) ID'
	pbp_b2_bendesc_yn                = 'SNF Ben Desc MO YN'
	pbp_b2_bendesc_ad_nmcs           = 'SNF Ben Desc Enhance'
	pbp_b2_bendesc_amo_ad            = 'SNF Ben Desc MO AD'
	pbp_b2_benedesc_lim_ad           = 'SNF Ben Desc AD LIM YN'
	pbp_b2_bendesc_ad                = 'SNF Ben Desc AD Num'
	pbp_b2_bendesc_amo_nmcs          = 'SNF Ben Desc MO NMCS'
	pbp_b2_bendesc_pr_hosp_yn        = 'SNF Ben Desc <3 Day Prior YN'
	pbp_b2_bendesc_pr_hosp_num       = 'SNF Ben Desc Num of Days 0-2'
	pbp_b2_maxenr_yn                 = 'SNF Max Enr YN'
	pbp_b2_maxenr_amt                = 'SNF Max Enr Amt'
	pbp_b2_maxenr_per                = 'SNF Max Enr Per'
	pbp_b2_cost_vary_tiers_yn        = 'Cost Share Tiers Vary YN'
	pbp_b2_cost_vary_tier_num        = 'Cost Sharing Tiers'
	pbp_b2_cost_vary_low_tier        = 'Cost Share Tier Vary Low Num'
	pbp_b2_coins_yn                  = 'SNF Coinsurance YN'
	pbp_b2_mc_coins_cstshr_yn_t1     = 'SNF Med Def Coins Cost Shrs YN'
	pbp_b2_coins_mcs_pct_t1          = 'SNF Coins MCS Pct'
	pbp_b2_coins_mcs_int_num_t1      = 'SNF MCS Coins Interval Num'
	pbp_b2_coins_mcs_pct_int1_t1     = 'SNF MCS Coins Pct Interval 1'
	pbp_b2_coins_mcs_bgnd_int1_t1    = 'SNF MCS Coins Bgn Day Intrvl 1'
	pbp_b2_coins_mcs_endd_int1_t1    = 'SNF MCS Coins End Day Intrvl 1'
	pbp_b2_coins_mcs_pct_int2_t1     = 'SNF MCS Coins Pct Interval 2'
	pbp_b2_coins_mcs_bgnd_int2_t1    = 'SNF MCS Coins Bgn Day Intrvl 2'
	pbp_b2_coins_mcs_endd_int2_t1    = 'SNF MCS Coins End Day Intrvl 2'
	pbp_b2_coins_mcs_pct_int3_t1     = 'SNF MCS Coins Pct Interval 3'
	pbp_b2_coins_mcs_bgnd_int3_t1    = 'SNF MCS Coins Bgn Day Intrvl 3'
	pbp_b2_coins_mcs_endd_int3_t1    = 'SNF MCS Coins End Day Intrvl 3'
	pbp_b2_mc_coins_cstshr_yn_t2     = 'SNF Med Def Coins Cost Shrs YN'
	pbp_b2_coins_mcs_pct_t2          = 'SNF Coins MCS Pct'
	pbp_b2_coins_mcs_int_num_t2      = 'SNF MCS Coins Interval Num'
	pbp_b2_coins_mcs_pct_int1_t2     = 'SNF MCS Coins Pct Interval 1'
	pbp_b2_coins_mcs_bgnd_int1_t2    = 'SNF MCS Coins Bgn Day Intrvl 1'
	pbp_b2_coins_mcs_endd_int1_t2    = 'SNF MCS Coins End Day Intrvl 1'
	pbp_b2_coins_mcs_pct_int2_t2     = 'SNF MCS Coins Pct Interval 2'
	pbp_b2_coins_mcs_bgnd_int2_t2    = 'SNF MCS Coins Bgn Day Intrvl 2'
	pbp_b2_coins_mcs_endd_int2_t2    = 'SNF MCS Coins End Day Intrvl 2'
	pbp_b2_coins_mcs_pct_int3_t2     = 'SNF MCS Coins Pct Interval 3'
	pbp_b2_coins_mcs_bgnd_int3_t2    = 'SNF MCS Coins Bgn Day Intrvl 3'
	pbp_b2_coins_mcs_endd_int3_t2    = 'SNF MCS Coins End Day Intrvl 3'
	pbp_b2_mc_coins_cstshr_yn_t3     = 'SNF Med Def Coins Cost Shrs YN'
	pbp_b2_coins_mcs_pct_t3          = 'SNF Coins MCS Pct'
	pbp_b2_coins_mcs_int_num_t3      = 'SNF MCS Coins Interval Num'
	pbp_b2_coins_mcs_pct_int1_t3     = 'SNF MCS Coins Pct Interval 1'
	pbp_b2_coins_mcs_bgnd_int1_t3    = 'SNF MCS Coins Bgn Day Intrvl 1'
	pbp_b2_coins_mcs_endd_int1_t3    = 'SNF MCS Coins End Day Intrvl 1'
	pbp_b2_coins_mcs_pct_int2_t3     = 'SNF MCS Coins Pct Interval 2'
	pbp_b2_coins_mcs_bgnd_int2_t3    = 'SNF MCS Coins Bgn Day Intrvl 2'
	pbp_b2_coins_mcs_endd_int2_t3    = 'SNF MCS Coins End Day Intrvl 2'
	pbp_b2_coins_mcs_pct_int3_t3     = 'SNF MCS Coins Pct Interval 3'
	pbp_b2_coins_mcs_bgnd_int3_t3    = 'SNF MCS Coins Bgn Day Intrvl 3'
	pbp_b2_coins_mcs_endd_int3_t3    = 'SNF MCS Coins End Day Intrvl 3'
	pbp_b2_ad_cost_vary_tiers_yn     = 'AD Cost Share Tiers Vary YN'
	pbp_b2_ad_cost_vary_tier_num     = 'AD Cost Sharing Tiers'
	pbp_b2_ad_cost_vary_low_tier     = 'AD CostShareTier Vary Low Num'
	pbp_b2_coins_ad_intrvl_num_t1    = 'SNF AD Coins Interval Num'
	pbp_b2_coins_ad_pct_int1_t1      = 'SNF AD Coins Pct Interval 1'
	pbp_b2_coins_ad_bgnd_int1_t1     = 'SNF AD Coins Bgn Day Intrvl 1'
	pbp_b2_coins_ad_endd_int1_t1     = 'SNF AD Coins End Day Intrvl 1'
	pbp_b2_coins_ad_pct_int2_t1      = 'SNF AD Coins Pct Interval 2'
	pbp_b2_coins_ad_bgnd_int2_t1     = 'SNF AD Coins Bgn Day Intrvl 2'
	pbp_b2_coins_ad_endd_int2_t1     = 'SNF AD Coins End Day Intrvl 2'
	pbp_b2_coins_ad_pct_int3_t1      = 'SNF AD Coins Pct Interval 3'
	pbp_b2_coins_ad_bgnd_int3_t1     = 'SNF AD Coins Bgn Day Intrvl 3'
	pbp_b2_coins_ad_endd_int3_t1     = 'SNF AD Coins End Day Intrvl 3'
	pbp_b2_coins_ad_intrvl_num_t2    = 'SNF AD Coins Interval Num'
	pbp_b2_coins_ad_pct_int1_t2      = 'SNF AD Coins Pct Interval 1'
	pbp_b2_coins_ad_bgnd_int1_t2     = 'SNF AD Coins Bgn Day Intrvl 1'
	pbp_b2_coins_ad_endd_int1_t2     = 'SNF AD Coins End Day Intrvl 1'
	pbp_b2_coins_ad_pct_int2_t2      = 'SNF AD Coins Pct Interval 2'
	pbp_b2_coins_ad_bgnd_int2_t2     = 'SNF AD Coins Bgn Day Intrvl 2'
	pbp_b2_coins_ad_endd_int2_t2     = 'SNF AD Coins End Day Intrvl 2'
	pbp_b2_coins_ad_pct_int3_t2      = 'SNF AD Coins Pct Interval 3'
	pbp_b2_coins_ad_bgnd_int3_t2     = 'SNF AD Coins Bgn Day Intrvl 3'
	pbp_b2_coins_ad_endd_int3_t2     = 'SNF AD Coins End Day Intrvl 3'
	pbp_b2_coins_ad_intrvl_num_t3    = 'SNF AD Coins Interval Num'
	pbp_b2_coins_ad_pct_int1_t3      = 'SNF AD Coins Pct Interval 1'
	pbp_b2_coins_ad_bgnd_int1_t3     = 'SNF AD Coins Bgn Day Intrvl 1'
	pbp_b2_coins_ad_endd_int1_t3     = 'SNF AD Coins End Day Intrvl 1'
	pbp_b2_coins_ad_pct_int2_t3      = 'SNF AD Coins Pct Interval 2'
	pbp_b2_coins_ad_bgnd_int2_t3     = 'SNF AD Coins Bgn Day Intrvl 2'
	pbp_b2_coins_ad_endd_int2_t3     = 'SNF AD Coins End Day Intrvl 2'
	pbp_b2_coins_ad_pct_int3_t3      = 'SNF AD Coins Pct Interval 3'
	pbp_b2_coins_ad_bgnd_int3_t3     = 'SNF AD Coins Bgn Day Intrvl 3'
	pbp_b2_coins_ad_endd_int3_t3     = 'SNF AD Coins End Day Intrvl 3'
	pbp_b2_coins_nmcs_struc_yn       = 'SNF NMCS Coins Structure YN'
	pbp_b2_coins_nmcs_pct            = 'SNF NMCS Coins Percent'
	pbp_b2_coins_nmcs_intrvl_num     = 'SNF NMCS Coins Interval Num'
	pbp_b2_coins_nmcs_pct_intrvl1    = 'SNF NMCS Coins Pct Interval 1'
	pbp_b2_coins_nmcs_bgnd_intrvl1   = 'SNF NMCS Coins BgnDay Intrvl 1'
	pbp_b2_coins_nmcs_endd_intrvl1   = 'SNF NMCS Coins EndDay Intrvl 1'
	pbp_b2_coins_nmcs_pct_intrvl2    = 'SNF NMCS Coins Pct Interval 2'
	pbp_b2_coins_nmcs_bgnd_intrvl2   = 'SNF NMCS Coins BgnDay Intrvl 2'
	pbp_b2_coins_nmcs_endd_intrvl2   = 'SNF NMCS Coins EndDay Intrvl 2'
	pbp_b2_coins_nmcs_pct_intrvl3    = 'SNF NMCS Coins Pct Interval 3'
	pbp_b2_coins_nmcs_bgnd_intrvl3   = 'SNF NMCS Coins BgnDay Intrvl 3'
	pbp_b2_coins_nmcs_endd_intrvl3   = 'SNF NMCS Coins EndDay Intrvl 3'
	pbp_b2_ded_yn                    = 'SNF Deductible YN'
	pbp_b2_ded_amt_t1                = 'SNF Deductible Amt T1'
	pbp_b2_ded_amt_t2                = 'SNF Deductible Amt T2'
	pbp_b2_ded_amt_t3                = 'SNF Deductible Amt T3'
	pbp_b2_copay_yn                  = 'SNF Copayment YN'
	pbp_b2_mc_copay_cstshr_yn_t1     = 'SNF Med Def Copay Cost Shrs YN'
	pbp_b2_copay_mcs_amt_t1          = 'SNF Copay MC Stay Amt'
	pbp_b2_copay_mcs_int_num_t1      = 'SNF MCS Copay Interval Num'
	pbp_b2_copay_mcs_amt_int1_t1     = 'SNF MCS Copay Amt Interval 1'
	pbp_b2_copay_mcs_bgnd_int1_t1    = 'SNF MCS Copay Bgn Day Intrvl 1'
	pbp_b2_copay_mcs_endd_int1_t1    = 'SNF MCS Copay End Day Intrvl 1'
	pbp_b2_copay_mcs_amt_int2_t1     = 'SNF MCS Copay Amt Interval 2'
	pbp_b2_copay_mcs_bgnd_int2_t1    = 'SNF MCS Copay Bgn Day Intrvl 2'
	pbp_b2_copay_mcs_endd_int2_t1    = 'SNF MCS Copay End Day Intrvl 2'
	pbp_b2_copay_mcs_amt_int3_t1     = 'SNF MCS Copay Amt Interval 3'
	pbp_b2_copay_mcs_bgnd_int3_t1    = 'SNF MCS Copay Bgn Day Intrvl 3'
	pbp_b2_copay_mcs_endd_int3_t1    = 'SNF MCS Copay End Day Intrvl 3'
	pbp_b2_mc_copay_cstshr_yn_t2     = 'SNF Med Def Copay Cost Shrs YN'
	pbp_b2_copay_mcs_amt_t2          = 'SNF Copay MC Stay Amt'
	pbp_b2_copay_mcs_int_num_t2      = 'SNF MCS Copay Interval Num'
	pbp_b2_copay_mcs_amt_int1_t2     = 'SNF MCS Copay Amt Interval 1'
	pbp_b2_copay_mcs_bgnd_int1_t2    = 'SNF MCS Copay Bgn Day Intrvl 1'
	pbp_b2_copay_mcs_endd_int1_t2    = 'SNF MCS Copay End Day Intrvl 1'
	pbp_b2_copay_mcs_amt_int2_t2     = 'SNF MCS Copay Amt Interval 2'
	pbp_b2_copay_mcs_bgnd_int2_t2    = 'SNF MCS Copay Bgn Day Intrvl 2'
	pbp_b2_copay_mcs_endd_int2_t2    = 'SNF MCS Copay End Day Intrvl 2'
	pbp_b2_copay_mcs_amt_int3_t2     = 'SNF MCS Copay Amt Interval 3'
	pbp_b2_copay_mcs_bgnd_int3_t2    = 'SNF MCS Copay Bgn Day Intrvl 3'
	pbp_b2_copay_mcs_endd_int3_t2    = 'SNF MCS Copay End Day Intrvl 3'
	pbp_b2_mc_copay_cstshr_yn_t3     = 'SNF Med Def Copay Cost Shrs YN'
	pbp_b2_copay_mcs_amt_t3          = 'SNF Copay MC Stay Amt'
	pbp_b2_copay_mcs_int_num_t3      = 'SNF MCS Copay Interval Num'
	pbp_b2_copay_mcs_amt_int1_t3     = 'SNF MCS Copay Amt Interval 1'
	pbp_b2_copay_mcs_bgnd_int1_t3    = 'SNF MCS Copay Bgn Day Intrvl 1'
	pbp_b2_copay_mcs_endd_int1_t3    = 'SNF MCS Copay End Day Intrvl 1'
	pbp_b2_copay_mcs_amt_int2_t3     = 'SNF MCS Copay Amt Interval 2'
	pbp_b2_copay_mcs_bgnd_int2_t3    = 'SNF MCS Copay Bgn Day Intrvl 2'
	pbp_b2_copay_mcs_endd_int2_t3    = 'SNF MCS Copay End Day Intrvl 2'
	pbp_b2_copay_mcs_amt_int3_t3     = 'SNF MCS Copay Amt Interval 3'
	pbp_b2_copay_mcs_bgnd_int3_t3    = 'SNF MCS Copay Bgn Day Intrvl 3'
	pbp_b2_copay_mcs_endd_int3_t3    = 'SNF MCS Copay End Day Intrvl 3'
	pbp_b2_copay_ad_intrvl_num_t1    = 'SNF AD Copay Interval Num'
	pbp_b2_copay_ad_amt_int1_t1      = 'SNF AD Copay Amt Interval 1'
	pbp_b2_copay_ad_bgnd_int1_t1     = 'SNF AD Copay Bgn Day Intrvl 1'
	pbp_b2_copay_ad_endd_int1_t1     = 'SNF AD Copay End Day Intrvl 1'
	pbp_b2_copay_ad_amt_int2_t1      = 'SNF AD Copay Amt Interval 2'
	pbp_b2_copay_ad_bgnd_int2_t1     = 'SNF AD Copay Bgn Day Intrvl 2'
	pbp_b2_copay_ad_endd_int2_t1     = 'SNF AD Copay End Day Intrvl 2'
	pbp_b2_copay_ad_amt_int3_t1      = 'SNF AD Copay Amt Interval 3'
	pbp_b2_copay_ad_bgnd_int3_t1     = 'SNF AD Copay Bgn Day Intrvl 3'
	pbp_b2_copay_ad_endd_int3_t1     = 'SNF AD Copay End Day Intrvl 3'
	pbp_b2_copay_ad_intrvl_num_t2    = 'SNF AD Copay Interval Num'
	pbp_b2_copay_ad_amt_int1_t2      = 'SNF AD Copay Amt Interval 1'
	pbp_b2_copay_ad_bgnd_int1_t2     = 'SNF AD Copay Bgn Day Intrvl 1'
	pbp_b2_copay_ad_endd_int1_t2     = 'SNF AD Copay End Day Intrvl 1'
	pbp_b2_copay_ad_amt_int2_t2      = 'SNF AD Copay Amt Interval 2'
	pbp_b2_copay_ad_bgnd_int2_t2     = 'SNF AD Copay Bgn Day Intrvl 2'
	pbp_b2_copay_ad_endd_int2_t2     = 'SNF AD Copay End Day Intrvl 2'
	pbp_b2_copay_ad_amt_int3_t2      = 'SNF AD Copay Amt Interval 3'
	pbp_b2_copay_ad_bgnd_int3_t2     = 'SNF AD Copay Bgn Day Intrvl 3'
	pbp_b2_copay_ad_endd_int3_t2     = 'SNF AD Copay End Day Intrvl 3'
	pbp_b2_copay_ad_intrvl_num_t3    = 'SNF AD Copay Interval Num'
	pbp_b2_copay_ad_amt_int1_t3      = 'SNF AD Copay Amt Interval 1'
	pbp_b2_copay_ad_bgnd_int1_t3     = 'SNF AD Copay Bgn Day Intrvl 1'
	pbp_b2_copay_ad_endd_int1_t3     = 'SNF AD Copay End Day Intrvl 1'
	pbp_b2_copay_ad_amt_int2_t3      = 'SNF AD Copay Amt Interval 2'
	pbp_b2_copay_ad_bgnd_int2_t3     = 'SNF AD Copay Bgn Day Intrvl 2'
	pbp_b2_copay_ad_endd_int2_t3     = 'SNF AD Copay End Day Intrvl 2'
	pbp_b2_copay_ad_amt_int3_t3      = 'SNF AD Copay Amt Interval 3'
	pbp_b2_copay_ad_bgnd_int3_t3     = 'SNF AD Copay Bgn Day Intrvl 3'
	pbp_b2_copay_ad_endd_int3_t3     = 'SNF AD Copay End Day Intrvl 3'
	pbp_b2_copay_nmcs_struc_yn       = 'SNF NMCS Copay Structure YN'
	pbp_b2_copay_nmcs_amt            = 'SNF NMCS Copay Amt'
	pbp_b2_copay_nmcs_intrvl_num     = 'SNF NMCS Copay Interval Num'
	pbp_b2_copay_nmcs_amt_intrvl1    = 'SNF NMCS Copay Amt Interval 1'
	pbp_b2_copay_nmcs_bgnd_intrvl1   = 'SNF NMCS Copay BgnDay Intrvl 1'
	pbp_b2_copay_nmcs_endd_intrvl1   = 'SNF NMCS Copay EndDay Intrvl 1'
	pbp_b2_copay_nmcs_amt_intrvl2    = 'SNF NMCS Copay Amt Interval 2'
	pbp_b2_copay_nmcs_bgnd_intrvl2   = 'SNF NMCS Copay BgnDay Intrvl 2'
	pbp_b2_copay_nmcs_endd_intrvl2   = 'SNF NMCS Copay EndDay Intrvl 2'
	pbp_b2_copay_nmcs_amt_intrvl3    = 'SNF NMCS Copay Amt Interval 3'
	pbp_b2_copay_nmcs_bgnd_intrvl3   = 'SNF NMCS Copay BgnDay Intrvl 3'
	pbp_b2_copay_nmcs_endd_intrvl3   = 'SNF NMCS Copay EndDay Intrvl 3'
	pbp_b2_hosp_ben_period           = 'B2 SNF Ben Period'
	pbp_b2_hosp_ben_period_oth       = 'B2 Inp Hosp Ben Period Oth'
	pbp_b2_cost_discharge_yn         = 'SNF Costsharing discharge YN'
	pbp_b2_auth_yn                   = 'SNF Auth'
	pbp_b2_refer_yn                  = 'SNF Referral YN'
;

run;

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

proc print data = out.pbp_b2_b19b_vbid(obs = 10);
  title 'pbp_b2_b19b_snf_vbid_uf file ';
run;

proc means data = out.pbp_b2_b19b_vbid;
  title 'pbp_b2_b19b_snf_vbid_uf file ';
run;

proc freq data = out.pbp_b2_b19b_vbid;
table
	pbp_a_ben_cov
	pbp_a_plan_type
	orgtype
	pbp_vbid_group_id
	pbp_b2_bendesc_yn
	pbp_b2_bendesc_ad_nmcs
	pbp_b2_bendesc_amo_ad
	pbp_b2_benedesc_lim_ad
	pbp_b2_bendesc_amo_nmcs
	pbp_b2_bendesc_pr_hosp_yn
	pbp_b2_bendesc_pr_hosp_num
	pbp_b2_maxenr_yn
	pbp_b2_maxenr_per
	pbp_b2_cost_vary_tiers_yn
	pbp_b2_cost_vary_low_tier
	pbp_b2_coins_yn
	pbp_b2_mc_coins_cstshr_yn_t1
	pbp_b2_coins_mcs_int_num_t1
	pbp_b2_mc_coins_cstshr_yn_t2
	pbp_b2_coins_mcs_int_num_t2
	pbp_b2_mc_coins_cstshr_yn_t3
	pbp_b2_coins_mcs_int_num_t3
	pbp_b2_ad_cost_vary_tiers_yn
	pbp_b2_ad_cost_vary_low_tier
	pbp_b2_coins_ad_intrvl_num_t1
	pbp_b2_coins_ad_intrvl_num_t2
	pbp_b2_coins_ad_intrvl_num_t3
	pbp_b2_coins_nmcs_struc_yn
	pbp_b2_coins_nmcs_intrvl_num
	pbp_b2_ded_yn
	pbp_b2_copay_yn
	pbp_b2_mc_copay_cstshr_yn_t1
	pbp_b2_copay_mcs_int_num_t1
	pbp_b2_mc_copay_cstshr_yn_t2
	pbp_b2_copay_mcs_int_num_t2
	pbp_b2_mc_copay_cstshr_yn_t3
	pbp_b2_copay_mcs_int_num_t3
	pbp_b2_copay_ad_intrvl_num_t1
	pbp_b2_copay_ad_intrvl_num_t2
	pbp_b2_copay_ad_intrvl_num_t3
	pbp_b2_copay_nmcs_struc_yn
	pbp_b2_copay_nmcs_intrvl_num
	pbp_b2_hosp_ben_period
	pbp_b2_cost_discharge_yn
	pbp_b2_auth_yn
	pbp_b2_refer_yn
/ missing;
run;

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