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
 

 

two output dataset in same ddname

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: two output dataset in same ddname
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

Moderator Team Head


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

PostPosted: Wed Aug 19, 2009 6:14 pm    Post subject: Reply to: two output dataset in same ddname
Reply with quote

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

Moderator


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

PostPosted: Wed Aug 19, 2009 6:47 pm    Post subject:
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    Post subject: Reply to: two output dataset in same ddname
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    Post subject:
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

Senior Member


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

PostPosted: Wed Aug 19, 2009 7:00 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 19, 2009 7:09 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Aug 19, 2009 7:20 pm    Post subject:
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    Post subject:
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: 1703
Location: Australia

PostPosted: Thu Aug 20, 2009 4:23 am    Post subject:
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    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 Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 4 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm


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