View previous topic :: View next topic |
Author |
Message |
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Mon Aug 25, 2008 7:45 am Post subject: Input file validation |
|
|
How to validate whether input file is present or not. If file is not present i need to write into another fine saying that "file not present".how to acheive. |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Aug 25, 2008 7:50 am Post subject: |
|
|
do you mean not present or empty.
Your job will fail if an non-dynamically-allocated file is not present: i.e. Any DD statement in you jcl.
Empty, well, there are several sort solutions that have been posted. You might look at sorttricks or the manual if you have DFSORT. Check the utilities forum, there is a sticky with links to DFSORT info. If you have syncsort, find a post from Alisa, she has an e-mail contact on her signature. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
nbdtrjk1 Beginner
Joined: 12 Apr 2007 Posts: 76 Topics: 41
|
Posted: Mon Aug 25, 2008 8:01 am Post subject: |
|
|
So not present file check not possible?.
My requirement is daily i am getting 4 files from 4 different system. By end of day merge all the files and send to another system.
The difficulty is we are not sure all the day we will get 4 files. we will get the file only on the day some account has opened , otherwise won't get file at all(not even empty file also)
The JOb is schedule in CA7
Thanks |
|
Back to top |
|
|
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Mon Aug 25, 2008 9:31 am Post subject: |
|
|
well, suppose you have your job dependent upon the 4 files. this is already done, you say in ca.
is there a cut off time, by which you will either have received, or will not have received the file? If so, have a job that starts after the cut-off time that can not run if the 4th file is there. this job would only run if the 4th file is not there, and it would create the 4th file with you little 'nothing here msg'. then the creation of the 4th file would allow the big job to run. _________________ Dick Brenholtz
American living in Varel, Germany |
|
Back to top |
|
|
|
|