/*Published: 12/1/2020*/
/*                                                                     */
/**********************   COMMENTS   ***********************************/
/*                                                                     */
/* Please Note: If you are using PC SAS to read in these files you     */
/* will have to un-zip the files first and use the un-zipped filename  */
/* statement, rather than using the zipped files and statement.        */
/*                                                                     */
/* This version is for the Part D Prescriber Bridge file.              */
/*                                                                     */
/***********************************************************************/

*filename prbrgin '/directory/prscrbridge.txt';                      /*reading in an un-zipped file*/
filename prbrgin pipe 'gunzip -c /directory/prscrbridge.txt.gz';     /*reading in a zipped file*/

options nocenter validvarname=upcase;

data prescr_bridge;
  infile prbrgin lrecl=41 missover pad;
  input @01    YEAR                             $char4.
        @05    CCW_PRSCRBR_ID                   12.        /*  Encrypted  */
        @17    HCID                             $char10.   /*  Encrypted  */
        @27    NPI                              $char15.   /*  Encrypted  */
     ;

  label  YEAR                             = "Reference year for Prescriber Data"
         CCW_PRSCRBR_ID                   = "CCW Prescriber Identifier"
         HCID                             = "HCIdea Proprietary Prescriber Identifier"
         NPI                              = "National Provider Identification (NPI) for Prescriber";
     ;
run;

proc contents data=prescr_bridge position;
run;
