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

Answers were Sorted based on User's Feedback



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

Answer / ravi shankar porwal

The temporary file can be created using Open Query file
commond(OPNQRYF).And it can be shared by other RPG programs
by specifying the shared ODP Paramenter 'yes' either by
OVRDBF Commond in cl pgm or by CHGPF Commond.

Is This Answer Correct ?    12 Yes 4 No

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

Answer / mike

CRTDUPOBJ QTEMP/FILENAME

OVRDBF FILENAME TOFILE(QTEMP/FILENAME)
CALL RPGPGM
DLTOVR FILENAME

DLTF QTEMP/FILENAME

Is This Answer Correct ?    3 Yes 1 No

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

Answer / 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

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

Answer / syam

It means a Data Area.
1. Create a Data Area = CRTDTAARA
2. Retreive a Data Area = RTVDTAARA (Read)
3. Change Data Area = CHGDTAARA (Write)

This all CL command and It can use in RPG program to Read
Data Area.

Is This Answer Correct ?    1 Yes 14 No

Post New Answer

More IBM AS400 AllOther Interview Questions

How we can delete all the Logical File of a Physical file in one instance ?

9 Answers   IBM,


What are the valid data types in Data Queue?

1 Answers  


What is the purpose of CHGPF (Change physical file) command?

1 Answers  


A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Please give me the answer for this?

3 Answers  


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

0 Answers  


how to define to define a hidden filed in dspf ?

0 Answers   IBM,


What is the purpose of the following? FORDHDR1 IF E K DISK ORDHDRF KRENAMEORDHDRF1

1 Answers  


Hello friends, i am new to AS/400. Can any one help me in AS/400 i meant say can you send me some FAQS and interview questions.

7 Answers   HanceInc, IBM,


How to see all record formats used in a file?

1 Answers  


what is the correct about QTEMP library(below mention)? a.it is Unique to a job b.it can be shared between different job c.it can only be deleted by QSECOFR d.Non Please give me the answer for this?

8 Answers   Wipro,


1.what operation cannot be used in conjunction with file coded as divice type disk? 2.Difference between INCLUDE AND COPY?

1 Answers  


can we define multi-dimensional arrays in rpg ?

1 Answers   IBM,


Categories