Hi Gurus,
I used unix long time back. I need help for writing a unix script which can be automated and execute every day on specific time.
1.) This is the actual functional requirement.
Informatica should reject incoming files that have invalid filenames or file formats
2.) My File name will be of below format:
<interface_name>_<source_name>_<template-type>_<sequence_number>_<datetime-stamp>.csv
e.g. VJA_AP_BRSIN_00001_2601201012316.csv
3.) For eg: if I have the below fields in my file
SiteID
Num(3)
ICOMS Action
TBD
SKU
Char(50)
Serial
Char(16)
I should validate the name of the file and also its format. For this, a shell script has to be written. Every day, i see 50 files in my incoming directory.
I feel, The level of field validation should be
A) Count of fields in a file should be matched
B) Datatypes and field value size should match
C) if any NOT NULL fields coming as NULL - check
I appreciate if some one could help me ASAP.
---------- Post updated at 07:54 AM ---------- Previous update was at 07:49 AM ----------
Hi All,
I also need to check whether the file has a header , detail records and footer in my validation