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
 

 

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: 10277
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: 8123
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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm


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