QSORT issue in RPGLE program

5 pts.
Tags:
AS/400
RPGLE
I added QSORT logic to my RPGLE program. This is the first time I've tried using this. I have the BNDDIR('QC2LE') in the H specs, along with DFTACTGRP(*NO). The program compiles without error. But when I run the program, it errors CPF4131 on my 'open' file statement. I followed similar logic to: https://www.mcpressonline.com/programming/rpg/sorting-data-structures. What could be the issue? Or what am I missing? Decouser

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • BigKat
    Without code, we are left guessing, but C APIs are case specific, so EXTPGM('qsort') is different from EXTPGM('QSORT'), so verify you have the right cases.
    9,410 pointsBadges:
    report
  • Splat
    CPF4131 is a file level check. What file is it referencing in the error message?
    12,805 pointsBadges:
    report
  • ToddN2000
    If this is a temp file that is built when the job runs this could be causing the level check problem that Splat mentioned.
    124,155 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: