The only ID variable/key variable in my datasets is a string variable called CIQ_ID. Each CIQ_ID is a company.
Further, CIQ_ID in my master file is listed in a column. However, in all of my using datasets, each CIQ_ID has about 520 observations (OpenPrice, ClosePrice & AdjustedClosePrice for each company, i.e. each CIQ_ID for two years; different files for each of OpenPrice, ClosePrice & AdjustedClosePrice) associated with it, and, hence is listed in a row.
Question 1: How can I convert the string variable CIQ_ID to a numeric one, so that I can go ahead with the merge?
Question 2: Is the column listing of CIQ_ID in the master file and the row listing of CIQ_ID in the using file going to pose a problem for the merge? How can I overcome that problem?
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str12 CIQ_ID "IQ18511" "IQ289194" "IQ997111" "IQ875418" "IQ526391" "IQ142742" "IQ248270" "IQ312375" "IQ18527" "IQ247483" "IQ141885706" "IQ247589" "IQ109019149" "IQ5463655" "IQ972190" "IQ648902" "IQ780678" "IQ4222231" "IQ389218" "IQ92816" "IQ728553" "IQ24321" "IQ24333" "IQ168864" "IQ875505" "IQ128534719" "IQ247906" "IQ136994486" "IQ874662" "IQ250178" "IQ327168517" "IQ873693" "IQ876955" "IQ154924" "IQ248095" "IQ98900561" "IQ248356" "IQ561001" "IQ874805" "IQ873739" "IQ24522" "IQ325843" "IQ248501" "IQ18671" "IQ694234" "IQ365138" "IQ419896" "IQ882318" "IQ42083601" "IQ24568" "IQ876162" "IQ241782379" "IQ312949" "IQ598807" "IQ29096" "IQ387473" "IQ296308" "IQ883733" "IQ18749" "IQ134386019" "IQ878918" "IQ401715" "IQ373264" "IQ813607" "IQ168569" "IQ135470" "IQ92001" "IQ250388" "IQ24766" "IQ250885" "IQ4165019" "IQ24809" "IQ31860" "IQ24816" "IQ24827" "IQ877088" "IQ874001" "IQ251411" "IQ409115" "IQ745257" "IQ24893" "IQ35196211" "IQ160077" "IQ119853" "IQ169838" "IQ3799924" "IQ24937" "IQ251230" "IQ59502420" "IQ364040" "IQ251704" "IQ62120637" "IQ33348547" "IQ662734" "IQ11969433" "IQ58830719" "IQ252186" "IQ877335" "IQ874120" "IQ642957" end
Further, CIQ_ID in my master file is listed in a column. However, in all of my using datasets, each CIQ_ID has about 520 observations (OpenPrice, ClosePrice & AdjustedClosePrice for each company, i.e. each CIQ_ID for two years; different files for each of OpenPrice, ClosePrice & AdjustedClosePrice) associated with it, and, hence is listed in a row.
Question 1: How can I convert the string variable CIQ_ID to a numeric one, so that I can go ahead with the merge?
Question 2: Is the column listing of CIQ_ID in the master file and the row listing of CIQ_ID in the using file going to pose a problem for the merge? How can I overcome that problem?

Comment