Re: Variable Length Input File



I have a question, please, Doc.

(It is many years since I worked in this environment (actually, it was an
environment LIKE this one because this environment was not then available,
if you catch my drift...))

I have retained enough of what I learned there to understand the
comprehensive samples you posted, and note in passing that nothing much
appears to have changed as far as JCL is concerned...

I too, would have expected RECFM=VB, but I understand why you didn't put
that.

My question is this (and forgive my ignorance if there is some obvious
reason that I simply haven't tumbled to):

If the JCL specifies a block size of 27990 (nicely divisible by 30, 933
times), and the COBOL program is specifying a block/record size of 32767,
wouldn't this be likely to cause an IO error when the dataset is opened?

Just a thought...

Pete.

TOP POST - nothing more below

<docdwarf@xxxxxxxxx> wrote in message news:emsa6g$n0j$1@xxxxxxxxxxxxxxxxxxxx
In article <2cafe$459199e9$d066072d$978@xxxxxxxx>,
CG <Carl.Gehr.ButNoSPAMStuff@xxxxxxxxx> wrote:
docdwarf@xxxxxxxxx wrote:

[snip]

Dealing with a VB dataset with different-length records has not
presented,
at least to me, very much of a problem... the difficulty is, I believe,
in
dealing with a fixed length dataset which has different-length records.

[snip]

???? > fixed length dataset which has different-length records. ????

That is a total contradiction! Either the file has FIXED LENGTH records
or the records VARY in length.

You might want to inform the person who started this thread about that...
but the last heard was from that account in this thread seems to have been
as follows. From
<http://groups.google.com/group/comp.lang.cobol/msg/e2bd0f47c45850c8?dmode=source>

--begin quoted text:

I think I didn't explain my problem well. Maybe it'll be better with
an example. Let's say, I have file called TESTA. TESTA doesn't always
have the same LRECL. Sometime TESTA will be defined in the JCL with
LRECL=30. Other times, it will be have LRECL=70. And so on. My
problem is how should TESTA be represented in FD?

--end quoted text

I was able to find the entire thread beginning at
<http://groups.google.com/group/comp.lang.cobol/browse_thread/thread/5f5078dee2ab20f1/1418ce24a2de8ee3?q=%22BLOCK+0+and+the+actual+record+length%22&lnk=ol&;>

DD



.



Relevant Pages

  • Re: Variable Length Input File
    ... environment LIKE this one because this environment was not then available, ... input file that was fixed block but depending on the day could have ... I have file called TESTA. ...
    (comp.lang.cobol)
  • Re: Variable Length Input File
    ... I have file called TESTA. ... I've had no troubles in that environment. ...
    (comp.lang.cobol)
  • Re: Nested dreams
    ... I don't live in your environment. ... instead of living in someone else's. ... all your friends must have some sort of characteristics that make you ...
    (rec.games.computer.ultima.dragons)
  • Re: Nested dreams
    ... I don't live in your environment. ... instead of living in someone else's. ... It frustrates ...
    (rec.games.computer.ultima.dragons)
  • Re: Question about an alternate abiotic origin of Martian "blueberries"
    ... It turned out that the Meridiani is a sedimentary environment. ... > sedimentary rocks and stromatolites. ...
    (sci.geo.geology)