USNAME Standardizaton rule

Infosphere's Quality Product

Moderators: chulett, rschirm

Post Reply
jaksani
Participant
Posts: 48
Joined: Tue Mar 01, 2011 12:26 am
Location: Hyderabad

USNAME Standardizaton rule

Post by jaksani »

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.
Thanks & Regards,
Venkat Jaksani
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

User_option is being assigned by the COPY actions directly.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
jaksani
Participant
Posts: 48
Joined: Tue Mar 01, 2011 12:26 am
Location: Hyderabad

USNAME Standardizaton rule

Post by jaksani »

ray.wurlod wrote:User_option is being assigned by the COPY actions directly. ...
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.

& =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
rjdickson
Participant
Posts: 378
Joined: Mon Jun 16, 2003 5:28 am
Location: Chicago, USA
Contact:

Post by rjdickson »

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.
Regards,
Robert
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

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.
jaksani
Participant
Posts: 48
Joined: Tue Mar 01, 2011 12:26 am
Location: Hyderabad

Post by jaksani »

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.
Thanks for your response.
Is it necessary to select any one option?
Thanks & Regards,
Venkat Jaksani
rjdickson
Participant
Posts: 378
Joined: Mon Jun 16, 2003 5:28 am
Location: Chicago, USA
Contact:

Post by rjdickson »

Hi,

No, it is not required But it can, in some cases, improve processing. If, for example, you ONLY have Individual names, then you can use the 'Process all as Individual' to tell QualityStage to NOT try to figure that out.
Regards,
Robert
Post Reply