How to read alternative records in a pf by using rpg?

Answer Posted / mahalakshmi

All the records in a file is first loaded in to an datastructure and then incrementing the value of datastructure +2 then read the values in the datastructure.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

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.

2293


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?

741


can I touch the array during treatments?

966


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

2109


how do I declare a minor?

925


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

1778


what is the rpg system?

961


How to call one program from another program in RPG? please help me with the code

1508


When it is desirable to describe files Internally?

1422


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.

2423


How to write record if no field or the field are different in physical file in rpgle ?

718


is this a rpg channel?

922


How to declare the pull button in AS/400..

2144


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.

5982


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

806