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

two output dataset in same ddname


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Wed Aug 19, 2009 6:12 pm
Reply with quote

Hi, I want to write the output in two datasets simultaneously in one ddname thru jcl without any changes in program. Both the datasets should have the same output data. Is it possible, Please let me know.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Wed Aug 19, 2009 6:14 pm
Reply with quote

No way.
Back to top
View user's profile Send private message
Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2481
Location: @my desk

PostPosted: Wed Aug 19, 2009 6:47 pm
Reply with quote

Quote:
Both the datasets should have the same output data
Why do you want to write the same data in multiple datasets whereas the general concern is about removing redundant data?
Back to top
View user's profile Send private message
dalydas
Currently Banned

New User


Joined: 29 May 2006
Posts: 10
Location: india

PostPosted: Wed Aug 19, 2009 6:51 pm
Reply with quote

Use a sort or iebgener copy step after the program get executed in the same job.There is no way to get the outputs in the same step without changing the program
Back to top
View user's profile Send private message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Wed Aug 19, 2009 6:53 pm
Reply with quote

its already in production with one dataset routing to control-d. now i need to take a backup of that. i know we can make it by using iebgener or other utilities, but i am not suppose to include any more step.

Thanks,
naveen
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 Aug 19, 2009 7:00 pm
Reply with quote

I agree with Kevin, however, it seems better explanation for your problem is needed. What you've posted is a way you think to achieve what you want, if you tell us what exactly you are looking for, I believe there can be alternate solutions.
Back to top
View user's profile Send private message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Wed Aug 19, 2009 7:09 pm
Reply with quote

the problem is like, I have a program which generates an output report which is now routing to control-d for users view. Now as per the new requirement I am suppose to take a backup of those reports.
if i change the dataset name in the existing step or any other step is added, i would need to change the control-d setup. to avoid these changes i just thought if it is possible without including a new step.

if it is not possible then I will change the program to include one more ddname and will sort out the problem.

Thanks for you kind support.

Thanks,
Naveen
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 19, 2009 7:09 pm
Reply with quote

If it is routed to Control-D, can you not route the actual print to Control-d, rather than a dataset, and use OUTPUT statements to create a second copy of the report(s)
Back to top
View user's profile Send private message
naveenjain20

New User


Joined: 26 Jul 2009
Posts: 6
Location: mysore

PostPosted: Wed Aug 19, 2009 7:15 pm
Reply with quote

in that case i need to include one more step which will route the dataset to control-d and again it will need changes into control-d setup. so i cant follow that.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Aug 19, 2009 7:20 pm
Reply with quote

Then I guess it is time to tell the dummy that made the request that it is impossible given the restrictions imposed.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


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

PostPosted: Thu Aug 20, 2009 4:00 am
Reply with quote

naveenjain,
Is the DDNAME allocated to SYSOUT or a file?

If SYSOUT, use OUTPUT statement to send to two SYSOUTs.

If file, you are out of luck.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Thu Aug 20, 2009 4:23 am
Reply with quote

Hi,

why do you need to back up these reports ? Control-D has Backup missions, the basic mechanism used by Control-D for backing up CDAM datasets.


Gerry
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 TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
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
Search our Forums:

Back to Top