Reading a record in [Length][Data][Length][Data]... format



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

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

Postby dick scherrer » Mon Nov 05, 2012 5:21 am

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.
Hope this helps,
d.sch.

These users thanked the author dick scherrer for the post:
anand2283 (Tue Nov 06, 2012 6:05 am)
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

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

 

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

Postby anand2283 » Tue Nov 06, 2012 6:05 am

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.
Anand
anand2283
 
Posts: 4
Joined: Sun Nov 04, 2012 12:16 pm
Has thanked: 4 times
Been thanked: 0 time

Previous

Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post