How do I read records from Subfile? what is the purpose of
READC explain with example?

Answer Posted / tprabhakarreddy

Q1. Using EXFMT opcode or Read
Q2. READC is used for reading all changed records in subfile

Is This Answer Correct ?    21 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

which program rpg or cl is efficent to update a transaction onto a database file and why ?

747


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

710


Suppose we have one database file and it is used by 5 programs and in 3 program we have to add some records in datbase file s what is the impact on other program?

1455


What is the difference between copybooks and subprocedures in as400?

810


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?

517






What is ment by record level identifier?

655


are there any useful c runtime apis that I can call from rpg iv?

700


If my rpg program has a date field, what extra care I have to take while compiling that rpg program? If the file is keyed and I have declared the file as well as key list properly in my program. Still am getting an error message like "chain/reade operation is not allowed" what may be the case?

620


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2052


How would display prime numbers using CL program?

5681


write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

831


do you use message subfiles? What are the necessary keywords required coding a message subfile?

688


what is data area and how it is used in rpg program ?

757


what do you mean by an input subfile, what are the keywords required?

774


What is the purpose of record level identifier?

729