I am working on file scenario below the pattern of file I need to generate with the details. How can we know the file is checksum or not. Uniquecode has to be generate with date milliseconds with random number.
File pattern is QPS.COMPANYCODE.CY/CN.CURRENCYCODE.UNIQUECODE
QPS is identifying the file
0111 is company code
CY/CN if the file is checksum then CY or CN
USD is currency code
UniqueCode have to generate using DDHHMMSSNNNRR (DD - Day, HH - Hour, MM- Minute, SS-Second, NNN - Milisecond, RR - Random Number)
Any help would be appreciated.