Page 1 of 1

Easytrieve error A045

Posted: Tue Jan 27, 2009 4:55 pm
by Dick here
A045 SORT TERMINATED DUE TO NON-ZERO RETURN CODE - 16

The manual helpfully tells me that "SORT did not run successfully", thanks a bunch.

Any ideas on this one anybody ? I've 15 years + easytrieve experience and can't remember it occurring before.

Thanks !

Posted: Tue Jan 27, 2009 5:28 pm
by Natarajan
verify the below points.

1. Not declaring ezt sort virtual file
2. Not provided enough space for virtual storage in JCL EZTVFM.
3. if load on eazytrieve exceeds while sorting given input file... i.e., input file fully unsorted & contains large no of records.
4. declaration of key with correct data type ( numeric / alphabetic / .. )

Posted: Tue Jan 27, 2009 5:34 pm
by Dick here
Natarajan wrote:verify the below points.

1. Not declaring ezt sort virtual file
2. Not provided enough space for virtual storage in JCL EZTVFM.
3. if load on eazytrieve exceeds while sorting given input file... i.e., input file fully unsorted & contains large no of records.
Hello

Here is my file:
FILE CHEKASM FB(12 12) VIRTUAL
CHECK-RECORD 1 12 A
CHECK-AREA 1 4 N
CHECK-MANAGER 5 8 N

I put records into it, then:
SORT CHEKASM TO CHEKASM USING (CHECK-MANAGER +
CHECK-AREA)

There are only a few hundred records, so size isn't a problem.

Posted: Tue Jan 27, 2009 5:49 pm
by Natarajan
I dont see an issue with declartion.

might be problem with data. In CHECK-MANAGER, CHECK-AREA contains alph-betic data.

Posted: Tue Jan 27, 2009 6:00 pm
by Dick here
Natarajan wrote:I dont see an issue with declartion.

might be problem with data. In CHECK-MANAGER, CHECK-AREA contains alph-betic data.
I very much doubt it, but I'll check. Any more ideas ? Thanks.

Posted: Tue Jan 27, 2009 7:09 pm
by Dick here
Definitely not any non-numeric data, and the program I copied it from works fine. I'm confused....

Posted: Tue Jan 27, 2009 8:08 pm
by Dick here
Solved ! I had to remove FLOW from the PARM statement at the beginning of the program. Why that worked I don't know, but it did it !

Posted: Wed Jan 28, 2009 12:18 pm
by Natarajan
Great. :D