what is code for reading member in rpgle when wehave
like extmbr(*all)
so we have 3 members in *all then i want to read first
record in 2member
Answer Posted / adhar246
First do *HIVAL SSETGT on the file. It will set the pointer after the last record of first member. than do simple read operation. it will start reading from first record of second member.
| Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
what is term cua , saa?
Why we are not able to perform insert delete and update operation in Join logical file?
how to pick up the changed records every time in a subfile after the first change made ?
what is a logical file?
what is the command used to invoke rlu ?
Hi,Can any body give the code for the below mentioned quetion.?Im trying to get coding in with easily inderstanding.Plese give me the coding for this? 1.How would you achieve this requirement with out using RPG/RPGLE pgm,but by using only CL?Read a database file and display file contents on the screen when enter key pressed the next record should be displayed on screen.When the last record is reached or when F3 key is pressed the program should exit if the file is empty,a message should be displayed indicate that there are no records to display. Database file Name=EMPDBF Fields in EMPDBF to be displayed on screen Employee Number- EMPNUM(5,0) Employee Name- EMPNAM(30,A) Employee Address-EMP ADDR(50 A)
What is the maximum number of subfiles that can be specified in a display file?
give three main purposes of file specification ?
Pose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular name field. How can we do the above using search criteria other than using the if cond?
explain the use of dftwrt display keyword?
I need to insert a record in a file using STRSQL containing the some field values same as an already existing record in that file.I know to smple insert mentioning those values one by one.But is there any another query can be prepared for the same .Please share the query if known to you. Thanks in advance.
how can I control from my cgis the cache of a remote browser?
explain the purpose of keep and assume keywords?
what is the command to know key fields of file?
how many printer files maximum can be used in single rpg program?