Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle Procedure-To Write a Txt file in Specific Format

910353Apr 19 2012 — edited Apr 23 2012
Hi All,

I need a help in Writing a Text file in orale in specific customized format as below:

EXTRACT-RECORD.
SYS-SRC X
PO-NUMBER 010226XFDNBCVU
CLIENT-OCCRNC
POL-SECTION
REGI-DATE
REG-YYYY 1992
REG-MM 09
REG-DD 25
PL-CODE.
TYP-TERM
TERM-DATE
TERM-YYYY 1984
TERM-MM 04
TERM-DD 04
POL-STATUS.
PYMT-STATUS
RO-CD
LAST-NAME KUMAR
FIRST-NAME BALA
MIDDLE-NAME
ADDR-LINE1 685 S LOS CIRCLE
ADDR-LINE2 #2304
ADDR-LINE3
SEX M
DATE-OF-BIRTH.
DOB-YYYY 1925
DOB-MM 03
DOB-DD 02
DATE-OF-DEATH.
DOD-YYYY 2002
DOD-MM 03
DOD-DD 30


1. Left side are the feild names and right side are the correponding values.

2. If there is 10 records ,then all the 10 records should be written as above format one below the other....


Thnx in advance....

Edited by: 907350 on Apr 19, 2012 5:45 AM
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 21 2012
Added on Apr 19 2012
3 comments
232 views