I have a file .In that file i have 3 fields. Those fields are eno, ename, esal.Keyfield is eno. In that file i have data like this for eno 1,2,3,4,5.
Now i need to display 2nd record. That means i need to set the pointer on 2nd record... Then, write the complete rpg program using setll.

Answer Posted / swetha krishna

2 setll pf
read rec

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

1. What is bound-by-call and bound-by-reference? 2. Where and why is *Nomain used? 3. What are the difficulties faced by programmers when using service programs? 4. Explain the different ways of parsing and compiling XML in iSeries.

5431


How to handle duplicate error handling in RPG?

1689


how do you use commitment control in rpg?

761


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.

2056


what is data area and how it is used in rpg program ?

758






write an RPG program to calculate the marks of 5 students (A,B, C, D, E)in 3 different subjects (eng, math, sci) an display on the screen

835


How many program bind in one module....

2128


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

553


how do I preserve and clean the array?

677


can you debug ile rpg program using isdb?

743


explain sflclr, sflend, sfldlt, and sflcsrrrn?

891


How can we know running job is batch or interactive?

660


what is the necessary keyword needed to scroll subfile records?

707


if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.

2205


What is the difference between iter and do?

680