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...


A phisical file has two fields like 1) Account No(10,0)
2)Phone No(15,0)Unique on both fields?Please give me the
answer for this?

Answers were Sorted based on User's Feedback



A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / swadesh.yadav

Your question is not very clear but whereas i understand
if we make both fields unique, both of fields accept the
values unique i.e it will not accept duplicate value
together.For Example
Acct.no Phone no.
1111 2222(we can put this values)
1111 2222(Duplicacy not allowed)
1111 3333(we can put that)
2222 3333(we can put that)

Is This Answer Correct ?    10 Yes 0 No

A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / gaurav

You can use File level keyword 'UNIQUE' which will accept
only unique record entry according to the key fields
defined.

Is This Answer Correct ?    3 Yes 0 No

A phisical file has two fields like 1) Account No(10,0) 2)Phone No(15,0)Unique on both fields?Pleas..

Answer / amit

If you use UNIQUE on both fields then one account will
allow only one phone number. Another phone number can't be
used there similarly you can't have one phone number
associated with multiple account.

however if you give unique constraint for the key
combination then it would ensure that you have account
number and phone number combination is unique.

So you can have same account number with multiple phone
numbers and vice versa.

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More IBM AS400 AllOther Interview Questions

what is cab?

0 Answers   IBM,


What is the purpose of STRCMTCTL command?

1 Answers  


what is the maximum number of parameters allowed in rpg?

1 Answers   IBM,


How to debug a batch job when it is in messagewait(mswg) status. I know the steps for batch ebugging, but im confusing with when we submit any job for batch debug we put in held state. So here also do same thing or any other way?

0 Answers  


load all subfile logic in sqlrpgle and when updating particular record it must be lock form other jobs (not a file)?

1 Answers   Wipro,


What is LEVEL CHECK?

7 Answers   HCL, TCS,


how to write *pssr ?

0 Answers   IBM,


Which command we can use to update a physical file using c.l pgm?

19 Answers   Ocwen,


how to toggle between single line and multi - line display of a particular record in a subfile?

1 Answers   IBM,


How to create a user defined (general) data area?

1 Answers  


Hi friends i have i question please reply me asap. what would be coding in DDS and programing part for this condition suppose that i have three fields in the display file(subfile)which has 7 record format. Condition is ''The supplier LOT, ISSUED TO PROD and LINE GRP fields in display file(Subfile) will not be shown if their respective fields are blank/zero in the record formats WIM311FM and Record format WIM311FM. I want coding part in DDS and Programing. Please reply me as soon as posible.

1 Answers   IBM,


Hi,while writing a program, what is the mandatory specification using rpg/400 (in7 specification)?And please tell me what is the difference between SCAN AND CHECK opcodes?can any body tell me in real time senario?with example?

3 Answers  


Categories