Easytrieve error A045

Ask/Clarify the questions on EASYTRIEVE

Moderators: DikDude, Moderator Group

Post Reply
Dick here
Member
Posts: 5
Joined: Tue Jan 27, 2009 4:52 pm

Easytrieve error A045

Post by Dick here » Tue Jan 27, 2009 4:55 pm

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 !

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Tue Jan 27, 2009 5:28 pm

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 / .. )
Natarajan
Chennai

Dick here
Member
Posts: 5
Joined: Tue Jan 27, 2009 4:52 pm

Post by Dick here » Tue Jan 27, 2009 5:34 pm

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.

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Tue Jan 27, 2009 5:49 pm

I dont see an issue with declartion.

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

Dick here
Member
Posts: 5
Joined: Tue Jan 27, 2009 4:52 pm

Post by Dick here » Tue Jan 27, 2009 6:00 pm

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.

Dick here
Member
Posts: 5
Joined: Tue Jan 27, 2009 4:52 pm

Post by Dick here » Tue Jan 27, 2009 7:09 pm

Definitely not any non-numeric data, and the program I copied it from works fine. I'm confused....

Dick here
Member
Posts: 5
Joined: Tue Jan 27, 2009 4:52 pm

Post by Dick here » Tue Jan 27, 2009 8:08 pm

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 !

User avatar
Natarajan
Moderator
Posts: 537
Joined: Fri Oct 10, 2008 12:57 pm
Location: chennai
Contact:

Post by Natarajan » Wed Jan 28, 2009 12:18 pm

Great. :D
Natarajan
Chennai

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others