Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Searching in Job Spool for

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Searching in Job Spool for
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

Site Director


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

PostPosted: Fri Jun 27, 2008 3:22 am    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jun 27, 2008 6:01 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Jun 27, 2008 11:54 am    Post subject: Reply to: Searching in Job Spool for
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: 8593
Location: Back in jolly old England

PostPosted: Fri Jun 27, 2008 11:57 am    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10211
Location: italy

PostPosted: Fri Jun 27, 2008 12:44 pm    Post subject: Reply to: Searching in Job Spool for
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

Site Director


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

PostPosted: Fri Jun 27, 2008 7:15 pm    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Sat Jun 28, 2008 5:31 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Report output in Spool amitc23 JCL & VSAM 4 Tue Apr 26, 2016 4:32 pm
No new posts Extract specific step spool data enrico-sorichetti JCL & VSAM 1 Thu Feb 04, 2016 9:48 am
This topic is locked: you cannot edit posts or make replies. MEMOAPIX - Searching for a Reference ... Steve Coalbran All Other Mainframe Topics 13 Wed Feb 03, 2016 12:01 pm
No new posts Need help on searching '82 in SRCHFOR rohanthengal TSO/ISPF 6 Thu Aug 27, 2015 4:56 pm
No new posts XML generated from cobol is displayin... vangeti COBOL Programming 2 Wed Aug 19, 2015 5:16 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us