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 |
How to update only a field of a PF in an RPG program. I don't want to update the record, only one field.
IN RLU what are the record level keyword is used?
How to add 2 new fields in a file? How many ways are there in as400?
There is a excel sheet having details of Old account number and new account number. I need to update these details in my AS400 files. i.e. all the records having old account number should be replaced with new account number. There can be 100 or 200 or 300 PFs...no fix files known. how can we do this?Solution should be performance oriented
1) How to declare a file? 2) How to define a display file? 3) How to monitor error messages in RPG? 4) How to find the attributes for subfiles? and what is the DDS for subfiles?
How can we call CL program to RPG? How many number of parameter we can pass
1.Where we declare Variables in RPG/400,RPGIV,RPGILE.? 2.When do we use D-spec and I-spec in real time ?.what is difference between them?
1.CA(command Atention key)& CF(command Function key) difference with example?Please can any body tell me in real time exp? 2.Can any body tell me some mandatery function keys using while creating any screen with use of SDA-FUNCTION kEYS?
can anybody help me that what is the procedure of debugging the service program?
Let?s consider a variable X of length 20. Move value ?ABC? to it.How to determine how many characters does X have?
Why did we give STRSRVJOB while debugging batch program
WHERE DO WE USE COMIT KEYWORD IN AN RPG PROGRAM? YOU MADE SOME CHANGES TO DATABASE BUT YOU DON'T WANT TO SAVE THOSE CHANGES NOW? HOW DO YOU HANDLE THIS ONE?