Re: Variable Length Input File
- From: "Pete Dashwood" <dashwood@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 27 Dec 2006 12:54:09 +1300
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
.
- Follow-Ups:
- References:
- Variable Length Input File
- From: manubay
- Re: Variable Length Input File
- From: CG
- Re: Variable Length Input File
- From:
- Re: Variable Length Input File
- From: CG
- Re: Variable Length Input File
- From:
- Variable Length Input File
- Prev by Date: Re: COBOL interview tests
- Next by Date: Re: Variable Length Input File
- Previous by thread: Re: Variable Length Input File
- Next by thread: Re: Variable Length Input File
- Index(es):
Relevant Pages
|
|