View previous topic :: View next topic
|
Author |
Message |
srikant314
New User
Joined: 26 Oct 2016 Posts: 5 Location: INDIA
|
|
|
|
Hello all,
I have tried extract the spool data of a job in a dataset but not have been unable to do so.Not sure what exactly i am missing.
Code: |
//TDPSPARM JOB 0000,
// 'LIVE TEMPLATE QUERY',CLASS=D,MSGCLASS=U,
// NOTIFY=&SYSUID
//BSDSF EXEC PGM=ISFAFD,PARM='++30,256'
//ISFOUT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//ISFIN DD *
PRE TDPSPARM
ST
++?
FIND 'SYSTSPRT'
++S
PRINT ODSN 'TIM.SPOOL.NEW' * SHR
PRINT 1 9999
PRINT CLOSE
END
EXIT
/*
// |
I also tried giving dataset name in SYSPRINT above but dataset is blank.
Is that due to some authorization error or the environment doesnot support this utility.Not sure though.
Can you all help me in figuring out if i have missed anything.I checked some of the earlier post but they seem to be dormant so i posted here.My humble apologies just incase i broke any standard norms followed on this forum.
regards |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You have a JOB named SYSTSPRT? That is what your FIND command is saying. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
I encountered this recently and this is how I got it to work.
I will modify your JCL.
Your dataset will contain more than just the output you want. The screens traversed will be shown.
I added a SORT step to extract the data I really wanted.
There may be a better way, but this worked for me.
Code: |
/TDPSPARM JOB 0000,
// 'LIVE TEMPLATE QUERY',CLASS=D,MSGCLASS=U,
// NOTIFY=&SYSUID
//BSDSF EXEC PGM=ISFAFD,PARM='++30,256'
//ISFOUT DD DSN=TIM.SPOOL.NEW,DISP=SHR
//SYSUDUMP DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSPRT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//ISFIN DD *
PRE TDPSPARM
ST
++?
FIND 'SYSTSPRT'
++S
++ALL
/*
// |
|
|
Back to top |
|
|
Willy Jensen
Active Member
Joined: 01 Sep 2015 Posts: 712 Location: Denmark
|
|
|
|
I strongly advise using the SDSF REXX API, see the manual 'SDSF Operation and Customization' chapter 'Using SDSF with the REXX programming
language'. It can be a bit daunting at first, but it provides a much better interface to spool data. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
once upon a time I posted quite a few snippets ( TESTED AND WORKING ) on how to use the SDSF REXX interface to access a job output
search the forum with
"SDSF REXX"
checking the search for all the words button
and with enrico* as user
one of them
ibmmainframes.com/viewtopic.php?t=54926&highlight= |
|
Back to top |
|
|
srikant314
New User
Joined: 26 Oct 2016 Posts: 5 Location: INDIA
|
|
|
|
Hello Everyone,
Thanks for all the suggestions.
I am able to copy the spool in the dataset.
The issue with my JCL above was that i was using a dataset that had organisation as space.I changed it as PS and it is now able to gather the details in it.
Regards |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
No such thing as "organisation as space". What do you really mean? |
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3048 Location: NYC,USA
|
|
|
|
Quote: |
No such thing as "organisation as space". What do you really mean? |
DSORG =spaces ( of source later, TS realized the basic, that's not one of the valid value) |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
Quote: |
DSORG =spaces ( of source later, TS realized the basic, that's not one of the valid value) |
That is not in his posted JCL so you cannot assume that that is what he meant. Clarification is still needed, |
|
Back to top |
|
|
|