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
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 |
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 |
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 |
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 |
How we can delete all the Logical File of a Physical file in one instance ?
What are the valid data types in Data Queue?
What is the purpose of CHGPF (Change physical file) command?
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?
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?
how to define to define a hidden filed in dspf ?
What is the purpose of the following? FORDHDR1 IF E K DISK ORDHDRF KRENAMEORDHDRF1
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.
How to see all record formats used in a file?
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?
1.what operation cannot be used in conjunction with file coded as divice type disk? 2.Difference between INCLUDE AND COPY?
can we define multi-dimensional arrays in rpg ?