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

Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student in rpg

0 Answers  


can i use unique key in LF

3 Answers   TCS,


I have a Physical File name 'File1', which is present in two libraries named 'LIB1' & 'LIB2'. These 2 libraries are listed in the library list. Would like to access data from this file from these two libraries using RPG program. How to do this, any idea?

4 Answers  


How to check which are the pgms using 1 perticulate file.? I know there is many tool available for X-reference...but need to know is there any command available in the system...?

4 Answers   IBM,


i have 6 char field in program, but this field is using in all files i want to chage field size as 10 char , how can i do this except using *like defn...?

1 Answers   IBM,






when will come session device error?

4 Answers   TCS,


What is the difference between iter and do?

0 Answers  


Whether a module can consists of many procedures or it can consist of subprocedures having a main procedure?If it is possible that it can contain many individual procedures than can we have different name for complete module and how do we call this module in main modul?

3 Answers   Steria,


How to index LF by relative record no (RRN)

1 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


what is the difference between the procedure and module in ILERPG?

4 Answers  


wat is meant by hidden field , why it is used?

4 Answers   Four soft,


Categories