View previous topic :: View next topic
|
Author |
Message |
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
I have two byte character variable like
05 ADDRESS-VAR PIC X(02) VALUE SPACES.
88 ADDRESS-NOT-PRSNT VALUE SPACES.
88 ADDRESS-PRSNT VALUE ????????????
I want the condition variable for checking that address is present or not present.
I can able to give spaces if there is no address, but how can i give the address-present variable value. It can come any combination of two alphabets. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
IF NOT ADDRESS-NOT-PRSNT
The values for condition names are not variables. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Does this solves Your problem?
Code: |
05 ADDRESS-VAR PIC X(02) VALUE SPACES.
88 ADDRESS-NOT-PRSNT VALUE 'YY'.
88 ADDRESS-PRSNT VALUE 'NN' |
Further, for this
Quote: |
It can come any combination of two alphabets. |
If You are checking just the 'presence of address', above definitions should work. Otherwise if you have a specific processing for each unique 'pattern' of alphabets (pattrens such as 'AB' is different than 'BA') then all such permutations (26P2, old maths) should be present at 88-level. |
|
Back to top |
|
|
Pons
New User
Joined: 25 May 2007 Posts: 61 Location: Coimbatore
|
|
|
|
Thanks Giegerich and Anju.
Giegerich we cant use NOT verb. This is voilating our coading standard.
Anju What is that two alphabets are state code. So we cant use YY or NN.
I didn't get the the proper meaing of all such permutations (26P2, old maths). What is that..... |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
IF ADDRESS-NOT-PRSNT
CONTINUE
ELSE
END-IF. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hello,
I'm Anuj not Anju..grin..
Quote: |
that two alphabets are state code |
ok, then try on Craig's suggestion.
By permutation i meant AB, BA, AC, AD..BA,BC,BD..etc.... In 26P2, '26' shoubd be percepted as 'superscript' & '3' as subscript, I cann't show it that way here. This is the way they use it in Mathematics here in India & this is called as Permutaion-combination Chapter of Maths' book here, if people call it something else in other parts of world, I'm sorry I'm not aware of that. Further, 'P' is meant for Permutation, Permutaion is an old method to get all the arrangements when one need to select only some valuses (here 2 alphabets) out of many (26 letters of english aplhabets).
I hope You got the meaning of 26P2, if not leave it, & proceed with suggestion above. Your this sentence made me to think this
Quote: |
It can come any combination of two alphabets. |
I thought for every unique state code you've to execute something different. |
|
Back to top |
|
|
|