Creating Custom Rule set Query
Posted: Thu Nov 06, 2008 6:59 pm
Hi,
I am relatively new with Qualitystage and got some basic questions regarding creating custom rule set.
My ClS file
;;QualityStage v8.0
\FORMAT\ SORT=Y
AARON AARON F
ABBEY ABBEY F
JOHN JOHN F
My DCT file
;;QualityStage v8.0
\FORMAT\ SORT=N
;-------------------------------------------------------------------------------
; Domain Fields
;-------------------------------------------------------------------------------
FirstName C 25 S FirstName
MiddleName C 25 S MiddleName
My PAT file
\PRAGMA_START
SEPLIST " ~`!@#$%^&*()_-+={}[]|\\:;\"'<>,.?/"
\PRAGMA_END
& ; Determine Input Pattern {InputPattern}
PATTERN {InputPattern}
& ; CALL Common_Patterns SUBROUTINE
\SUB Common_Patterns
? | ?
COPY [1] {FirstName}
COPY [2] {MiddleName}
\END_SUB
If my understanding of created files is right, I am jus classfying 3 names and the rest of the names in the file comes has "?", when i ran word INV report.Also i am jus creating 2 output columns in the report and in the patter acction file, I am jus specifiying one pattern to move on to the specified fields.
My question here is
Did i miss some basic logic here?, because when I test the rule by typing in 2 unknown names (which should return back "??" and place first operand in FN and second operand in middle name), nothing shows up in tst result.
Did i miss something basic here or my whole understanding of concepts is wrong?
Thanks in advance for the reply
I am relatively new with Qualitystage and got some basic questions regarding creating custom rule set.
My ClS file
;;QualityStage v8.0
\FORMAT\ SORT=Y
AARON AARON F
ABBEY ABBEY F
JOHN JOHN F
My DCT file
;;QualityStage v8.0
\FORMAT\ SORT=N
;-------------------------------------------------------------------------------
; Domain Fields
;-------------------------------------------------------------------------------
FirstName C 25 S FirstName
MiddleName C 25 S MiddleName
My PAT file
\PRAGMA_START
SEPLIST " ~`!@#$%^&*()_-+={}[]|\\:;\"'<>,.?/"
\PRAGMA_END
& ; Determine Input Pattern {InputPattern}
PATTERN {InputPattern}
& ; CALL Common_Patterns SUBROUTINE
\SUB Common_Patterns
? | ?
COPY [1] {FirstName}
COPY [2] {MiddleName}
\END_SUB
If my understanding of created files is right, I am jus classfying 3 names and the rest of the names in the file comes has "?", when i ran word INV report.Also i am jus creating 2 output columns in the report and in the patter acction file, I am jus specifiying one pattern to move on to the specified fields.
My question here is
Did i miss some basic logic here?, because when I test the rule by typing in 2 unknown names (which should return back "??" and place first operand in FN and second operand in middle name), nothing shows up in tst result.
Did i miss something basic here or my whole understanding of concepts is wrong?
Thanks in advance for the reply