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 |
What is the function of SEU ?
1.What is the difference between regular join logical file and non join logical file? 2.what are the nessasary keywords for non join logical file
Suppose you have 3 members in a database file. How to read records from all the members Without using CL (OVRDBF) i.e. it should be handled exclusively in an RPG program?
Why would you prefer OPNQRYF than logical file?
is there any way I can ease my rpg controls on numeric input fields? How about an input date field?
how can you detect overflow for a print program that prints multiple lines per cycle?
Q. 1.What are the in build functions in CL program and what are uses of thes in build functions? 2.How we can create own command in CL program? 3.What is use of STRSRVJOB?
What are the system objects required for journalling?
how do you know that records are locked?
why is as/400 called object oriented machine?
How can we sort an array?
when should I use method get, and when should I use method post in my cgis?