Thanks Julius, we already put the errortrap in our routine below details we gathered from the trap:
msg                   :    "0 "_$lb($lb(6022,"DSN/User Connect",,,,,,,,))/* ERROR #6022: Gateway failed: DSN/User Connect. */
$username    :    "_system"
$roles               :    %All

we need the solution for above Error message.