There is a fixed length flat file - each 'record' in the file has a length of 80. I need to extract data from each record from different positions and format another fixed length flat file.
e.g: the input file looks like this:
74807932020002100010020808 0000002355 26240992 74807932020002100011020808 0000090000 262409
74807932020002100011020808 0000090000 26240993 74807932020002100012020808 0000078654 262409
74807932020002100012020808 0000078654 26240994 74807932020002100013020808 0000055023 262409
It has fillers in the beginning and in between. There is no specific record delimiter except that the length of each record is fixed (80). I need to extract data such as account number from pos 9 - 12, and then amount from pos 30 - 39 etc. and then I need to put all this data along with some addnl data in another output file. The output file needs to be in a totally different format but thats the second step. The first step is to read the file and extract data accordingly. How can I do this without using any temp tables in Oracle - is this possible using just stored procedures.
Please help !
Thanks.
e.g: the input file looks like this:
74807932020002100010020808 0000002355 26240992 74807932020002100011020808 0000090000 262409
74807932020002100011020808 0000090000 26240993 74807932020002100012020808 0000078654 262409
74807932020002100012020808 0000078654 26240994 74807932020002100013020808 0000055023 262409
It has fillers in the beginning and in between. There is no specific record delimiter except that the length of each record is fixed (80). I need to extract data such as account number from pos 9 - 12, and then amount from pos 30 - 39 etc. and then I need to put all this data along with some addnl data in another output file. The output file needs to be in a totally different format but thats the second step. The first step is to read the file and extract data accordingly. How can I do this without using any temp tables in Oracle - is this possible using just stored procedures.
Please help !
Thanks.