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 |
how do u track msg in cl pgm???
The PGMA calls PGMB.PGMB generates a report.The report should contain the called program name(PGMA).How do i get the called program name in PGMB to print it on the spool file?(calling program name should NOT be hard coded or passed as parameter to called program?
what are the array operations?
I have file with data as follows data 1 2 3 4 5 I need to read 1 and 5 ,then 2 and 4 then like.. upto end of file, can any one help on this
check existence of one record without using chain or read?
what procedure should we use to find whether the following operations are successful or not setll setgt chain read reade readp pls tell with example i'm not lazy to read the manual or not lazy to do anything.but sometimes i cannot understand the things given in manual in high level english its little bit complicated for me,i can't understand their way of writing thats why i ask these questions here and find the solution in simple words that i can understand thats the real reason sir.sorry if i had hurt you or disturbed you.please understand my situation.
1.Are there any errors in the following statement?If so then list them.DTAARA is a data area having a field EMP # and EMPNO is a field in the file EMPPF.Which has one record. READ EMPPF IF %FOUND(EMPPF) IN DTAARA EVAL EMP#=EMPNO OUT DTAARA ENDIF
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
If there are 1000 member(PGM type) in a SRC file. How can we compile in a CL program? ( It need to be done in a loop)?
Can someone tell me tell me what is meant by message wait...?
Program to read marks of 10 students for 4 subjects and compute and display total marks and status of each student 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.