devangelista
Technical User
Hello QBasic Guru's
I've searched the threads a bit and have some idea of how to do this but I can't seem to get it right.
Here's what I'm trying to do:
I receive files from the Federal Reserve Bank in the following format: AHMMDDXI.001 or AHMMDDXI.002
Inside these files are header records at positions 1 - 13, a sample header is: 101 083901825
I need to parse all files in a directory that have either .001 or .002 extensions, examine the file header and evaluate the "083901825" part and based on what it is save the file AHMMDDXI.001 or .002 as another file name, move the original source file to an archive location, and repeat this for every file in the directory.
For Example:
Input File: AHMMDDXI.001
If Header Rec: 101 083901825
Then Output File: AHMMDDXI.ALT
Else If Header Rec: 101 061308770
Then Output File: AHMMDDXI.FED
Move or archive: AHMMDDXI.001 to hard coded Location
Repeat for each file in the directory.
Any assistance would be greatly appreciated. We are despirate...
Best Regards
David Evangelista
FiNET, Inc.
I've searched the threads a bit and have some idea of how to do this but I can't seem to get it right.
Here's what I'm trying to do:
I receive files from the Federal Reserve Bank in the following format: AHMMDDXI.001 or AHMMDDXI.002
Inside these files are header records at positions 1 - 13, a sample header is: 101 083901825
I need to parse all files in a directory that have either .001 or .002 extensions, examine the file header and evaluate the "083901825" part and based on what it is save the file AHMMDDXI.001 or .002 as another file name, move the original source file to an archive location, and repeat this for every file in the directory.
For Example:
Input File: AHMMDDXI.001
If Header Rec: 101 083901825
Then Output File: AHMMDDXI.ALT
Else If Header Rec: 101 061308770
Then Output File: AHMMDDXI.FED
Move or archive: AHMMDDXI.001 to hard coded Location
Repeat for each file in the directory.
Any assistance would be greatly appreciated. We are despirate...
Best Regards
David Evangelista
FiNET, Inc.