How to create a key field for a logical file inside RPG?
Answers were Sorted based on User's Feedback
Answer / rajesh n
In D Spec use KFLD and key field name.
Example:
KFLD Fld1.
| Is This Answer Correct ? | 5 Yes | 6 No |
How can we change element of compile time array?Can we do so
Need a sql query: retrive all duplicate records in table
1.I have a Physical file with 100 records, No duplicates exists, all are Unique,But while i am running Runqry utility i am getting only 80 records..What could be the reason?
1.WHAT IS WRONG WITH THE CODE BELOW? C CUSTNO CHAIN CUSTMAST IF %ERROR can any body find the wrong please? 2.What builtin function will you use to achieve the following functionality? C QTY IFLT *ZERO C QTY MULT-1 QTY ENDIF
how do u find whether a record is locked or not??
what is the difference between the cpyf command crtdupobj command?
Difference between RESET and CLEAR
what is an online rpg?
1.How to read a subfile in out put mode? 2.what are the keywords used to share same file? 3.using composite key which rpg code used?
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?
1. If there are two programs using same file and 2 users are using the file at the same time and what can be done to allow them both to access? 2. How can remove lock from the file for accessing it by both users?
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program