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

if we tried to move year part of *iso date into a field of length 3, what will happen ?

654


what is the maximum number of fields under a record format of physical file?

1005


what is the function of cpysplf command?

980


can error messages as a result of a comp, range or values keyword be overridden?

1137


What Is The Purpose Of The "n" In The Following Calculation Specification?

674






can a indexed file be accessed in arrival sequence in rpg program?

951


what are all the contents of subfile?

989


what are the different types of data areas?

986


What is file information data structure(infds) in as400?

973


how do you specify page overflow indicator for printer files in rpg?

1467


is it there an easy way to determine if an html section is available to issue a wrtsection upon?

567


Difference Between Skip Before & Space Before?

674


what is rpg ?

944


records can be read/update/deleted with which file?

639


what does check opcode do ?

1069