|
|
| Author |
Message |
pradeep
New User
Joined: 31 Jan 2004 Posts: 10 Location: Surandai,India
|
|
|
|
Why we are using LABEL RECORDS ARE STANDARD in files? |
|
| Back to top |
|
 |
References
|
|
 |
suresh_u
New User
Joined: 31 Jan 2004 Posts: 8
|
|
|
|
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 |
|
 |
machswap
New User
Joined: 19 Apr 2005 Posts: 14
|
|
|
|
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 |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1508
|
|
|
|
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.  |
|
| Back to top |
|
 |
parikshit123
Active User
Joined: 01 Jul 2005 Posts: 279 Location: India
|
|
|
|
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 |
|
 |
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1508
|
|
|
|
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 |
|
 |
shankarravi1984 Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 9 Location: pune
|
|
|
|
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 |
|
 |
prashanth1
New User
Joined: 27 Sep 2006 Posts: 32 Location: Mumbai
|
|
|
|
| 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 |
|
 |
mukesh_mf
New User
Joined: 24 Aug 2008 Posts: 1 Location: Gurgaon
|
|
| Back to top |
|
 |
dick scherrer
Global Moderator
Joined: 23 Nov 2006 Posts: 8737 Location: 221 B Baker St
|
|
|
|
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 |
|
 |
|
|