I want some suggestions on removing those phone number from consideration which has area code starting with 1 or 0.
In an existing rule set four dictionary fields are being populated for area code, exchange and number respectively.
I like to validate the area code does not start with 1 or 0.
I have tried creating following modification in.PAT file. It does not seem to be working.
**
COPY data(1:3) temp1
* [temp1(1:1] =1,0]
RETYPE [1] 0
Is there anything different needs to be done for this requirement?
Checking Phone number
-
- Premium Member
- Posts: 43
- Joined: Wed Feb 08, 2012 8:12 pm
- Location: United States
-
- Premium Member
- Posts: 43
- Joined: Wed Feb 08, 2012 8:12 pm
- Location: United States
Thanks for the quick response. It can be handled in transformer as you have said. However, I like to handle it in QS this time.
I kind of got somewhere after multiple trial and error.
**| [data(1:1) !=1]
the above code is giving me desired output but I like to give two numeric values as follows
** |[data(1:1) !=1,2]
Can somebody suggest me how to give multiple numeric conditional values in .PAT file.
Whenever I am attempting to give multiple values , My window is shutting down to no avail.
I kind of got somewhere after multiple trial and error.
**| [data(1:1) !=1]
the above code is giving me desired output but I like to give two numeric values as follows
** |[data(1:1) !=1,2]
Can somebody suggest me how to give multiple numeric conditional values in .PAT file.
Whenever I am attempting to give multiple values , My window is shutting down to no avail.
-
- Participant
- Posts: 527
- Joined: Thu Apr 19, 2007 1:25 am
- Location: Melbourne
Try double-quotes around the 1 and 2:
or
Code: Select all
** |[data(1:1) !="1","2"]
Code: Select all
** |[data(1:1) !="1" "2"]
-
- Premium Member
- Posts: 43
- Joined: Wed Feb 08, 2012 8:12 pm
- Location: United States