- Administration Guide
- Run the ISO20022 Batch Screening
- Prerequisites
7.1 Prerequisites
- Access the Object Storage Pre-authenticated URL form Admin Console. For more information see Access the Object Storage Pre-authenticated URL.
- Setup the upload Transaction Files to Object Storage Utility.
- In any Linux environment, create a new folder. E.g. ISO20022_Batch_InputData_Upload_Utility.
- Change the directory inside the newly created folder.
- Create a file named “cto.sh” and paste the below
contents.
#!/bin/bash filename='filename.txt' n=1 tdate=$1 echo "Entered FIC MIS Date is: " $tdate objstore="<<OBJECT_STORAGE_PAR_URL>>" echo "Start Copy files to Object Store" while read line; do trimmed_line=$(echo "$line" | sed 's/^[[:space:]]*//;s/[[:space:]]*$//') #printf "line='%s'\n" $line #printf "trimmed_line='%s'\n" $trimmed_line sfile="@"$tdate"_"$trimmed_line".json" dfile=$objstore$tdate"_"$trimmed_line".json" curl -X PUT --data-binary $sfile $dfile echo "File" $n ":" $sfile echo "File" $n ":" $dfile n=$((n+1)) done < $filename swfile="@"$tdate"_filewatcher.txt" dwfile=$objstore$tdate"_filewatcher.txt" curl -X PUT --data-binary $swfile $dwfile echo "File" $n ":" $swfile echo "End of Copy files to Object Store"
Where <<OBJECT_STORAGE_PAR_URL>> is the URL string obtained from Admin Console.
- Create a file named “filename.txt” and add the file
contents as follows:
For Single input file:
RUN<<RUN_NUMBER>>_STG_TRANSACTIONS_ENTRY_1
Where <<RUN_NUMBER>> is the positive number used for batch Run.
For Multiple input files:
RUN<<RUN_NUMBER>>_STG_TRANSACTIONS_ENTRY_1 RUN<<RUN_NUMBER>>_STG_TRANSACTIONS_ENTRY_2 RUN<<RUN_NUMBER>>_STG_TRANSACTIONS_ENTRY_3
Note:
- The new line is mandatory at the end of last file name.
- Default Batch accepts only STG_TRANSACTIONS_ENTRY file pattern. To change this, clone the following pipelines (Data Loading File Transfer Transaction Filtering and Load Transaction Filter Data) and change the input parameter “fileName” value in external service. Then Clone the associated jobs, attach the cloned pipeline and Save the job. Then, Change the Task Parameter “$JOBNAME$” value in two tasks “DataLoadingFileTransfer” and “TransFilterPipeline” respectively. Refer Pipeline Designer user guide.