Page 1 of 1

INVALID FILE REFERENCE_easytrieve

PostPosted: Sun Oct 28, 2007 12:12 pm
by TRESA
i get error message "A010 INVALID FILE REFERENCE - BIK004AI"
when i submit the job. the file mentioned here BIK004AI already exist and i dont know how to resolve this.
someone pls help me.
:cry:

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Sun Oct 28, 2007 7:59 pm
by CICS Guy
TRESA wrote:i get error message "A010 INVALID FILE REFERENCE - BIK004AI"

CA-Easytrieve/Plus Reference Guide wrote:A010 INVALID FILE REFERENCE - file-name
A field-name was referenced in a file which had no active record. The file might have been closed, or might be at end-of-file, or in synchronized file mode with no active record. The name of the file is specified by file-name.
How is this file being used?
Where in the processing is the error being raised?

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Mon Oct 29, 2007 8:33 am
by TRESA
The error I get is

4997 *******A010 INVALID FILE REFERENCE - BIK004AI

*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)


The line number 4997 is


4997 IF ( BIK004AI:W004-T000-CTL-TABLE-NUMBER = 'T019' )

4998 IF ( BIK004AI:W004-T019-SYSTEM-FLAG = 'W' OR +

BIK004AI:W004-T019-SYSTEM-FLAG = 'X' OR +

BIK004AI:W004-T019-SYSTEM-FLAG = 'S' )

4999 WS-DC(WS-SUB) = BIK004AI:W004-T000-DIST-CENTER

5000 WS-SUB = WS-SUB + 1

5001 END-IF

5002 END-IF


Initially I tried



IF (W004-T000-CTL-TABLE-NUMBER = 'T019' )

IF (W004-T019-SYSTEM-FLAG = 'W' OR +

W004-T019-SYSTEM-FLAG = 'X' OR +

W004-T019-SYSTEM-FLAG = 'S' )

WS-DC(WS-SUB) = W004-T000-DIST-CENTER

WS-SUB = WS-SUB + 1

END-IF

END-IF



Then too I was getting *******A010 INVALID FILE REFERENCE - BIK004AI

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Mon Oct 29, 2007 1:05 pm
by CICS Guy
Is the file synchronized?
Is the file closed?
Is the file at EOF?

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Thu Nov 22, 2007 10:56 am
by shivkumar
4997 *******A010 INVALID FILE REFERENCE - BIK004AI

*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)

The line number 4997 is


4997 IF ( BIK004AI:W004-T000-CTL-TABLE-NUMBER = 'T019' )

4998 IF ( BIK004AI:W004-T019-SYSTEM-FLAG = 'W' OR +

BIK004AI:W004-T019-SYSTEM-FLAG = 'X' OR +

BIK004AI:W004-T019-SYSTEM-FLAG = 'S' )

4999 WS-DC(WS-SUB) = BIK004AI:W004-T000-DIST-CENTER

5000 WS-SUB = WS-SUB + 1

5001 END-IF

5002 END-IF



this error means problem in file opening
******A010 INVALID FILE REFERENCE - MASTER
By examining the statement involved, you can resolve the great majority of
errors detected at execution time. The error message indicates the number of the
incorrect statement if the STATE or FLOW options of the PARM statement are in
effect. For program interrupts, you can analyze the problem in more depth. For
interrupt codes 1 through 11, the error analysis report and supporting DEBUG
options are provided.
The operating system detects execution errors and gives a cross-referenced
diagnostic for such things as input data validity, data set format, illogical access
method requests, security violations, and program interrupts.

may this will help u .

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Sat Jan 29, 2011 8:51 pm
by BillyBoyo
TRESA wrote:i get error message "A010 INVALID FILE REFERENCE


You get this message either when a file is closed (ETP opens the file when use use an IO command, and closes it after the JOB/SORT terminates) or after EOF has been returned (so there is no valid data in the record area) and you try to just use data from the file, or after EOF and you try an IO command which is no longer valid. Note, after POINT on a VSAM returns EOF, it is still valid to do PUT, POINT, READ, but not GET.

PUT would be to extend the file (my technique is to POINT with high-values in the KEY to get EOF).
Obviously another POINT or a READ, would be a further attempt at valid processing and would not cause the A010.

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Sun Jan 30, 2011 4:38 am
by dick scherrer
Hello,

It is best to reply to currently active topics rather than topics that have been inactive for multiple years. . .

d

Re: INVALID FILE REFERENCE_easytrieve

PostPosted: Sun Jan 30, 2011 4:50 am
by BillyBoyo
dick scherrer wrote:Hello,

It is best to reply to currently active topics rather than topics that have been inactive for multiple years. . .

d


Well, for the first few days I didn't, when I didn't realise a lot of the stuff was from learning/training. I've read comments about how much people have learned from going through these forums, so I thought it might then be worhtwhile to dot some i's and cross some t's on older stuff, which might mean people look and don't ask a similar question next time.

OK, though, busted.