Can you check the connection string if you are using the right details
Can you confirm the specified connection type and other details like the terminal selected are correct
Does the mainframe application have any security restrictions? Can you check if you have an IT team…this can be ruled out if there are already automations running on mainframe …then this would have been taken care