Page 2 of 2

Re: Reading a record in [Length][Data][Length][Data]... form

PostPosted: Mon Nov 05, 2012 5:21 am
by dick scherrer
Hello,

Possibly this is posted and if it is, ive missed it. . .

Is the physical input data fixed or variable?

What is the source of this data?

It can be done easily in BAL, but wan't to have any suggestions to do it in COBOL.
The way i've done things like this is to picture the assembler code and write the equivelent COBOL code. Won't be the exact same instructions, but will generate the same result.

Re: Reading a record in [Length][Data][Length][Data]... form

PostPosted: Tue Nov 06, 2012 6:05 am
by anand2283
dick scherrer wrote:Hello,

Possibly this is posted and if it is, ive missed it. . .

Is the physical input data fixed or variable?

What is the source of this data?

It can be done easily in BAL, but wan't to have any suggestions to do it in COBOL.
The way i've done things like this is to picture the assembler code and write the equivelent COBOL code. Won't be the exact same instructions, but will generate the same result.


Thanks Dick, the inputs from Billy and Bob, both worked good for me.