Problems using QTEMP in a CLLE

5 pts.
Tags:
CLLE
OVRDBF
QTEMP
I have a CLLE program. I'm creating a file in QTEMP. Then I do an OVRDBF to the QTEMP file. Then I call an RPGLE to output records to the QTEMP file. The records are actually going to a file in my library list, not QTEMP. How do I get a CLLE to use my QTEMP file?

Software/Hardware used:
AS400

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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 7  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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • philpl1jb
    To clarify, a single CLLE program run once: creates  a file in QTEMP. OVRDBF to the QTEMP file. (with share *YES) Calls an RPGLE to output records to the QTEMP file. Are you submitting this job?   
    51,235 pointsBadges:
    report
  • TomLiotta
    It should work as you describe it. But because you don't show us your code, we have no way to know if you actually described how you programmed it. We can't find problems in code that we can't see.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    Well, it should work as I described it .. But, if it's a submitted job, the file and qtemp cease to exist when the job ends.
    51,235 pointsBadges:
    report
  • BigKat
    OVRDBF also with OVRSCOPE(*JOB) or OVRSCOPE(*CALLLVL)
    8,350 pointsBadges:
    report
  • ToddN2000

    Also where does your lib fall in relation to QTEMP in your jobs library list ?

    If Qtemp is not first, and in most cases it will not be, it will use the first library it finds the file in.

    Just do an overide to the one in QTEMP or reposition QTEMP in your library list.

    15,605 pointsBadges:
    report
  • TomLiotta
    @Phil:   Well, it should work as I described it ..   I agree. But to be clear, my comment was intended for the OP. I'd edit my comment... if editing worked.   @BigKat:   OVRDBF also with OVRSCOPE(*JOB) or OVRSCOPE(*CALLLVL)   That was my first thought, too. I didn't want to make it too easy on the OP since it could be a homework question. (Technically, a "pro" should already know about ILE activation groups, though we see contrary evidence often.)   ILE CL and ILE RPG have different AG defaults. CL goes in QILE, but 'bound' RPG goes to *DFTACTGRP. Any override must be direct at the appropriate AG or the job.   Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    "If there's anything more important than my ego around, I want it caught and shot now."  Douglas Adams
    51,235 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.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

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

Following