My new question regards connecting to the external database to insert the data. I have the following code:
#include %occInclude // winsurge6 // insert winsurge data into cancer registry database // Create new Gateway connection object set gc=##class(%SQLGatewayConnection).%New() If gc=$$$NULLOREF quit $$$ERROR($$$GeneralError,"Cannot create %SQLGatewayConnection.") //Make connection to target DSN s pDSN="CGDEV" s usr="WINSURGE_DMP" s pwd="xxxxxxxx" s sc=gc.Connect(pDSN,usr,pwd,0) If $$$ISERR(sc) quit sc if gc.



