* User inputs;
%let capIQ_path = C:\Users\jaredflake\Dropbox\Research\Data\CIQ_Transcripts\capitaliq_transcripts; /*define path to location of data*/

* Path to Capital IQ data;
/* 
    ciq library has capital IQ transcript data, wrds_gvkey, and wrds_professional if you do not have 
    access to wrds_professional, you may be able to perform a similar merge using only the transcript 
    data to populate missing companyofperson values
*/
libname ciq "&capIQ_path"; /* Can also modify to run this on WRDS */
libname adj "../data/CIQ";
/*
    library with ptgdet, recddet, and IBES-PERMNO link files from IBES 
*/
libname ibes "../data/raw"; 
libname crsp "../data/raw"; 

%let iclink = ibcrsphist; /* IBES-CRSP link file */

%let ciqfile = "../data/CIQ/ciqAFY_FmtdNms.csv";

%let ibesfile = "../data/CIQ/ibesAFY_FmtdNms.csv";

/*
    Put today's date to use at the end of main output files
*/
%let date = %sysfunc(today(), yymmddn8.);
