1. I have2 records in a PF.
READ PF
DO
DSPLY EMPNO
RETRN
DSPLY EMPNO
ENDDO
What was the output
2. SETON LR vs RETURN
3. Primary File
4. How to delete a deleted spaces
5. How to read a PF in reverse order in CL
6. I have a object in Lib A, B and C. But it shows in D
Lib..Why?
7.

Answer Posted / venkatesh p

1A: system will display the first record data and will exit
the program and when ever you recall that program 2nd time
from the same session then system will display the second
record data and subsequent calls from the same screen will
display the second record data only.

2A: SETONLR will close the files and then close the program
and exit the program but RETURN will remain open the opened
file and exit the program with out closing the files.

3A: Once if you define the file as primary file then system
will seuqnetial read the all the recods in that program and
then only it will exit the program, if you use the primary
file alone ina program you need to use the SETONLR because
system it self will close the file once it reaches the EOF.

4A: deleting the deleted space in the sense we are trying
reuse the space of deleted records for that we can it using
the command called "Reorganize Physical File Mbr (RGZPFM)".

5A: we can use the OVRDBF & POSDBF commands in CL

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what was the robotech rpg?

678


What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?

2513


can I touch the array during treatments?

750


Interviewer asked me write down DDS for load all subfile .can anybody write dds

1009


How can we override a file during runtime in rpg?

677






what is the difference between do while and do until?

695


what is program status data structure?

1368


What is the difference between copybooks and subprocedures in as400?

801


what is the procedure and explain about real time scenario.

1471


how can you display specific subfile page on the screen in unequal subfile?

669


What is ment by record level identifier?

645


Assume 2 users are using the same file and first user updates some record in the file. Will the 2nd user will be able to see the updated record or not?

507


How to declare the pull button in AS/400..

1870


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

1957


How to create a login screen using a command instead of display file.... intention is to get a password field on a command..... how do you achieve this...

1302