INVALID FILE REFERENCE_easytrieve



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

INVALID FILE REFERENCE_easytrieve

Postby TRESA » Sun Oct 28, 2007 12:12 pm

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:
TRESA
 
Posts: 8
Joined: Sun Oct 28, 2007 11:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: INVALID FILE REFERENCE_easytrieve

Postby CICS Guy » Sun Oct 28, 2007 7:59 pm

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?
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: INVALID FILE REFERENCE_easytrieve

Postby TRESA » Mon Oct 29, 2007 8:33 am

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
TRESA
 
Posts: 8
Joined: Sun Oct 28, 2007 11:51 am
Has thanked: 0 time
Been thanked: 0 time

Re: INVALID FILE REFERENCE_easytrieve

Postby CICS Guy » Mon Oct 29, 2007 1:05 pm

Is the file synchronized?
Is the file closed?
Is the file at EOF?
CICS Guy
 
Posts: 246
Joined: Wed Jun 20, 2007 4:08 am
Has thanked: 0 time
Been thanked: 0 time

Re: INVALID FILE REFERENCE_easytrieve

Postby shivkumar » Thu Nov 22, 2007 10:56 am

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 .
shivkumar
 
Posts: 5
Joined: Thu Oct 25, 2007 6:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: INVALID FILE REFERENCE_easytrieve

Postby BillyBoyo » Sat Jan 29, 2011 8:51 pm

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: INVALID FILE REFERENCE_easytrieve

Postby dick scherrer » Sun Jan 30, 2011 4:38 am

Hello,

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

d
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: INVALID FILE REFERENCE_easytrieve

Postby BillyBoyo » Sun Jan 30, 2011 4:50 am

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.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post