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 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.
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?
can I touch the array during treatments?
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
how do I declare a minor?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is the rpg system?
How to call one program from another program in RPG? please help me with the code
When it is desirable to describe files Internally?
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.
How to write record if no field or the field are different in physical file in rpgle ?
is this a rpg channel?
How to declare the pull button in AS/400..
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.
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