Search code examples
javamainframezos

How to mock/test Mainframe file I/O (JZOS) for a java program in windows?


While developing Java programs to read/process & write mainframe files , how can this file i/o functionality (using JZOS utility) be tested in the developers local environment (windows PC) ?

Is there a way to safely mock/test the file i/o feature in developers local environment rather than, every time moving the code to mainframe and test the file i/o feature ?


Solution

  • JZOS has a file factory which can be used on non z/OS platforms as long as the file name is not an MVS data set.