View previous topic :: View next topic
|
Author |
Message |
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
HI,
i've an output file and i want some headings in that file like:
NAME PARTICULARS SALARY
and i'm adding some records to that output file.
my doubt is how to add these lables to the file and while reading the records, whether it reads from the lable or from the first record.
pls clarify |
|
Back to top |
|
|
anuradha
Active User
Joined: 06 Jan 2004 Posts: 247 Location: Hyderabad
|
|
|
|
Hello kiran,
you can declare those headers in working stoarage section with value clause and by using some fillers for spaces.while writing the output file first write from these headers and then write records.
when you need to read the records from this file it will read from the start i.e from labels only.generally we use flat files as input files which dont have any headers.
Hope this helps.
Thanks
Anu |
|
Back to top |
|
|
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
anuradha wrote: |
Hello kiran,
you can declare those headers in working stoarage section with value clause and by using some fillers for spaces.while writing the output file first write from these headers and then write records.
when you need to read the records from this file it will read from the start i.e from labels only.generally we use flat files as input files which dont have any headers.
Hope this helps.
Thanks
Anu |
Hi anu,
thanx for the reply. as u said that while reading the file , it reads from the labels . That means , is it treats the labels as a record. |
|
Back to top |
|
|
sandip_datta
Active User
Joined: 02 Dec 2003 Posts: 150 Location: Tokyo, Japan
|
|
|
|
Hello Kiran,
Yes...you are right. It will treat Label/Header as a seperate record. You need to omit those records somehow for further processing.
Regards,
Sandip. |
|
Back to top |
|
|
kiran
New User
Joined: 08 Apr 2004 Posts: 25 Location: hyd
|
|
|
|
sandip_datta wrote: |
Hello Kiran,
Yes...you are right. It will treat Label/Header as a seperate record. You need to omit those records somehow for further processing.
Regards,
Sandip. |
Hi sandip,
thanx for the reply |
|
Back to top |
|
|
|