how to retrieve RRN value in RPGLE program

Answer Posted / narendra

There are many ways to retrieve the value of RRN in RPG. One way is to use the INFDS (File information data structure) and in data structure define the RRN from pos 397 to 400.
Another way is to use the Keyword RECNO(RRN) while defining the file in the F Spec.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what was the robotech rpg?

675


How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique

543


what are the key words you must use when using a subfile?

682


which program rpg or cl is efficent to update a transaction onto a database file and why ?

734


give an eg of ACQ-(ACQUIRE),BIT OFF,BIT ON,DEALLOC,DUMP,FEOD,FORCE,MHHZO,MHLZO,MHLLZO,MLHZO,REL,RESET,TESTZ,TESTB,TESTN----GIVE SMALL EXAMPLE TO THE OPCODES...TO UNDERSTAND FUNCTIONING...........

3267






How many program bind in one module....

2109


can I touch the array during treatments?

750


how do I declare a minor?

707


1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?

474


Please tell me how to read the records from a file with load an array of size with error conditions(The logic answer for this question is ARR is array of 99 elements Z-ADD 0 IDX *LOVAL SETLL FILE READ FILE 99 *IN99 DOWEQ *OFF IDX ANDLT 99 ADD 1 IDX MOVE FIELD ARR,IDX READ FILE 99 ENDDO).So,Please give me the complete of this code.

2043


what happens when sflsiz = sflpag? What are the advantages and disadvantages?

705


how can I tell when to replace the array?

690


When it is desirable to describe files Internally?

1178


1.Load an runtime array of length 99 from the pf and you want to handle all the possible errors?

2360


how does the rpg element work?

711