[R-SIG-Finance] RBloomberg blpConnect() not responding

Samuel.Meichtry at bkw-fmb.ch Samuel.Meichtry at bkw-fmb.ch
Fri Apr 9 09:32:50 CEST 2010

Dear Finance People

I have a Rscript which grasps every 2 minutes for data on Bloomberg timeseries in a tryCatch-while-Loop.

When there is an error it waits 2 minutes and reconnects to Bloomberg and tries again. Unfortunately it sometimes happen, that blpConnect() is not responding and it does not give an error-message. After that I can only close manually the Skript-Error-Message-Box in Windows.

Is there a possibility to close the Rscript properly, or prevent the hanging of the RScript?

Thank you!

#My Code:
   }; #End while
   #... error, finally, etc.
}; #End while
cat("Open Bloomberg connection ...","\n") conn <- blpConnect() cat("Bloomberg connection succeeded.","\n")

My Logfile:
2010-04-09 02:34:17 Restart 1st while ...  
2010-04-09 02:34:19 Open Bloomberg connection ...			#<- Here it is hanging
2010-04-09 08:35:32 Rotc process started.				#<- I have to restart it manually!!

BKW FMB Energie AG
Energy Trading
Samuel Meichtry
Analyst Energy Trading
Tel +41 31 330 53 99
Fax +41 31 330 56 16
e-mail samuel.meichtry at bkw-fmb.ch

More information about the R-SIG-Finance mailing list