View previous topic :: View next topic
|
Author |
Message |
kaushikmitra
New User
Joined: 11 Apr 2008 Posts: 26 Location: MONTEREY
|
|
|
|
Hi ,
Can someone please help me out.
I am looking for some utility so that I can search in Spool for given a keyword. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You may be able to do what you want using SDSF in batch. There are some examples in the forum.
If you explain in more detail what you want to do, someoone may have suggestions. What are you searching for? Where in the spool is it located?
If you can provide an example, that may help. |
|
Back to top |
|
|
kaushikmitra
New User
Joined: 11 Apr 2008 Posts: 26 Location: MONTEREY
|
|
|
|
My spool is loacted in both SDSF and SYSVIEW.
I want a JCL step which will save the SYSPRINT information of the earlier step into a Mainframe dataset. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
One easy way to do what you want is to write the SYSPRINT to dasd rather than sysout= in the step that creates the output. In a following step, copy the "sysprint" file to sysout=. You will then have a copy of the file on dasd and a copy in the spool. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
please explain the relation between Your two questions...
the first one is completely unclear, if You tell the exact [business] requirement
we might come up with suggestions, otherwise... good luck
Quote: |
want a JCL step which will save the SYSPRINT information of the earlier step into a Mainframe dataset. |
instead of using
Code: |
//SYSPRINT DD SYSOUT=.... |
use
Code: |
//SYSPRINT DD DSN=print_dataset,
// all the other allocation parameters |
and insert a iebgener step to print it
Code: |
//PRINT EXEC PGM=IEBGENER
//SYSUT1 DD DSN=print_dataset,.....
//SYSUT2 DD SYSOUT=........ |
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
As suggested by Dick, browse the forum because there are numerous good examples of exactly what you want. |
|
Back to top |
|
|
kaushikmitra
New User
Joined: 11 Apr 2008 Posts: 26 Location: MONTEREY
|
|
|
|
Thanks all ..
Actually the requirement is to print the SYSPRINT in spool as well as write the same in a dataset.
Also the SYSPRINT should generate in the same job step.
As per your solution above , SYSPRINT will be generated in a PS -
//SYSPRINT DD DSN=My PS name here,DISP=SHR
and then in the following step IEBGENER will copy the PS into SYSUT2.
This will not work for me as my Client require me to keep the SYSPRINT in the same step.
Is it possible to copy the SYSPRINT into a PS file by adding a step in the JCL.
I tried looking the similar questions in the forum , but could not find.
Need your urgent help !!!!!!!!!!!!!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
Your client cannot have it,
what' s wrong about having two steps ??? |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
Is it possible to copy the SYSPRINT into a PS file by adding a step in the JCL. |
What was already proposed adds a step. . .
When both steps execute, the result is what your client requires. If this is not acceptable, change the program creating the output to create the output 2 times - once to dasd and once to sysout.
It is nonsense to create the output to the spool/sysout and then dig it back out to write into a dataset. Probably not advisable, but - It is ok to tell your client i said this. . . |
|
Back to top |
|
|
kaushikmitra
New User
Joined: 11 Apr 2008 Posts: 26 Location: MONTEREY
|
|
|
|
In IEBGENER the output is shown in SYSUT2. Because many people in my workplace are accustomed to use SYSPRINT to view the output, so if I use SYSUT2 now , they may get confused.
Is there any way I can still show the output in SYSPRINT.
I tried IDCAMS REPRO , that works someway , but it also writing some details about IDCAMS . |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
what you are trying to do defies logic, so what happens when the job has other steps with a SYSPRINT DD, which one do the "many people" read , why teach "many people" bad habits.
When viewing the output you would check for the stepname and then the DDnames.
Enough said, if you want to go down the your path then you can run this
Code: |
//PRINT EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
DATA1
DATA2
//SYSPRINT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
OUTFIL FNAMES=SYSPRINT
|
Gerry |
|
Back to top |
|
|
kaushikmitra
New User
Joined: 11 Apr 2008 Posts: 26 Location: MONTEREY
|
|
|
|
Thanks All . This is issue is closed now. |
|
Back to top |
|
|
|