Visit SDSUSA site please  

Go Back   mvsHelp Boards > Archives (Read only) > Sort, Utilities (prior 6/1/03)
User Name
Password
-->
FAQ Search Manuals Calendar New Posts Search Today's PostsMark Forums Read

 
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-29-2003, 07:51 AM
prino's Avatar
prino prino is offline
Senior Member
 
Join Date: Jul 2001
Location: Oostende, Belgium
Posts: 592
Send a message via Skype to prino
Post

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
__________________
Robert AH Prins
robert.ah.prins@the.2Gb.one.from.Google
  #2  
Old 05-29-2003, 10:24 AM
Cogito-Ergo-Sum Cogito-Ergo-Sum is offline
Senior Member
 
Join Date: Jul 2002
Location: Navi Mumbai, India
Posts: 430
Post

Did you look in this thread ?
__________________
ALL opinions are welcome.
  #3  
Old 05-29-2003, 10:36 AM
prino's Avatar
prino prino is offline
Senior Member
 
Join Date: Jul 2001
Location: Oostende, Belgium
Posts: 592
Send a message via Skype to prino
Post

No, I seached on SDSF & BATCH...

Thanks for the pointer, I'm sure I can adapt this for my needs.

Robert
__________________
Robert AH Prins
robert.ah.prins@the.2Gb.one.from.Google
  #4  
Old 05-29-2003, 10:59 AM
Cogito-Ergo-Sum Cogito-Ergo-Sum is offline
Senior Member
 
Join Date: Jul 2002
Location: Navi Mumbai, India
Posts: 430
Thumbs up

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  
Old 05-29-2003, 11:35 AM
somu somu is offline
Senior Member
 
Join Date: Jan 2003
Location: NJ
Posts: 38
Post

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  
Old 05-30-2003, 05:18 AM
prino's Avatar
prino prino is offline
Senior Member
 
Join Date: Jul 2001
Location: Oostende, Belgium
Posts: 592
Send a message via Skype to prino
Post

Quote:
Originally posted by somu:
</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]Nyet, results in IKJ56328I

Robert
__________________
Robert AH Prins
robert.ah.prins@the.2Gb.one.from.Google
  #7  
Old 05-30-2003, 08:21 AM
somu somu is offline
Senior Member
 
Join Date: Jan 2003
Location: NJ
Posts: 38
Post

Hi Robert,
Quote:

Nyet, results in IKJ56328I
Didn't get what u are mentioning.. Can u pl explain..?

Regds
-Somu
  #8  
Old 05-30-2003, 08:44 AM
Cogito-Ergo-Sum Cogito-Ergo-Sum is offline
Senior Member
 
Join Date: Jul 2002
Location: Navi Mumbai, India
Posts: 430
Post

Somu,
Nyet in Russian means 'No' as "nahin' in Hindi.

The error message IKJ56328I means the following (from the IBM site)
Quote:
The installation exit (IKJEFF53) return code=8. The user entered a job name which did not meet the requirements of the exit. If the IBM-supplied exit is used, the jobname must start with the user ID. Also, the IBM-supplied message text is: JOB 'jobname' REJECTED - JOBNAME MUST BE YOUR USERID OR MUST START WITH YOUR USERID.
The HELP listing for OUTPUT says,
Quote:
FUNCTION -
TO ACCESS SYSOUT DATASETS FROM BACKGROUND JOBS, FOR USERS AUTHORIZED
TO USE THE FOREGROUND INITIATED BACKGROUND COMMANDS. MSGCLASS AND,
SYSOUT DATA SETS SHOULD BE ASSIGNED TO RESERVED CLASSES OR,
EXPLICITLY HELD IN ORDER TO BE AVAILABLE AT THE TERMINAL.
So, maybe this error is due to the userid.

When I tried OUTPUT for a job of a colleague, I got
Quote:
JOB xxxxxxxx REJECTED - JOBNAME MUST BE YOUR USERID OR MUST START WITH YOUR USE
RID
Robert,
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  
Old 05-30-2003, 03:21 PM
Nits Nits is offline
Member
 
Join Date: May 2003
Posts: 13
Post

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  
Old 05-30-2003, 03:30 PM
Nits Nits is offline
Member
 
Join Date: May 2003
Posts: 13
Post

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off


All times are GMT -4. The time now is 08:13 AM.


Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.