IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problems with SYSOUTs into dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Oct 21, 2008 4:40 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Oct 21, 2008 4:45 pm
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

Superior Member


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

PostPosted: Wed Oct 22, 2008 3:51 am
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 22, 2008 4:03 am
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 22, 2008 9:13 am
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts C++ problems Java & MQSeries 3
Search our Forums:

Back to Top