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

Please help me, I have created window subfile,I have created Footer with same lengh and postion of window SFL. When I call the pgm, first is shows only Footer and then it shows subfile records.This time Footer is not showsing ..plz hel me how can i do it...? Sameple DDS and RPG: A R WIN1 SFL A*%%TS SD 20090130 165346 MUNSHIJ REL-V4R2M0 5769- PW1 A FLD001 1Y 0B 4 3EDTCDE (Z) A ATFILE R O 4 7REFFLD (QWHFDBAS/ATFILE LIB/LIBF- A ILE) A R WINCTL SFLCTL (WIN1) A*%%TS SD 20090202 123459 MUNSHIJ REL-V4R2M0 5769- PW1 A ALTNAME ('y') A SFLSIZ (0004) A SFLPAG (0004) A WINDOW (FOOTER) A ROLLUP (27) A ROLLDOWN (28) A CF12 (12 'Cancel') A 50 SFLDSP A N51 SFLDSPCTL A 51 SFLCLR A 1 2'Select Option,Press enter' A 2 3'1= Select' A R FOOTER A* A WINDOW(8 31 9 43) A 8 4'F12 = Cancel' A R DUMMY ASSUME A 24 10' ' in RPG: Dow *IN12 = *Off Write Footer Fxfmt WInCTL

2 Answers  


How would display prime numbers using CL program?

0 Answers   Hexaware,


we are sending data of physical file to screen design and it is showing no record why?

1 Answers   NTT Data,


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

2 Answers  


can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com

0 Answers  






Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?

0 Answers  


What is the purpose of PUTOVR keyword?

2 Answers  


where we give the MSGSFL in rpg400?

4 Answers  


What is the syntax of passing parameters to a procedure by value?

1 Answers  


what is kids-rpg?

0 Answers   IBM,


how do I do concatenation in rpg iv, like I do in cl?

1 Answers   IBM,


Anyone help me for the below question:- If problem/error occur in *PSSR subroutine,how should I handel it in RPG program.

1 Answers  


Categories