Working on a z/OS system, and I'm not part of the programming team, but I know some programming stuff. We have a tool that we're working with that can output JCL + NDM to send files from the company to the client. I can manually add and review the output before submitting the card.
I'm looking for a way to affect the timing of the transmissions, per the clients request. I'd like to keep it simple and just modify the JCL + NDM before submitting it. They would like several minutes in between each transmission (execution of NDM script), and the time to transfer the file may vary.
What commands are available to me for that? I did some searching and it looks like most people think this is a terrible idea, though I'm not clear why (still new to mainframes).
I came across NDM's MAXDELAY
, but I am not convinced that will help, it looks more like a queuing mechanism than a delay.
Another guy mentioned JCL's STARTT
which could space them out.... if we knew how long it would take for them to send.
I was hoping there was something that inserts a delay. We're already setting a priority to single thread the script and send things one at a time.
Since I have JCL and NDm in the same script, I can use either to make the delay.
For reference, in other languages, most languages have a wait
, delay
, or other command available. Also, sometimes those commands have idiosyncrasies; Arduino stops all execution during a delay
, so it's not recommended.
If you can add a step to the JCL, then...
...might be what you're looking for. The sleep shell command is supplied with z/OS.
Some people worry that this ties up an initiator unnecessarily.