• JDELIST is celebrating its 20 year anniversary today!
  • Introducing Dark Mode! Switch by clicking on the lightbulb icon next to Search or by clicking on Default style at the bottom left of the page!

Launching a subsystem returns warning

johndanter

Legendary Poster
Hi folks,

I have written a C++ BSFN that is given me a return flag of 1 everytime I call it, but it works and calls the subsystem successfully.
Any idea why it would give a warning but actually work?

WRK:GTSOVEPY_30181888_DConnector Return value is 1 for RRDLaunchR554216AsSubsystem. (BSFNLevel = 3)
 

craig_welton

Legendary Poster
John, the return code is what the function "return" statement is set to. For example return ER_SUCCESS; return ER_WARNING; return ER_ERROR;
 

johndanter

Legendary Poster
OK, makes sense

I changed my code to this pasted below (from Not Equal to Success). But any idea why my BSFN would issue a warning even when it launches the subsystem correctly??

RRDLaunchR31410AsASubsystem(B5531410.RRDLaunchR31410AsASubsystem)
"1" -> cMode [EV01]
BF mnDocumentOrderInvoiceE [DOCO] -> mnDocumentOrderInvoiceE [DOCO]
BF szStatusCodeWo [SRST] -> szStatusCodeWo [SRST]
VA evt_Version_VERS [VERS] -> szVersion [VERS]
VA evt_Error_DTAI [DTAI] <> szError [DTAI]

If SV Error_Status is equal to CO ERROR
BF szDataItem [DTAI] = "634A"
End If
 
Top