dcsimg
Login | Register   
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: PowerBuilder
Expertise: Beginner
Apr 12, 1999

WEBINAR:

On-Demand

Application Security Testing: An Integral Part of DevOps


Parsing a fixed format text file & upload into DB

Question:
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?

Answer:
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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date