![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Figured I would ask here first since it would probably take forever to find in the documentation. When I run :ct dict file ns 001 A 002 0 008 T4,2 009 L 010 2 My question is on line 008, where does this point to? One attribute has on line 008 G*1 Any help would be appreciated. |
#3
| |||
| |||
|
|
* *The T4,2 is a text extraction operating (in this case) on attribute 0 (the item-id) specified in line 2 of the dictionary. The extraction will return 2 characters starting at position 4 (ie characters 4 and 5) of the item-id. So, if the id is ABCDEFG, then this will return DE. * *Likewise, the G*1 is a group extraction (which is more fully written as G0*1). This syntax means return 1 group delimited by an '*' character, after skipping the first 0 groups. So, if the id is ABC*123*XYZ, then this will return ABC. HTH, Brian On 17/08/2010 21:40, Specific wrote: Figured I would ask here first since it would probably take forever to find in the documentation. Thanks for the quick response =). I just found processing.codes in |
|
When I run *:ct dict file ns 001 A 002 0 008 T4,2 009 L 010 2 My question is on line 008, where does this point to? One attribute has on line 008 G*1 Any help would be appreciated. |
#4
| |||
| |||
|
|
* *The T4,2 is a text extraction operating (in this case) on attribute 0 (the item-id) specified in line 2 of the dictionary. The extraction will return 2 characters starting at position 4 (ie characters 4 and 5) of the item-id. So, if the id is ABCDEFG, then this will return DE. * *Likewise, the G*1 is a group extraction (which is more fully written as G0*1). This syntax means return 1 group delimited by an '*' character, after skipping the first 0 groups. So, if the id is ABC*123*XYZ, then this will return ABC. HTH, Brian On 17/08/2010 21:40, Specific wrote: Figured I would ask here first since it would probably take forever to find in the documentation. When I run *:ct dict file ns 001 A 002 0 008 T4,2 009 L 010 2 My question is on line 008, where does this point to? One attribute has on line 008 G*1 Any help would be appreciated. |
#5
| |||
| |||
|
|
On Aug 17, 2:51*pm, Brian Speirs <bs... (AT) btinternet (DOT) com> wrote: * *The T4,2 is a text extraction operating (in this case) on attribute 0 (the item-id) specified in line 2 of the dictionary. The extraction will return 2 characters starting at position 4 (ie characters 4 and 5) of the item-id. So, if the id is ABCDEFG, then this will return DE. * *Likewise, the G*1 is a group extraction (which is more fully written as G0*1). This syntax means return 1 group delimited by an '*' character, after skipping the first 0 groups. So, if the id is ABC*123*XYZ, then this will return ABC. HTH, Brian On 17/08/2010 21:40, Specific wrote: Figured I would ask here first since it would probably take forever to find in the documentation. When I run *:ct dict file ns 001 A 002 0 008 T4,2 009 L 010 2 My question is on line 008, where does this point to? One attribute has on line 008 G*1 Any help would be appreciated. How about this one F;0;C*1;:;(TSLA,CUSTOMERS,;X;0;0) I believe it is reading from the item.id of customers file in sla account?- Hide quoted text - - Show quoted text - |
|
as you appear to be using D3, consider replacing these "cryptic" codes with CALLs to basic subroutines for ease of maintenance (though |
#6
| |||
| |||
|
|
On Aug 18, 7:32*am, Specific <domp... (AT) gmail (DOT) com> wrote: On Aug 17, 2:51*pm, Brian Speirs <bs... (AT) btinternet (DOT) com> wrote: * *The T4,2 is a text extraction operating (in this case) on attribute 0 (the item-id) specified in line 2 of the dictionary. The extraction will return 2 characters starting at position 4 (ie characters 4 and 5) of the item-id. So, if the id is ABCDEFG, then this will return DE. * *Likewise, the G*1 is a group extraction (which is more fully written as G0*1). This syntax means return 1 group delimited by an '*' character, after skipping the first 0 groups. So, if the id is ABC*123*XYZ, then this will return ABC. HTH, Brian On 17/08/2010 21:40, Specific wrote: Figured I would ask here first since it would probably take foreverto find in the documentation. When I run *:ct dict file ns 001 A 002 0 008 T4,2 009 L 010 2 My question is on line 008, where does this point to? One attribute has on line 008 G*1 Any help would be appreciated. How about this one F;0;C*1;:;(TSLA,CUSTOMERS,;X;0;0) I believe it is reading from the item.id of customers file in sla account?- Hide quoted text - - Show quoted text - You are correct - that is what ;(TSLA,CUSTOMERS,;X;0;0) does, but it is first getting ID (attribute 0 --> the "first bit" after the "F") of the current file file, and appending (the ";") a "*1" (C*1 defines a constant ... and the following ":" is the concatenation operator) F correlatives use reverse polish notation which can make them "fun" --> as you appear to be using D3, consider replacing these "cryptic" codes with CALLs to basic subroutines for ease of maintenance (though I believe in most instances, whist "hard to read", the native F- correlative is going to be faster |
#7
| |||
| |||
|
|
What i've got from this is that A-correlative is like 2*2, while F is like an adding machine 2,2,*. C defines a constant, so the C*1 would be like using F;0;"*1";:; which would come out to "CustID*1" concatenated by using : Everything before the T file translation would be the source data used as record id. Hope I got that all right =) In this line F;0;C*1;:;(TSLA,CUSTOMERS,;X;0;0) Does () terminate the f-correlative? |
|
0:"*1"]TSLA,CUSTOMERS,;X;1;1 only documentation I could find on ] is "Replaces the top two items on the stack by 1 if the top item is greater than or equal to the second item, otherwise 0." |
#8
| |||
| |||
|
|
I've also seen A; 0:"*1"]TSLA,CUSTOMERS,;X;1;1 |
|
I'm not actually familiar with the comma after the file name. That may be a D3 specific syntax (whereas I have used these codes with mvBASE). Likewise, the first 1 after the X probably isn't needed - something like: TSLA,CUSTOMERS;X;;1 will probably work just as well. Cheers, Brian |
![]() |
| Thread Tools | |
| Display Modes | |
| |