/*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 Pharmacy Bridge file.                */
/*                                                                     */
/***********************************************************************/

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

options nocenter validvarname=upcase;

data pharm_bridge;
  infile phbrgin lrecl=23 missover pad;
  input @01    YEAR                             $char4.
        @05    CCW_PHARM_ID                     12.       /*  Encrypted  */
        @17    NCPDP_ID                         $char7.   /*  Encrypted  */
     ;

  label  YEAR                             = "Reference Year for Pharmacy Data"
         CCW_PHARM_ID                     = "CCW Pharmacy Identifier"
         NCPDP_ID                         = "NCPDP Proprietary Pharmacy Identifier"
     ;
run;

proc contents data=pharm_bridge position;
run;
