Parsing a fixed format text file & upload into DB

Parsing a fixed format text file & upload into DB

I want to update an Oracle database daily, with a fixed format text file passed by another product. The text file contains fixed format data with each record separated by a carriage return and line feed. Is it possible to accomplish this in PowerBuilder?

You do not mention the format of the columns for the input file, but if the file is tab delimited or comma delimited, then you can use the importfile or importstring function of PowerBuilder to inport your data into a DataWindow, then use the update command to load the data into your Oracle database. This is both a quick and efficient manner to load the data into Oracle.

If the data is not in a PowerBuilder recogniseable format, then you could write a custom script to perform the process, but my preference in this would be to use SQL Loader, an Oracle tool, to bulk import the data.

See also  5 Strategies for Supercharging Your CRM

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist