Suppose in CL we reach at end of file and again we have to reach from 1 record
Answers were Sorted based on User's Feedback
Answer / surya
We can use POSDBF command in CL program
This command sets the record position of the database file that is opened with OPNID(XXX) to the starting position of the database file member that is currently open.
POSDBF OPNID(XXX) POSITION(*START)
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / ravi kumar
Hi Frnds,
I have tried with POSDBF but i can not reach. please post 1 example if possible
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / nitin
We can use OVRDBF and position file to *START
i.e. OVRDBF FILE(EMPLOYEE) POSITION(*START)
| Is This Answer Correct ? | 0 Yes | 1 No |
I know chain keyword retreive records randomly but how chain keyword exactly works internally????
what do you mean by an input subfile, what are the keywords required?
how to retrieve particular field records from a physical file,say i have a physical file called 'employee' in it i have to retrieve the records of a field 'admin' present in pf 'employee' using rpg,but i should not use logical file or openquery file.
What will be the value of STRING after line 0106 is executed in the code below? 0101 E* Fromfiletofile..tabnameprnentlenpdatabnamlenpda 0102 E ARR 8 1 0103 ISTRING DS 0104 I 1 8 ARR 0105 C MOVE *BLANK STRING 0106 C MOVEA'ABC' ARR A) 'AAAAAAAA' B) 'BBBBBBBB' C) 'CCCCCCCC' D) 'ABC ' E) ' ABC'
check existence of one record without using chain or read?
what are the parameters of jobd?give in detail.&what are the parameters of subsystem...????
How do you know if a record exists without doing a READ and CHAIN?
are there any useful c runtime apis that I can call from rpg iv?
Hi, Can anybody give me real sinario for SFLRCDNBR?with example?
I am Submitting one job in batch that job calls three progams(PGMA, PGMB, PGMC). PGMB should be called after sucessfully completion of PGMA as like for PGMC also. So Can you please tell me how can we do that (without using data area)
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 can a screen field that has changed since the last output operation be detected?