![]() |
|
#1
|
||||
|
||||
|
I know it's possible to use SDSF in batch, to give
"simple" line commands, but can anyone tell me if there is any way of printing in batch the full output of a job to a dataset, preferrably by the job itself, as the last step? Robert |
|
#3
|
||||
|
||||
|
No, I seached on SDSF & BATCH...
Thanks for the pointer, I'm sure I can adapt this for my needs. Robert |
|
#4
|
|||
|
|||
|
Robert,
You are welcome. Sometime back, I had a similar requirement. I got the thread posted above while I was searching. But, what I was REALLY looking for was to somehow get the listing for a certain DD name's output and NOT of the whole job. Something turned up and I quit researching on that. As for your question, if there cannot be anymore jobs with the jobname, then it is easy. Else, you can have your SDSF display the JOBNAMES in descending order of JOBID. The FIND will then goto the latest job that was submitted.
__________________
ALL opinions are welcome. |
|
#5
|
|||
|
|||
|
Hi,
You can try this method also.. </font><blockquote>code:</font><hr /><pre style="font-size:x-small; font-family: monospace;"> //RUNTSO EXEC PGM=IKJEFT01 //SYSTSPRT DD SYSOUT=* //SYSTSIN DD * OUTPUT JOBNAME(JOBID) PRINT('your.pds(TEST1)') /* //* </pre>[/quote]Regds -Somu |
|
#6
|
||||
|
||||
|
Quote:
Robert |
|
#7
|
|||
|
|||
|
Hi Robert,
Quote:
Regds -Somu |
|
#8
|
|||
|
|||
|
Somu,
Nyet in Russian means 'No' as "nahin' in Hindi. The error message IKJ56328I means the following (from the IBM site) Quote:
Quote:
When I tried OUTPUT for a job of a colleague, I got Quote:
Did you try the SDSF example ? When I tried SDSF batch example for my colleague, I got an empty dataset. But, I can give XDC (manually) for that colleague's job in SDSF panel.
__________________
ALL opinions are welcome. |
|
#9
|
|||
|
|||
|
Hi,
You could try this step in your job: //sdsfout exec pgm=sdsf //sysprint dd sysout=* //sysout dd sysout=* //isfout dd sysout=* //isfin dd PREFIX * OWNER * st yourjobname ++ALL Find yourjobname last ++S PRT ODSN 'my.pds(member)' prt prt close end // This will route all the sysout of the last job which are submitted with same name to a PDS member. Hope this will help. Let me know if you face any problem. |
|
#10
|
|||
|
|||
|
After posting my last reply I realized that this is already in the link COGITO had provided.
This works out perfectly. But as mentioned in the link for SDSF remember that it won't capture both abended job output as well as the restarted job. It will only route the latest jobs output. Sugestions are welcome if somebody can come up with ideas like how to capture both abended and the restarted job output. May be we can use some rexx code for looping depending on the maxcc displayed on the SDSF panel. |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|