Daily we are getting some datafiles to our unix server location FTPIN.
Incoming File names will be present in the location "/xyz/test/" as below:
"infile_A1_YYYYMMDD",
"infile_A2_YYYYMMDD",
"infile_B1_YYYYMMDD",
"infile_C1_YYYYMMDD"
"infile_C2_YYYYMMDD"
Where A, B and C are the different file types with the number of files (1,2,3..) for that type.
There will be a file indicator for these file types either "Y" or "N" declared in
seperate file (PCP file) as below:
export A=Y
export B=N
export C=Y
Iam executing this PCP file to setup the values before running my script.
I've to create a script to select the files which has the file indicator as "Y"
for the files types A, B and C and extract the data records from these files to a single file.
My question is how to check the file indicator for these file types which is declared in some other script
through my script? Also how to select the files which has the file type as "Y"?
Please guide me...
With Regards / Mysore Ganapati