View previous topic :: View next topic
|
Author |
Message |
anish.ibm
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bangalore
|
|
|
|
Hi,
Please help me how to route the JES messages and Job output of a JCL to a dataset upon the execution of a same JCL . I dont want this to be done by XDC in the Spool.
Rgds
An |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Anish,
Quote: |
Please help me how to route the JES messages and Job output of a JCL to a dataset upon the execution of a same JCL |
In the job, include SDSF step as your last step. It automatically takes XDC for the previous steps. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Quote: |
In the job, include SDSF step as your last step. |
Murali,
Can you please show the code for above, I didn't get how to do this ? |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Anuj,
Quote: |
Can you please show the code for above, I didn't get how to do this ? |
Please find sampel step below -
Code: |
//SDSFSTEP 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
/* |
|
|
Back to top |
|
|
anish.ibm
New User
Joined: 28 Jun 2007 Posts: 23 Location: Bangalore
|
|
|
|
Thx
Guys
Let me try |
|
Back to top |
|
|
V S Amarendra Reddy
Active User
Joined: 13 Sep 2006 Posts: 220 Location: USA
|
|
|
|
Yup!!!! Its working Buddy but Its truncating the record length to 80 only.. can we get the total sysout without trunacting the record.. I accept its a varible record length...But is there any way to capture that...
Please suggest(Ofcourse I have done it by allocating a dataset with the required record length by checking in the spool and then when I submitted the job no truncation happened)..
But can we automate like dynamically can it take the record lenght and will print it to????
Regards
Amar |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Amar,
Quote: |
Yup!!!! Its working Buddy but Its truncating the record length to 80 only.. can we get the total sysout without trunacting the record.. I accept its a varible record length...But is there any way to capture that...
Please suggest(Ofcourse I have done it by allocating a dataset with the required record length by checking in the spool and then when I submitted the job no truncation happened).. |
Either increase your PDS lrecl to 133 or more
OR
Capture it in a flat file. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
I think that you will need to look at the SDSF manual and use a PARM to set the screen size to 133 instead of the default 80. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Expat,
Quote: |
I think that you will need to look at the SDSF manual and use a PARM to set the screen size to 133 instead of the default 80. |
I dint get you. The default spool is 133. Isn't it? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
Yes, but the default for screen size is only 80 bytes. And what we are doing in batch is simulating an online, i.e. on screen, display. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
Murali,
Thanks for the code.
I never used the SDSF program for this purpose, so your code gives me some queris to ask.
Let me expleain & ask, what I could percept from your code:
Code: |
//SDSFSTEP EXEC PGM=SDSF |
EXECcutes the program SDSF.
Code: |
//SYSPRINT DD SYSOUT=* |
Program messages to be listed, if any.
Code: |
//SYSOUT DD SYSOUT=* |
System messages to be listed.
Code: |
//ISFOUT DD SYSOUT=* |
This parameter is for which messages?
Code: |
//ISFIN DD *
PREFIX *
OWNER *
ST yourjobname |
In ISPF, if I need to see the statistics of JOBs, I do the following:
START S.ST/PRE 'JOB name'
so in above, why do we make use of ST instead of PRE?
This is for what, is this a delimiter, if yes, what purpose it's serving here. But I think, delimiters are coded in pairs, I can't see any pairing delimiter.
Code: |
Find yourjobname last
++S |
Same query as for A++ & why the Key word 'last'. Are there some more key-words which can be used here?
Code: |
PRT ODSN 'my.pds(member)' |
PRT is print.
I believe, ODSN should be read as Out(put)-DSN. If in place of 'my.pds(member)' I give some PS name such as PRT ODSN 'HLQ.SDSF.OUT', it should work. When I tried it, step expects the PS to be already catalogued, it does not generate the new PS. Is it because we can not provide DISP parameter here?
What's the significance of above 'prt' here? I doubt this is same as "PRT" used above in PRT ODSN 'my.pds(member)'.
Even if I dont code END, in-stream data delimiter /* will tell the OS to understand the end of in-stream Data or is it a necessary one.
I asked a lot, hopefully I'm not bothering you. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Anuj,
To put more -
Go through
in the spool. It actually shows the working of
statements. Hope you will get some answers from this. |
|
Back to top |
|
|
a027412
New User
Joined: 05 Jul 2007 Posts: 40 Location: Minneapolis, MN
|
|
|
|
Murali,
Instead of
Is there way to search with JobName and JobId?
I am asking this cos, users would have sorted their POSN of SPOOL to their convenience. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
a027412,
FIRST, LAST are the option parameters for FIND. If you remove these, FIND is an equivalent of PRE in the SDSF (i.e., FIND JOBNAME = PRE JOBNAME). For more info on this, refer the links I had provided in my previous post.
Regarding JobId, I have never used it. |
|
Back to top |
|
|
a027412
New User
Joined: 05 Jul 2007 Posts: 40 Location: Minneapolis, MN
|
|
|
|
Murali,
i actually gone thru the manul and found that it can be achived using FILTER command.
Syntax
FILTER Jobid EQ Jobxxxxx
Thanks for your help
[/i] |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
a027412,
As told before, I have never tried JobId thing. I strongly believe the JCL you had created for filtering job with the jobid is useless for next run (as jobid tends to change). Anyways, just try and let us know. |
|
Back to top |
|
|
|