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 / krishna

After displaying the sub file, create one subroutine with setll and pass this field value to another local variable, DOW the subfile data, display each record in 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 program status data structure?

1362


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

675


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

2708


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.

5375


How to handle duplicate error handling in RPG?

1662






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

746


what is the necessary keyword needed to scroll subfile records?

692


what is the use of sflnxtchg?

793


what is an online rpg?

709


can I touch the array during treatments?

735


how do you use commitment control in rpg?

743


how do I declare a table or array in rpg iv?

725


how can I tell when to replace the array?

688


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?

1437


How can we override a file during runtime in rpg?

675