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 the use of Header Specification in RPG/400?

1 Answers  


Space & Skip Are Which Level Keywords?

0 Answers   IBM,


How to know message id (errorid) in msgfile when error is occurred on screen ? WRKMSF will display all error id but i want to know error id based on error msg only?

1 Answers   IBM, Ignis Technologies, SSR,


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

1 Answers   IBM,


What is the purpose of Level Check parameter in a Physical file?

1 Answers  






What are the different types of keywords in display files?

1 Answers  


What is the difference between Interactive & Batch Job?

1 Answers  


what is the sequence when using cursor?

0 Answers   IBM,


what is sflrolval?

0 Answers   IBM,


1. There is a file called Month. Month has 12 members called Jan, Feb, ..., Dec. How to design a rpg code which can access any member and show its content. (User can ask for any member when required)?

0 Answers  


what does check opcode do ?

1 Answers   IBM,


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

0 Answers   IBM,


Categories