i want code and what are used key words are ...like wrkmbrpdm screen
(q) i have a file with 3 fields empno,empname,empaddr...
here you give the empno it displays from that number to remaining empno's how?
sub file screen:
employee details
pos to:empno then enter
empno empname empaddr
so file have 100 records from 1 to 100 so the above pos you give the 55 empno...it displays the from 55 to remaining...
......
please share this answel
Answers were Sorted based on User's Feedback
Answer / raghav
This can be achieved by using File Information Data Structure. First extract the RRN of the required record and pass it to the SFLRCDNBR (Hidden Field).
This will take the cursor to the desired record on the subfile.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna
After displaying the sub file, create one subroutine with setll and pass this field value to another local variable, DOW the subfile data, display each record in subfile.
| Is This Answer Correct ? | 0 Yes | 0 No |
When it is desirable to describe files Internally?
Are all these RPG/400 Interviewed Questions being asked recently? are current?
Some times While checking MSGW for object / member / record locks ,I have seen it's locked by itself ...? How it happen and what action we need to perform if job is updating / writing a record....?
how can we find setll setgt chain read reade readp operations are successfull or not,give example.explain in detail.
What is the OPEN and CLOSE accesspath?
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
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.
suppose i i am changing / updating record of subfile and i want to change the record in reverse order . means i want to change the bottom record first and so on through readc . how i do it please any one explain .
i want to retrieve record b/w 2 dates in as400
What are the necessary keywords required to code a message subfile?
during execution, an rpg/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes the following logical steps.
how do u track msg in cl pgm???