Then again ...

Why would a rational programmer cause an "empty" record to be written in 
the first place?  To give the programmer writing the code to process the 
data a little something extra to do?  To make sure the testers are doing 
their job?  What?

Vacation Notice:  None
 
Tom Puddicombe
Mainframe Performance & Capacity Planning
CSC

31 Brookdale Rd, Meriden, CT 06450
ITIS | (860) 428-3252 | tpudd...@csc.com | www.csc.com

This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 
purpose.



From:   Paul Gilmartin <paulgboul...@aim.com>
To:     IBM-MAIN@listserv.ua.edu
Date:   10/03/2012 05:35 PM
Subject:        Zero length records outlawed! (Again.)
Sent by:        IBM Mainframe Discussion List <IBM-MAIN@listserv.ua.edu>



In:

Title: z/OS V1R13 DFSMS Using Data Sets
Document Number: SC26-7410-11

2.1.2.2.1 Record Processing for UNIX Files

I read:

    Each record prefix is mapped by the IGGRPFX macro. It is the following 
four bytes:

     Offset  Length     Symbol       Description
       0       1          RPFX00     Reserved.
       1       3          RPFXLLL    Length of record that follows this 
prefix.

    ... If any record in the file consists of zero bytes (that is, the 
length field in
    the record prefix contains zero) or if any record is longer than the 
length
    of the buffer, it results in an error return code for GET. 

Sigh.  Morons.  Why did they do that!?  It's like being back in old OS/360
which specified the minimum count field in an RDW as 5.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to