Now I am trying with a Java library called tn5250j, which provides scripting capabilities, but it is not well documented and I didn't find much on the Internet.
Does anyone have experience with this library, or with any other tool in order to automate test cases for a COBOL program, running on an iSeries/AS400 server?