How to handle empty input file



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

Re: How to handle empty input file

Postby Jegan R » Wed Oct 14, 2009 1:07 am

Hi,

As you said, this is not the 'true Empty file'. So we cant even check for File Empty. If the Input file for this Ezytrieve is Empty means, we will bypass the step.But how can we check whether this is empty or not? because it doesnt have proper EOF.
Jegan R
 
Posts: 10
Joined: Tue Aug 18, 2009 3:32 am
Has thanked: 0 time
Been thanked: 0 time

Re: How to handle empty input file

Postby dick scherrer » Wed Oct 14, 2009 2:07 am

Hello,

Someone needs to change the step that creates the "empty file" so that it will have a true eof, have a dummy record that signifies "empty", or set a condition code when no output is written so that the Easytrieve step can be bypassed.

Something that could work also is to add a step before the SAS process to catalog a "good" empty file and then MOD onto it in the SAS step - i've not tested this, but it should be easily tested. . .
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Previous

Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post