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

Why we are using LABEL RECORDS ARE STANDARD in files


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

New User


Joined: 31 Jan 2004
Posts: 10
Location: Surandai,India

PostPosted: Tue Feb 03, 2004 3:30 pm
Reply with quote

icon_rolleyes.gif
Why we are using LABEL RECORDS ARE STANDARD in files?
Back to top
View user's profile Send private message
suresh_u

New User


Joined: 31 Jan 2004
Posts: 8

PostPosted: Wed Feb 04, 2004 4:09 pm
Reply with quote

Hi pradeep,

In mainframe printers we have standard header and trailer label which give information about the record creation date , expiration date and so on. If we give LABLE RECORDS ARE STANDARD then the printers will print with headers and trailers label with details of records.


Thanks

Suresh
Back to top
View user's profile Send private message
machswap

New User


Joined: 19 Apr 2005
Posts: 14

PostPosted: Fri Jun 24, 2005 5:04 pm
Reply with quote

Hi,


I think we use LABLE RECORDS ARE STANDARD when ur output is a standard disk file.
if ur output is going to be a printer then u use label records are ommited.

correct me if iam wrong.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Mon Jun 27, 2005 7:27 am
Reply with quote

Hi Pradeep,

What Machswap says is true except that the labels are used for both disk and tape datasets.

In the more recent COBOL releases this option is no longer required. If it is used it's treated as a comment.

Think of it as an appendix. icon_smile.gif
Back to top
View user's profile Send private message
parikshit123

Active User


Joined: 01 Jul 2005
Posts: 269
Location: India

PostPosted: Fri Jul 14, 2006 4:49 pm
Reply with quote

Hi,

I think for printers there are no LABEL RECORDS.

So, we might like to use LABEL RECORDS ARE OMMITTED for output going to the printer.

Offcourse, with new cobol compilers in place, LABEL RECORDS clause is no longer required.

Thank,
Parikshit
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Sat Jul 15, 2006 10:06 pm
Reply with quote

I repeat, it's no longer required. Just keep it in mind if you have to use it on older hardware. As I recall, it specified std, non-std or no labels for tape, std for disk.

I know it wasn't required in cobol2, maybe before.
Back to top
View user's profile Send private message
shankarravi1984
Warnings : 1

New User


Joined: 15 Sep 2006
Posts: 9
Location: pune

PostPosted: Thu Sep 21, 2006 8:04 pm
Reply with quote

hi,
by using the label records we can access the file in inut or output mode even though it is specified in any mode,header and trailer label specifies that the file being processed is correct one or not.
Back to top
View user's profile Send private message
prashanth1

New User


Joined: 27 Sep 2006
Posts: 47
Location: Hyderabad

PostPosted: Wed Oct 04, 2006 1:55 pm
Reply with quote

As of my knowledge, LABEL RECORDS ARE STANDARD can be used to verify that, is it accessing the correct file records are not. The length could be the 80bytes and it will be created while writing into the file and it will verify while reading the records from the file.
Back to top
View user's profile Send private message
mukesh_mf

New User


Joined: 24 Aug 2008
Posts: 1
Location: Gurgaon

PostPosted: Mon Aug 25, 2008 8:49 pm
Reply with quote

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/igy3lr10/5.2.6

If something is not clear, post it back here and your question about it.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Aug 25, 2008 11:33 pm
Reply with quote

Hello mukesh and welcome to the forums,

Please note that you replied to a topic that has been inactive for almost 2 years . . .
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
Search our Forums:

Back to Top