Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to capture the spool messages of previous step

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Mon May 17, 2010 12:32 am    Post subject: how to capture the spool messages of previous step
Reply with quote

In my JOB, step1 is a cobol program which generate job summary report for spool. I want to capture it in a dataset for processing in next step. I am not suppose to catalog it, since we have standard to send the job summary from program into spool.

I found the below example to capture the JESMSGLG using ISFAFD.

http://www.ibmmainframeforum.com/viewtopic.php?f=16&t=3199&start=20#p13052

Please suggest if it can be modified to capture the spool data for a particular ddname of previous step.

Thanks for help.
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon May 17, 2010 12:45 am    Post subject:
Reply with quote

since it is a JOB and not a STEP summary,
why don't you generate the output of the cobol program to a temp (&&...) ds,
and then input the temp in your next step (simultaneously outputing to the spool summary (who dreams up this stupidity, anyway).

then you will not need to learn anything new
(in this case good, since if the JOB abends, you want the restart summary anyway)
and potentially difficult to implement.

why everyone needs to read the spool is just a technical exercise for little purpose.
Back to top
View user's profile Send private message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Mon May 17, 2010 1:05 am    Post subject: Reply to: how to capture the spool messages of previous step
Reply with quote

thanks for quick reply.

If I save the job summary of step1 in temp dataset, use it in next step and generate simultaneously to spool as well, then the job summary will appear in next step ( though in same job but not in step1) and it's not as per standard of generating job summary of program in same step.

I was thinking there could be a way using ISFAFD, by changing some parameer to capture ddname spool data instead of JESMSGLG. In this way i don't have to change anything in step1.

thanks
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: Mon May 17, 2010 1:52 am    Post subject:
Reply with quote

Hello,

Quote:
I am not suppose to catalog it, since we have standard to send the job summary from program into spool
So, do as DBZ suggests - create a temporary dataset. Do what is needed with the dataset, copy it to the spool, delete the dataset without ever cataloging it.

You now have followed the "not catalog" rule and the output is in the spool where it is supposed to be.

Quote:
In this way i don't have to change anything in step1
Why would this be prefereable? Also, changing a sysout to a dataset is extremely trivial. . . Why add code you don't know how to write (that will need to be supported long-term) and additional jcl when there is a very simple solution.
Back to top
View user's profile Send private message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Mon May 17, 2010 2:06 am    Post subject: Reply to: how to capture the spool messages of previous step
Reply with quote

Quote:
You now have followed the "not catalog" rule and the output is in the spool where it is supposed to be.



the solution DBZ suggested will move the summary report to next step's spool from step1.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon May 17, 2010 2:12 am    Post subject:
Reply with quote

it would be easier to add an additional output file in the pgm of step one,
that would duplicate the output (of sysout) which could be a temp ds,
for input to step two.

but, I don't imagine you can change the pgm in step 1, can you?
Back to top
View user's profile Send private message
s.ayodhyawasi

New User


Joined: 16 Sep 2006
Posts: 13

PostPosted: Mon May 17, 2010 2:43 am    Post subject:
Reply with quote

yes, I can't change the program in step1
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Mon May 17, 2010 2:46 am    Post subject:
Reply with quote

my, it must be comforting to creators of inflexible standards,
to know that no one will ever question anything.
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: Mon May 17, 2010 2:54 am    Post subject:
Reply with quote

Hello,

Quote:
the solution DBZ suggested will move the summary report to next step's spool from step1.
Yes, but it will still be in the sysout for the job. . .

I suspect there is also lack of understanding as to the intent of the standard. . .
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 Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us