Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
regarding lable headings

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    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

anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

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: 25
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

Active User


Joined: 02 Dec 2003
Posts: 151
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: 25
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
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to split the records with headings umashankar subramani DFSORT/ICETOOL 5 Tue May 06, 2014 5:00 am
No new posts Reset a single lable thru' rexx exec hsk TSO/ISPF 4 Tue Jun 09, 2009 11:51 am
No new posts Can we add headings dynamically? anjani33 COBOL Programming 8 Fri Nov 16, 2007 3:01 pm
No new posts Can we skip headings while sorting a ... Alain Benveniste DFSORT/ICETOOL 9 Mon Nov 13, 2006 5:31 pm
No new posts Forcing Easytrieve to produce report ... ziggydog CA Products 1 Fri Sep 15, 2006 2:26 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us