Hi,
I need to merge 5 different sequential files. The 5 files have the same format.
I have created a server job with a Link Collector and the 5 sequential files form as input. The merged ouput needs to be written to another sequential file.
The job works fine if all the 5 files exist in the directory. If one of them does not exist (which is entirely possible and acceptable), the job fails.
Is there a way around this? I don't want the job to fail. I want it to merge existing files and ignore missing files. Can someone tell me how to do this?
Thanks
Merge Sequential Files - handling missing files
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 9
- Joined: Mon Sep 07, 2009 4:12 am
Hi,
You can use a routine to build a TYPE command with the existing files and run that as a filter command and use it as the merged file or write it to a target file if that is what you need.
IHTH (I Hope This Helps),
You can use a routine to build a TYPE command with the existing files and run that as a filter command and use it as the merged file or write it to a target file if that is what you need.
IHTH (I Hope This Helps),
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Indeed it is Ray
Must have missed that unix for OS![Embarassed :oops:](./images/smilies/icon_redface.gif)
Must have missed that unix for OS
![Embarassed :oops:](./images/smilies/icon_redface.gif)
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)