I get a file from the client on daily basis which contains the details of employees working in an organization. on Saturday no employee was worked hence i got an empty file.by reading this file i have to display a message that no 'employee worked'. Please suggest me how can do it .
Joined: 05 Jun 2005 Posts: 165 Location: Bangalore
you may check this in JCL also by using the PRINT command. you will get a return code of 4 if the file is empty.
put this logic in a step prior to the step of your program executing step and execute the second step according to the return code of the first step.