i want to perform uniqness on db file bt my db file nt
hving key by useing rpgle.
Answer Posted / ravi kumar
Create LF for PF and take UNIQUE keyword in file level and take one field as key field(Whenever UNIQUE keyword is used in LF, It will be compiled successfully if your PF doesn't have DUPLLICATE RECORDS orher wise it will not be compiled.)
After creating LF, You have to use LF in RPGLE. Then you can retrieve and insert records through RPGLE.
I have got success in this way...
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
how can you display specific subfile page on the screen in unequal subfile?
What is the purpose of record level identifier?
is this a rpg channel?
can you debug ile rpg program using isdb?
how do I declare a minor?
We have job which is running as batch. It takes atleast 06 hours to complete tht job. But I wanna do tht job with in 3 hours?
how does the rpg element work?
how do you use commitment control in rpg?
how do I play {insert rpg system here}?
How do u design a physical file, when you have 2 Unique fields like for eg in A student file student ID and student examination no both are unique
How to declare the pull button in AS/400..
how do I declare a table or array in rpg iv?
How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?
what is an online rpg?
How Chain operation copies the record's data to the input buffer for the program?