MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Input file validation

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
nbdtrjk1
Beginner


Joined: 12 Apr 2007
Posts: 76
Topics: 41

PostPosted: Mon Aug 25, 2008 7:45 am    Post subject: Input file validation Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Aug 25, 2008 7:50 am    Post subject: Reply with quote

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
View user's profile Send private message
nbdtrjk1
Beginner


Joined: 12 Apr 2007
Posts: 76
Topics: 41

PostPosted: Mon Aug 25, 2008 8:01 am    Post subject: Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Mon Aug 25, 2008 9:31 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group