i want code and what are used key words are ...like wrkmbrpdm screen
(q) i have a file with 3 fields empno,empname,empaddr...
here you give the empno it displays from that number to remaining empno's how?

sub file screen:

employee details

pos to:empno then enter
empno empname empaddr

so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining...


......

please share this answel

Answer Posted / raghav

This can be achieved by using File Information Data Structure. First extract the RRN of the required record and pass it to the SFLRCDNBR (Hidden Field).

This will take the cursor to the desired record on the subfile.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is file information data structure?

1381


how can I tell when to replace the array?

706


Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?

4221


can you debug ile rpg program using isdb?

743


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

2732






1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2378


1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5431


What is a record lock error?

1272


How to write record if no field or the field are different in physical file in rpgle ?

494


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

694


what is the rpg system?

670


How many program bind in one module....

2128


what is kids-rpg?

675


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?

521


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.

2056