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

what is procedure prototype and procedure interface.

0 Answers   IBM,


any one have give AS400 study material? pls pass it to gopalsai789@gmail.com

0 Answers   IBM,


What is the purpose of FRCDTA (Force Data) keyword?

1 Answers  


DIFFERENCE BETWEEN BINDING LANG AND BIND DIR WHEN USING IN SERVICE PGM...when using binding directory service pgm is necessary?

2 Answers   CTS,


What is a query can be displayed without saving it?

0 Answers   IBM,






Can anybody know what is Pick/Basic? Is it a programming language? can it be used in AS400 machine?

2 Answers  


In 'o' Specs What Is The Opcode For Write?

0 Answers   IBM,


define the purpose of the *bcat function?

1 Answers   IBM,


What is Group Job?

1 Answers  


How to write a password mask program in as400? like the password which i type should be displayed as '*****' r ###### which the user wishes to dispaly if u could help me with url r the solution in written code this will help me

21 Answers   Accenture, SNS,


What is the purpose of the following? A CSRLOC (F1ROW F1COL)

1 Answers  


where will control be passed after the execution of the *pssr subroutine if the factor2 of the endsr is blank ?

1 Answers   IBM,


Categories