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
 
Problems with SYSOUTs into dataset

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

New User


Joined: 28 Aug 2008
Posts: 12
Location: PUNE

PostPosted: Tue Oct 21, 2008 4:36 pm    Post subject:
Reply with quote

can append messages of three job's in a single PS file?

I tried with following code it is not working

//SYSOUT DD DSN=GM5303M.C5303.MRTBK1OP.DATA.TEST,DISP=MOD

please let me know if you have any IDEA[/quote][/code]
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Tue Oct 21, 2008 4:40 pm    Post subject: Reply to: how to store the output messages resulting from a
Reply with quote

to avoid losing data the best thing would be to write each one to its dataset
and add a last step to copy them in a single dataset
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: Tue Oct 21, 2008 4:45 pm    Post subject:
Reply with quote

Quote:
I tried with following code it is not working

Well, we would expect that as you have posted a problem here.

In what way is it not working, my psycic powers are a little low today. Is it a JCL error, an abend, you are not getting the expected output, or one of many more possibilities ?

ALSO do not append your problem to another one - start a new topic !!!
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Wed Oct 22, 2008 3:51 am    Post subject:
Reply with quote

Hello,
Quote:
please let me know if you have any IDEA
Your mission is programatic & not a "mechnical" (using JCL) one, if you want to use JCL Enricos' suggestion seems to be the best, uness i misunderstood.

You used DISP=MOD, which indicates that the data set already existed, and that records are to be added to the end of the data set (for sequential files only) OR You are creating a new data set. In both of these cases it's implied that you need non-shared control of the data set. But in the context you want to use the DISP with your DSN
Code:
//SYSOUT DD DSN=..  DISP=MOD
it's as good as using DISP=NEW.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Wed Oct 22, 2008 4:03 am    Post subject:
Reply with quote

Are the jobs running sequentially or are you trying to run them in parallel?
Back to top
View user's profile Send private message
shinderajan222
Warnings : 1

New User


Joined: 28 Aug 2008
Posts: 12
Location: PUNE

PostPosted: Wed Oct 22, 2008 8:39 am    Post subject:
Reply with quote

I have to execute nearly 10 JOB's sequentially and I want to write SYSPRINT of all job in a PS. For second JOB run I have already tried DISP=MOD but iti is not appending data for second run


could u plz suggest me 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: Wed Oct 22, 2008 9:13 am    Post subject:
Reply with quote

Hello,

Quote:
For second JOB run I have already tried DISP=MOD but iti is not appending data for second run

could u plz suggest me anything ?
Is this the same "not working" as your oriinal post? If it is not appending, what is it doing? What is the content of the file after the second job completes?

If you post the jcl from the first 2 jobs, we may be able to see what is the matter.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Oct 22, 2008 8:13 pm    Post subject:
Reply with quote

If the SYSPRINTs are from various programs with differing LRECLs, this will be a problem.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm

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