how to retrieve RRN value in RPGLE program
Answers were Sorted based on User's Feedback
Answer / 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 |
Hi Viewers can any body explain me how to update and ahange the already existed data in physical file using subfile ? please explain me with the code if possible?
How can we override a file during runtime in rpg?
how do u find whether a record is locked or not??
how can we know running job is batch or intractive ? i need all the possibilites.........plz help me
What is a record lock error?
A particular job executing on the iS is not behaving as expected and is operating in an environment in which it can be debugged. What commands would you use to debug and observe the program?
suppose one file is used by 100 user and file is locked by 100 user, what are the impact analysis?
3 members in a databasefile .how to read records from all the members?????????
1.Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation? 2. Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF? 3.I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program? 4.What is difference between Bind by copy and bind by reference?
can anybody explain significance of *loval setll with example code????
Thanks gagan for your answer,i'm new to as400,i don't know embedded sql in rpg.can you send me the coding for the below mentioned question in embedded sql rpg. 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.
check existence of one record without using chain or read?