If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.
There’s no specific keyword for this condition. One solution would be to build 2 logical files – the first logical with only NUM as key and UNIQUE specified and the second logical with only AGE as key and UNIQUE specified :-
LF1 :-
A UNIQUE
A R RECL1 PFILE(FILE1)
A K Num
LF2 :-
A UNIQUE
A R RECL2 PFILE(FILE1)
A K Age
You’ll have to make sure that your applications handle errors caused by trying to add duplicate keys to these logicals.
A UNIQUE
A R REC1 PFILE(FILE1)
A K Num
A K Age
In the Above code, Num and Age Combination is unique. Like
Num Age
1 1
1 2
2 1
2 2
But i want to be like
Num Age
1 1
2 2
Here num is unique and Age is Unique. Combinations is also unique
Is there ant specific keyword for this condition
Hi,
There’s no specific keyword for this condition. One solution would be to build 2 logical files – the first logical with only NUM as key and UNIQUE specified and the second logical with only AGE as key and UNIQUE specified :-
LF1 :-
A UNIQUE
A R RECL1 PFILE(FILE1)
A K Num
LF2 :-
A UNIQUE
A R RECL2 PFILE(FILE1)
A K Age
You’ll have to make sure that your applications handle errors caused by trying to add duplicate keys to these logicals.
Regards,
Martin Gilbert.