I have a text file with first line as header record,and the remaining lines are details. For the processing, I do not need to store the fields of the header record but I need a date field from this header record and store in as part of the detail record in an oracle record row.I am extracting the details of all rows using 'POSITION' as the file is fixed length
Is it possible to define a variable within the sql loader control file to store the value that I need in memory then use it when I do the sql insert by the sql loader control file
My data file would look like:
193049201209109009238 anjdjtk (Header Record)
1231232 1231386 bkadfjak 989039nnadfsafda(details)
1335635 1237657 lsafnre 234o9034590srgfs(details)
I need to extract position(7:14) from header record and update the a column with this value in Oracle DB
Could someone please help me on this?