top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Text file location and its data check at FTP server in informatica

+1 vote
415 views

How to check in informatica whether a flat file exists at a location at FTP server and to check if it has some data in it?

posted Sep 18, 2014 by Sunil

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

One solution is to create Windows or Unix shell script on the Informatica server that checks for the existence of the file. Something like this:

#!/usr/bin/ksh

if [ ! -f /Filelocation/INPUT_FILENAME.txt]
  then
    echo "Source not found"  
    exit 1
  else
       echo "Source present"     
          exit 0
  fi
done
exit 1

Create a command session in Workflow that runs this script.

answer Sep 22, 2014 by Shweta Singh
Similar Questions
+2 votes

How to check using informatica whether a flat file exists at a location at FTP server also to check if it contains some data?

+2 votes

I wanted to develep the workflow which continuously running and looking for the file..

The source file data is like this :

eno
10    
20    
30    
40

Once the file received in the FTP location , the workflow should automatically pick the file and load into the target Table.

The output of target table table will be like below

eno    Received
---    -------
10      Y
20      Y
30      Y
40      Y
50
60
70
80

the condition to load the target table would be [ Update EMP_TGT set Received='Y' where eno=' ]

0 votes

I want to copy the data into one excel file, while the mapping has been running in informatica.

+2 votes

I have few file names and need to identify which mapping/workflow is generating those files?
Is it possible to check this in repository or at UNIX level.

+1 vote

I have to load the target table copy of data into the text file at the time of workflow running.(i.e)Whatever data are going into the the target table that should come into the text file also.

...