YEforce
asked on
Using substr/instr on a tab delimited txt file
Hi I am trying to figure out how to load data into variables using PLSQL. I have been using substr to load the data into each variable. For example,
vStockNum := substr(vBuffer,1,instr(vBu ffer,vTab, 1,1));
vBuffer is a line from what the UTL_FILE variable is reading in. The problem I am having is the part named vTab. How do you search for a tab. If it was a comma, it would be ',' but since we are dealing with a tab rather than a punctuation mark its more challenging. I've tried doing the manual way of ' ', but that doesn't work either. Any ideas on what I could try?
vStockNum := substr(vBuffer,1,instr(vBu
vBuffer is a line from what the UTL_FILE variable is reading in. The problem I am having is the part named vTab. How do you search for a tab. If it was a comma, it would be ',' but since we are dealing with a tab rather than a punctuation mark its more challenging. I've tried doing the manual way of ' ', but that doesn't work either. Any ideas on what I could try?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.