IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Searching in Job Spool for


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kaushikmitra

New User


Joined: 11 Apr 2008
Posts: 26
Location: MONTEREY

PostPosted: Fri Jun 27, 2008 2:32 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 27, 2008 3:22 am
Reply with quote

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
View user's profile Send private message
kaushikmitra

New User


Joined: 11 Apr 2008
Posts: 26
Location: MONTEREY

PostPosted: Fri Jun 27, 2008 5:33 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 27, 2008 6:01 am
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 27, 2008 11:54 am
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Jun 27, 2008 11:57 am
Reply with quote

As suggested by Dick, browse the forum because there are numerous good examples of exactly what you want.
Back to top
View user's profile Send private message
kaushikmitra

New User


Joined: 11 Apr 2008
Posts: 26
Location: MONTEREY

PostPosted: Fri Jun 27, 2008 12:40 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jun 27, 2008 12:44 pm
Reply with quote

Your client cannot have it,
what' s wrong about having two steps ???
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 27, 2008 7:15 pm
Reply with quote

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. . . icon_confused.gif

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. . . icon_smile.gif
Back to top
View user's profile Send private message
kaushikmitra

New User


Joined: 11 Apr 2008
Posts: 26
Location: MONTEREY

PostPosted: Sat Jun 28, 2008 3:47 am
Reply with quote

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
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Sat Jun 28, 2008 5:31 am
Reply with quote

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
View user's profile Send private message
kaushikmitra

New User


Joined: 11 Apr 2008
Posts: 26
Location: MONTEREY

PostPosted: Thu Jul 03, 2008 2:38 am
Reply with quote

Thanks All . This is issue is closed now.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Search string in job at regular Spool... CLIST & REXX 0
No new posts Searching for a member but don't know... TSO/ISPF 6
No new posts Capturing logs from spool dd JCL & VSAM 6
No new posts No sysout coming in spool JCL & VSAM 4
No new posts SPOOL commands for INTRDR CICS 8
Search our Forums:

Back to Top