Hi,

Can anybody give me real sinario for SFLRCDNBR?with
example?

Answers were Sorted based on User's Feedback



Hi, Can anybody give me real sinario for SFLRCDNBR?with example?..

Answer / guest

This keyword allows us to specify what page we have to
display when the program issues the write or EXFMT screen.
For example subfile size is 35 & subfile page is 10 and at
anypont we have to dispaly 33th record directly.
For it we have to add one line in display file.

A var-name size dec.position use Function
A var 4 0 H SFLRCDNBR

where var will be a hidden field and we just assign the
value of Relative record number(RRN) to this var. by

C Z-ADD RRN var.

then it display the correspond record no.

Is This Answer Correct ?    13 Yes 3 No

Hi, Can anybody give me real sinario for SFLRCDNBR?with example?..

Answer / reecha bhandari

SFLRCDNBR is useful to display errors on particular page

example:

Suppose SFLPAG = 10 and if the error occurs at line 25 ,
then when u press enter the page runs by default to 1 page
if u r not using SFLRCDNBR.

if u want that only that page comprising error sud be
displayed then mov ethe value of RRN to this keyword.

Is This Answer Correct ?    6 Yes 3 No

Post New Answer

More RPG400 Interview Questions

Anybody know the difference of primary file and full procedural file

4 Answers  


What is the length of Signature?

3 Answers   UST,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


in rpg could u please tell me errors types and meanings like 3030 that ....

1 Answers   EXL, UHG,


1.Can any body share me about thease opcodes with example please.Im new for AS/400.Could u please tell me in real senario? 1.TESTN, 2.EVAL 3.EVALR, TIME, 4.MONITOR 5. ENDMON 6.ON-ERROR 7.COMMIT ROLLBACK?

1 Answers   CSC,


Difference between creating a report using Printer file and WRKQRY(Query Report) ?

3 Answers  


IN RLU what are the record level keyword is used?

5 Answers   iGate, TCS,


what is a rpg?

1 Answers   IBM,


How can we receive values from a called procedure in CL?

1 Answers   IBM, NTT Data,


How do I link an existing logical file to it's Physical File without recompiling?

2 Answers  


1.find most occurrences of a character. for exm: input:aaabbbbdddddyyy output: d 5 times how can i get that?

14 Answers   HCL,


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

7 Answers   IBM, JDA,


Categories