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




Answers were Sorted based on User's Feedback



i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fiel..

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

i want code and what are used key words are ...like wrkmbrpdm screen (q) i have a file with 3 fiel..

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




More RPG400 Interview Questions

Q1.How we can copy the data of file one session to another session? Q2.how we can execute a loop infinitely in AS/400 coding? Q3.In ALDON tool,multitask is posible on a perticular object by the user?

6 Answers   CSC,


what are the types of identifers

2 Answers   IBM,


can we use cl programming to update or delete physical files

12 Answers  


How can i check the object existance in RPG program without using QCMDEXC command.

7 Answers   IBM, JDA,


what is post opcode do

1 Answers   CTS,






How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program

1 Answers   UST,


how do I preserve and clean the array?

0 Answers   IBM,


How to declare the more than one file in cl/400.

13 Answers   IBM,


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

2 Answers   IBM,


How to read data from Nth member of a physical file containing some X number of members in it? "Provided member names are unknown"

4 Answers  


What will be your approach in going either for OPNQRYF or Logical files. Which one to go for?

2 Answers  


wat is the difference between dataarea and data queue?

5 Answers   Airtel, Four soft, Shahi Exports,






Categories