Hi,
When I am trying to understand USNAME.PAT file I could not understand how 'user_option' variable is assigned.I pasted below that peice of code present in the pattern file.
;-------------------------------------------------
; Check for Default and Process Option Delimiters
;-------------------------------------------------
& =T= "ZQDINDZQ" ; Default Option Activated: Default Unhandled Data as Individual Name
COPY "DIND" User_Option
RETYPE [1] 0
& =T= "ZQDORGZQ" ; Default Option Activated: Default Unhandled Data as Organization Name
COPY "DORG" User_Option
RETYPE [1] 0
& =T= "ZQPINDZQ" ; Process Option Activated: Process all Input Data as Individual Name
COPY "PIND" User_Option
RETYPE [1] 0
& =T= "ZQPORGZQ" ; Process Option Activated: Process all Input Data as Organization Name
COPY "PORG" User_Option
RETYPE [1] 0
It would be highly appreciated if I can get some help on this.
Thanks in advance.
USNAME Standardizaton rule
USNAME Standardizaton rule
Thanks & Regards,
Venkat Jaksani
Venkat Jaksani
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
USNAME Standardizaton rule
I think I did not question properly.I understand that COPY is used to assign value.What I could not get is on what basis it is assigning that 4 values to user_option.ray.wurlod wrote:User_option is being assigned by the COPY actions directly. ...
& =T= "ZQDINDZQ" ;
& =T= "ZQDORGZQ" ;
& =T= "ZQPINDZQ" ;
& =T= "ZQPORGZQ" ;
My question is how/where from we are getting these values(starting and ending with ZQ)?
Thanks for your response.
Thanks & Regards,
Venkat Jaksani
Venkat Jaksani
Hi,
When you use the Standardize Stage and a rule set that ends in NAME (like USNAME), there is a 'Optional Name Handling' drop down box with the following options:
- Process all as Individual (ZQPINDZQ)
- Process all as Organization (ZQPORGZQ)
- Process Undefined as Individual (ZQDINDZQ)
- Process Undefined as Organization (ZQDORGZQ)
When you select the option on in the stage, it creates the ZQxxxxZQ literal automatically.
When you use the Standardize Stage and a rule set that ends in NAME (like USNAME), there is a 'Optional Name Handling' drop down box with the following options:
- Process all as Individual (ZQPINDZQ)
- Process all as Organization (ZQPORGZQ)
- Process Undefined as Individual (ZQDINDZQ)
- Process Undefined as Organization (ZQDORGZQ)
When you select the option on in the stage, it creates the ZQxxxxZQ literal automatically.
Regards,
Robert
Robert
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The other possible part of the answer to your question is to observe that what you posted is pattern action language. There is a pattern preceding each COPY action, which specifies the condition under which each constant will be assigned to the variable. The =T= operator forces the comparison to be against the actual text value (rather than the standardized, or "abbreviation").
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Thanks for your response.rjdickson wrote:Hi,
When you use the Standardize Stage and a rule set that ends in NAME (like USNAME), there is a 'Optional Name Handling' drop down box with the following options:
- Process all as Individual (ZQPINDZQ)
- Process all as Organization (ZQPORGZQ)
- Process Undefined as Individual (ZQDINDZQ)
- Process Undefined as Organization (ZQDORGZQ)
When you select the option on in the stage, it creates the ZQxxxxZQ literal automatically.
Is it necessary to select any one option?
Thanks & Regards,
Venkat Jaksani
Venkat Jaksani