View previous topic :: View next topic
|
Author |
Message |
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
No way. |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
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 |
|
|
dalydas Currently Banned New User
Joined: 29 May 2006 Posts: 10 Location: india
|
|
|
|
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 |
|
|
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6248 Location: Mumbai, India
|
|
|
|
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 |
|
|
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
naveenjain20
New User
Joined: 26 Jul 2009 Posts: 6 Location: mysore
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8796 Location: Welsh Wales
|
|
|
|
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 |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
|