IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

regarding lable headings


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kiran

New User


Joined: 08 Apr 2004
Posts: 25
Location: hyd

PostPosted: Wed Apr 21, 2004 9:24 am
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
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Wed Apr 21, 2004 11:35 am
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: 25
Location: hyd

PostPosted: Wed Apr 21, 2004 12:05 pm
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

Active User


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

PostPosted: Wed Apr 21, 2004 12:07 pm
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: 25
Location: hyd

PostPosted: Wed Apr 21, 2004 12:40 pm
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Need to split the records with headings DFSORT/ICETOOL 5
No new posts Reset a single lable thru' rexx exec TSO/ISPF 4
No new posts Can we add headings dynamically? COBOL Programming 8
No new posts Can we skip headings while sorting a ... DFSORT/ICETOOL 9
No new posts Forcing Easytrieve to produce report ... CA Products 1
Search our Forums:

Back to Top