View previous topic :: View next topic
|
Author |
Message |
shinderajan222 Warnings : 1 New User
Joined: 28 Aug 2008 Posts: 12 Location: PUNE
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Are the jobs running sequentially or are you trying to run them in parallel? |
|
Back to top |
|
|
shinderajan222 Warnings : 1 New User
Joined: 28 Aug 2008 Posts: 12 Location: PUNE
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
If the SYSPRINTs are from various programs with differing LRECLs, this will be a problem. |
|
Back to top |
|
|
|