I'm encountering a problem that's driving me nuts. In a REXX exec, I submit 1-n jobs, and then query their STATUS (WAITING, EXECUTING, ON OUTPUT), once the status is ON OUTPUT, I issue an OUTPUT command to store the SDSF output into a seq. file.
Problem is, the STATUS indicates that the job is on the output queue, however when I issue the OUTPUT, it comes back with NO HELD OUTPUT FOR JOB and a RC = 0.
What am I doing wrong here?
here's a bit of trace info to illustrate the problem:
I've added a simple delay loop (i.e. do j = 1 to 999) between the STATUS and the OUTPUT command. It would appear that the output from STATUS is not entirely correct, and a small delay is required before the SDSF output can be stored.