EDC5037I The specified ddname was not found. errno=37 errno2=0xc00b05b1 last_op=40
Firstly, the job step is having the DD name coded. Secondly, I am not able to locate the errno=37 in /usr/include/errno.h. Thirdly, I do not see 05b1 in errno2 list in the USS Messages and Codes manual.
I am also baffled at the EDC message and errno that you are getting. It doesn't seem to be documented anywhere.
Are you launching the JVM with the JZOS batch launcher? Otherwise, (and especially if you are using BPXBATCH), your JVM may be in a separate address space and the DDNAME will be unavailable.
BTW, the following works fine for me if I run under the JZOS batch launcher:
Are you launching the JVM with the JZOS batch launcher? Otherwise, (and especially if you are using BPXBATCH), your JVM may be in a separate address space and the DDNAME will be unavailable.
I just noticed that, when I run with Batch Launcher, the step runs forever with no messages whatsoever. The message indeed comes from using BPXBATCH. How do I ensure that they run in the same address space ? (I vaguely recall reading something to the effect of different address space but do not know where.)
Finally, this problem does not happen regularly. Its almost idiosyncratic ! There are instances of getting BufferedReader in JZOS or BPXBATCH that ran successfully.
Debugging tip:
When you have eliminated all which is impossible, then whatever remains, however improbable, must be the truth.
--Sherlock Holmes
Well, what the heck is the matter with you? This is precisely why we wrote JZOS .
Seriously, if you want to access DD names, you'll either need to use BPXBATSL or the JZOS batch launcher. We specifically don't provide any support for bpxbat(sl) here.