Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

how can you display specific subfile page on the screen in unequal subfile?

1204


What is the purpose of record level identifier?

1173


is this a rpg channel?

1219


can you debug ile rpg program using isdb?

1339


how do I declare a minor?

1208


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?

1302


how does the rpg element work?

1296


how do you use commitment control in rpg?

1326


how do I play {insert rpg system here}?

1082


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

1061


How to declare the pull button in AS/400..

2389


how do I declare a table or array in rpg iv?

1228


How to define data area in RPG program? In which scenario multi occurrence DS is use in AS400?

2063


what is an online rpg?

1325


How Chain operation copies the record's data to the input buffer for the program?

1666