Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
regarding lable headings

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL
Author Message
kiran

New User


Joined: 08 Apr 2004
Posts: 26
Location: hyd

PostPosted: Wed Apr 21, 2004 9:24 am    Post subject: regarding lable headings
Reply with quote

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
View user's profile Send private message
References
anuradha

Global Moderator


Joined: 06 Jan 2004
Posts: 257

PostPosted: Wed Apr 21, 2004 11:35 am    Post subject: report headings
Reply with quote

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
View user's profile Send private message
kiran

New User


Joined: 08 Apr 2004
Posts: 26
Location: hyd

PostPosted: Wed Apr 21, 2004 12:05 pm    Post subject: Re: report headings
Reply with quote

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
View user's profile Send private message
sandip_datta

EXPERT


Joined: 02 Dec 2003
Posts: 152
Location: Tokyo, Japan

PostPosted: Wed Apr 21, 2004 12:07 pm    Post subject:
Reply with quote

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
View user's profile Send private message
kiran

New User


Joined: 08 Apr 2004
Posts: 26
Location: hyd

PostPosted: Wed Apr 21, 2004 12:40 pm    Post subject:
Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe COBOL All times are GMT + 6 Hours
Page 1 of 1