MKDIR is not recommended by IBM. The system is supposed to do this automatially just like your PC does when it uses My Network Places. We have a similar problem and we have an open PMR with IBM. I suggest calling 1-800-IBM-SERV and logging the problem. I understand that there is a PTF in the works for this; maybe the PTF will solve your problem.
Remember, from IBM’s perspective, the MKDIR is only a workaround.
<b>IF</b> NetServer is properly configured, and <b>if</b> TCP/IP is properly configured, and <b>if</b> appropriate NetServer PTFs are applied, and <b>if</b> the Windows servers are have proper service packs, then MKDIR is not needed at all.
What MKDIR does is trigger access to the Windows domain. The first access of the Windows Network after an IPL triggers the start of a “discovery” process looking for Windows servers that are presenting shares. You can run a DSPLNK ‘/QNTC/*’ command after IPL to trigger the discovery process.
The way you run the command is up to you. The only significant requirements are that TCP/IP must be running fully, and NetServer must be completely initialized. You can run the command at the end of your QSTRUP program or submit the command to batch, you can assign it as an auto-start job in some subsystem, or you can type it manually when a terminal first comes active. However you want to do it, it’s just that you probably want it run automatically shortly after IPL completes.
After discovery completes, you should be able to run programming that opens files in Windows shares and the opens should complete in a matter of seconds.