There were many best guesses in the algorithm, and I do not recall most of them. If you didn't like what it did you could always simply specify all three attributes.
I think it tended to favor LRECL=80 in honor of Mr. Hollerith. Charles -----Original Message----- From: IBM Mainframe Discussion List [mailto:[email protected]] On Behalf Of Paul Gilmartin Sent: Friday, June 30, 2017 11:38 AM To: [email protected] Subject: Re: Possible RFE for new DISP JCL parameter options On Fri, 30 Jun 2017 11:24:18 -0700, Charles Mills wrote: >YES!!! > >Years ago I wrote and my company sold a mainframe-PC file transfer >product (in the pre-FTP days), and it supported a DISP operand for the >creation of mainframe datasets that worked exactly as you describe, >with two steps under the covers. I'm trying to remember the keyword for the >specification. >Perhaps CREATE. It made sense then (1989) and it makes sense today. > Many desktop editors call this REPLACE; SAVE fails for an existing file. >(It also did a kind of extended SDB under the covers. You could specify >any one or two of LRECL, RECFM and BLKSIZE and it would intuit the >others. Had an algorithm that made intelligent guesses. Specify >RECFM=FB,BLKSIZE=8000 it would give you LRECL=80. Specify >LRECL=137,BLKSIZE=8000 and it would give you RECFM=VB.) > What might it do for RECFM=FB,BKLSIZE=10640 (which happens to be 133 * 80). 526 $ factor 10640 Factors of 10640 are 2 2 2 2 5 7 19 It's ambiguous for any number with 2 or more prime factors. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
