I am trying to code a ksh script that will check to see if all 26 incoming ftp files have been received before proceeding to the next function, which is to rename each file.
Here is the pseudo-code of what I am trying to do:
<<STEP_1>>
IF all ALS files have been transmitted then
go to STEP_2
ELSE
Sleep for 30 minutes
Go back to STEP_1
END IF;
<<STEP_2>>
Enter the command �rename_load1_als.sh� - this shell script will rename all of the extract files accordingly.
IF all files do not have .TXT extension then
go back to STEP_2
END IF;
Go to the directory /export/home/ftb_comm/prod/stage.
<<STEP_3>>
Enter the command nohup ./load_stage1_als.sh YYYYMM & - this script will load all
of the FTB extract files into the staging tables.
EXIT shell script.
Can someone please tell me what to do, especially for STEP_1 above?
Attached is the script that renames the files, so you have an idea of what the incoming file names are.
Doug:confused: