Very apparent from the error message : "Failed to connect to database". First see if you are able to connect to database from the datastage server machine to your DB2 instance.
It took me fifteen years to discover I had no talent for ETL, but I couldn't give it up because by that time I was too famous.
Use the DS_CONNECT command to test connectivity using the DataStage DSN for connection to this database. The DS_CONNECT command must be issued from within an interactive dssh session.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.