OVRDBF to QTEMP and using in RPGLE

565 pts.
Tags:
#AS400 #RPGLE #as400
I have below CL source where I am overriding STDOUT to QTEMP file. I have a RPGLE program (this RPGLE calls CL program) where I want to read from this QTEMP file and process the records. The reason why i have used QTEMP is, I do not want to create the file in any library. However, how can I compile RPGLE program as the file is created only in QTEMP? In RPGLE, I am defining EXTFILE keyword and pointing the file to Qtemp directory. 

CL Program 

CLRPFM QTEMP/File1 
OVRDBF FILE(STDOUT) TOFILE(QTEMP/FILE1) + 
 OVRSCOPE(*CALLLVL) SHARE(*YES) 
 QSH CMD('ls -l *.* ') 
 DLTOVR FILE(STDOUT) LVL(*)


Software/Hardware used:
AS400
0

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: 1  Reply

 
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.
  • TheRealRaven
    Normally, a library might be used to hold "models" of files. These are just file descriptions with no members. Like all of the various system model files, they are intended to be duplicated into any production library (or QTEMP, etc.) on an ad hoc basis whenever needed usually with CRTDUPOBJ. Keeping a 'model' ensures consistency over time as the system and the apps evolve.

    As simple file descriptions, the objects are relatively tiny. But the consistency can be nearly priceless.

    Compilations are based on the 'models'. OVRDBF at run-time then points to the duplicated file. The duplicate often should have its own name to avoid contamination, and the override causes that name to be used when the compile name is opened.
    36,095 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: