1.How can you search an entire source file for a particular
field name?

2.How can you find the differences between two versions of
the source for the same program?

3.What is a hidden field as it relates to a sub file?

4.How do you display a sub file that has no records in the
sub file?

Answer Posted / sourabh

1. Through READE opcode
4. With the help of SFLINZ keyword. Use this keyword in
display file with indicator (suppose 33).
After the Do loop where the data has been sent to buffer but
not written on the subfile, use the following code


IF RRN = 0 (OR 1 DEPEND FOR WHICH VALUE U HAD INITIALIZED IT)
MOVE *ON TO CONTROLLER INDICATOR
MOVE *IN33 *ON
MOVE *OFF TO CONTROLLER INDICATOR

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a record lock error?

1259


what is *place and *auto keyword in prtf ?plz explain

2720


We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?

762


what is file information data structure?

1361


How would display prime numbers using CL program?

5672






can you debug ile rpg program using isdb?

733


Explain mdt?

662


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?

511


what are the key words you must use when using a subfile?

686


explain sflclr, sflend, sfldlt, and sflcsrrrn?

882


What is the difference between iter and do?

668


what is the use of sflnxtchg?

797


during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.

749


What is the difference between copybooks and subprocedures in as400?

801


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

766