Hi,
Can anybody give me real sinario for SFLRCDNBR?with
example?
Answers were Sorted based on User's Feedback
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 |
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 |
RPG/400 faqs?
RPG/400 number of Records present in a physical file using file information data structure FPF001 IP E DISK F KINFDS INFDS1 IINFDS1 DS I *RECORD RECORD Is this coding correct sir,i have given I P E that is I- input,P-primary file,E-externally described. Primary to use RPG logic cycle,is this the correct method because we have to find number of records present using file information data structure in RPG/400 without doing any input/output operations on the file and also without using DSPFD,SQL. If the above coding is correct means,when i compile the program it gets compiled,but if i call the program it does not return anything,i need number of records,please complete the coding sir.
1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
1.How to load Records of a Physical file(PF) in the reverse order, in CL program?
How can we change element of compile time array?Can we do so
I have 1000 records in a file. I would like to generate 10 identical reports from this record with same format (structure of records) how do I do this?
how do you use commitment control in rpg?
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
1. Which Built-In-Function will you use to achieve the following functionality? CLONO1NO2NO3 Factorl÷÷+OpcdeFactor2++÷ResultLenDHHiLoEq C QTY IFLT *ZERO C QTY MULT -1 QTY C ENDIF a) %ABS b) %TRIM c) %TRIMS d) %UNS
What are different ways to pass data between programs and which one is the efficient way?
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