View previous topic :: View next topic
|
Author |
Message |
nankrish
New User
Joined: 11 Nov 2005 Posts: 26
|
|
|
|
Hi,
In a program if there are three output files created, is it possible to use the same file for all the three outputs files in the JCL.
All the files are opened in output mode already and it cannot modified to other modes.
When i tried giving (mod,ctlg,delete) for the all the files, i'm getting error as duplicate dataset in the second DD name.
Is there any other way to achieve this?
Thanks,
Ramesh |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
You can add an IEBGENER or SORT step.
O. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
Ramesh,
You are using in the program logically three seperate files ,so in the job you have to specify three seperate files.you cannot use same file.If you want only one file then use a sort merge after this step or change your logic to have only one output file.
But Still,What is your exact requirement?Is it just for knowledge or for requirement? |
|
Back to top |
|
|
nankrish
New User
Joined: 11 Nov 2005 Posts: 26
|
|
|
|
hi,
my requirement is to download these files to the server. Since all the files are of same layout the user wants to download them as a single file in the server. |
|
Back to top |
|
|
muthuvel
Active User
Joined: 29 Nov 2005 Posts: 217 Location: Canada
|
|
|
|
How many files you want to download?
You can use MOD parameter but when using that download(i think it is FTP),download each file in seperate step in the PROC,i.e single output file but seperate input files.
Hope this helps. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
I'd suggest you create 3 files and then run SORT or IEBGENER to combine them into one file for the download.
If the program is writing to all 3 concurrently, the output would be interleaved and possibly quite confusing. |
|
Back to top |
|
|
|