Was that a shot? I suppose I'm deserving of shots. And, well, you are senior in this forum
Sure that's the purpose of SJ. Following that line I suppose the meaning of SE be to put you in an ISPF edit session for the spool? So I figure if ++SE works ++SJ does and I just can't figure it out.
This is for a process to capture information about ad hoc jobs run in test so that for archive purpose we have a record of the job as it ran. Currently it captures the spool information and it would be nice if ++SJ would work as well as the change to the existing process would be very minimal.
I have a work around that gives the job as it ran 99% of the time and am OK with using it. I figured I'd ask here to see if SJ was supported and I missed it.
These ad hoc jobs aren't mission critical or they'd run in production. But a nice to have would be if ++SJ could replace ++SE in the code below and work. Or if a different set of commands to sdsf in batch mode would accomplish the same thing.
I've seen the link you posted and while this process doesn't use rexx I looked through it anyway. It says SJ is not supported in rexx but I haven't seen any reference that speaks to whether SJ is supported in batch sdsf as SE seems to be since the below code works.
SET CONFIRM OFF
FIND jobname LAST
PRINT FILE REPORT
Why not just retain the JCL (JESJCL ??? element of the output - can't recall it exactly as I'm not at work) and if the need arises a few seconds of brainpower will reconstruct the JCL.
That's the solution that's in place. The issue is it takes some time to reconstruct the jcl and sometimes the time I have to reconstruct them is less than others or will get me home sooner. So I want to keep the job as it ran, too. Depending upon the time of year the few minutes required to reconstruct a few ad hoc jobs again could make a noticeable difference in the day.
I just made a wrapper that submits the job so there will be a copy of what was submitted without needing to reconstruct it as well as the spool, too. It serves the need but if SJ was supported it would have been a bit cleaner.