Re: Indexed Sequental file - junk when created...
From: Thomas A. Li (tli_at_corporola.com)
Date: 12/16/03
- Next message: Thomas A. Li: "COBOL related business show or exhibit?"
- Previous message: Judson McClendon: "Re: Indexed Sequental file - junk when created..."
- In reply to: ritchie: "Indexed Sequental file - junk when created..."
- Next in thread: JerryMouse: "Re: Indexed Sequental file - junk when created..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 16 Dec 2003 20:22:18 GMT
The problem is that
either you changed the record length
or the file is crashed after opened as sequential file by Cobol program
or by manual edition.
Check for the original program for the same key and record length.
Thomas
"ritchie" <ritchie_s01@yahoo.com> wrote in message
news:3bee6ba6.0312161036.28edd6f8@posting.google.com...
> Hi
>
> Wanted to ask if anyone knew anything about this??
>
> I a trying to create a program where I open up an Indexed sequental
> file and write to it but when I look in the file it is filled with
> junk.
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 000290 INPUT-OUTPUT SECTION.
> 000300 FILE-CONTROL.
> 000310 SELECT credit-ac ASSIGN TO "Credit-Details.dat"
> 000311 ORGANIZATION IS Indexed
> 000312 ACCESS MODE IS DYNAMIC
> 000313 RECORD KEY IS credit-ac-no
> 000314 ALTERNATE RECORD KEY IS credit-ac-last-name
> 000315 WITH DUPLICATES.
> .
> .
> .001530 OPEN I-O credit-ac.
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Each time I run the program it get's filled with even more junk plus
> what I'm writing to it, and after a couple of runs, when I run the
> program I get an error.
> Has anybody had this problem before?
>
> Any help aprechiated,
> Thanks,
> Ritchie
- Next message: Thomas A. Li: "COBOL related business show or exhibit?"
- Previous message: Judson McClendon: "Re: Indexed Sequental file - junk when created..."
- In reply to: ritchie: "Indexed Sequental file - junk when created..."
- Next in thread: JerryMouse: "Re: Indexed Sequental file - junk when created..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|