How can u create a temporary file in CLP @ how to access
that temporary file in RPG program?

Answer Posted / svankipu

Use OVRDBF Command with SHARE(*YES) to share the ODP of this
file to othr pgms.

create temporary file using Open Query file command(OPNQRYF)

and use "Allow copy of data" (ALWCPYDTA) attribute to copy
the selected data into this file.

Now call the RPG pgm to use this file.
Thanks!

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

define the purpose of the leave operation?

1276


how to develop some simple graphs (bar charts) using just html?

871


how can you detect and handle a record lock situation?

1620


How do I remove a flag or check no. or name when a user opens too many sessions?

2014


what is xfoot opcode ?

1410


what is the command to know key fields of file?

881


How to Define a Procedure in RPG?

1454


define what a data area is along with a brief example of what it may be used for?

1281


What is the difference between non-join logical files and join logical files?

855


what is the maximum number of record formats in dspf?

1382


What is data structure in as400? What is the use of data structure?

841


What is file access opcodes?

1064


what is the function of cpyf command?

1315


how to declare a constant variable in the freeformat?

1190


what are different types of substems?

1736