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

what is estimation? and what is the level identifier parameter in PF?

3 Answers   TCS,


i want to retrieve record b/w 2 dates in as400

2 Answers   L&T,


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

2 Answers  


In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening

2 Answers  


1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?

1 Answers   HP,






Can someone tell me tell me what is meant by message wait...?

1 Answers  


what is overlay? how can we pass parameters in cl or rpg programing? how can we get data area value in cl or rpg programming?

2 Answers   IBM, Patni,


1.The questions have given an array declaration and move operation then this statement is correct or not?

3 Answers   TCS,


What would be the result on writing a data record to a PF file using the "WRITE" opcode after the SETON *ON *INLR statment?

10 Answers  


Can you copy the records created by the OPNQRYF to other files and how?

2 Answers  


How do you find whether a job is a batch job or interactive?

4 Answers  


thanks mr.Harshad R Suryawaunshi,i'm new to as400 i think you are telling in rpgile i know only rpg400 if possible can you tell in rpg400

0 Answers   iGate,


Categories