Answer Posted / ravi kumar
Hi,
Yes. When Pf doesn't contain duplicate records based on key value then we can use UNIQUE keyword in logical file. If pf contain Duplicate values then LF will not compile.
I have tried in this scenario
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How to call one program from another program in RPG? please help me with the code
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.
When we have a file with Duplicate records and I want to read the unique record from the file. For example a file containing Emp Name as 'Ram' and there are 3 entries of it. So how to read a unique record from File?
How can we know running job is batch or interactive?
can any one help in hawkeye and turnover or any change management system plzzzzz or send the documents to my mail id :gvsp.as4@gmail.com
What is the diff bw PF/LF Name and their Record format name? what is restriction in record format then file name?
What is file identifier where we can use?
what is file information data structure?
Set on command is used for closed all opened files , initialize var and release resource , return cmd is used for return to calling program but my req. Is dnt close opened files and resource must released while doing transactions , how can i do this...?
if there is a module object , how to find the program object for this module object.Assume the module object name and program object name is not same.
What is a record lock error?
what is the use of sflnxtchg?
what do you mean by an input subfile, what are the keywords required?
How can we override a file during runtime in rpg?
What is the difference between iter and do?