pub:preprocessor
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
pub:preprocessor [2018/09/14 20:23] – [Configuration] kkramer | pub:preprocessor [2021/05/04 11:51] – [Insert Text] kkramer | ||
---|---|---|---|
Line 237: | Line 237: | ||
==== Conditions ==== | ==== Conditions ==== | ||
- | Conditions are entered via option 6, and are attached to applications and/or targets. | + | Conditions are entered via **option 6**, and are attached to applications and/or targets. |
* When attached to the **application**, | * When attached to the **application**, | ||
Line 280: | Line 280: | ||
- | There is a feature where you can name your document is using the **& | + | There is a feature where you Name objects or conditional list as fields which we defined and they can be reused for many times using the **& |
- | Press F8 when cursor is at &EMAIL and the following PR0035W3 window appears: | + | **Press F8 when cursor is at &EMAIL** and the following PR0035W3 window appears: |
< | < | ||
9/ | 9/ | ||
Line 307: | Line 307: | ||
F3=Exit | F3=Exit | ||
</ | </ | ||
- | You can now use the F8=Cond. Named Object option to name the object. | + | You can now use the **F8=Cond. Named Object** option to name the object. |
< | < | ||
9/ | 9/ | ||
Line 334: | Line 334: | ||
</ | </ | ||
+ | Select a field with option 1 and the PR0035W3 window is displayed as shown below: | ||
+ | < | ||
+ | 9/ | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | F Field . . : & | ||
+ | | ||
+ | D : | ||
+ | O Test value (& | ||
+ | EMAILADD | ||
+ | : UTQUE | ||
+ | L : BNAME | ||
+ | : G | ||
+ | : | ||
+ | 0 : | ||
+ | 0 : | ||
+ | 0 : | ||
+ | 0 More... | ||
+ | 0 F4=Prompt | ||
+ | 0 : | ||
+ | : re... | ||
+ | : | ||
+ | F3=Exi : | ||
+ | | ||
+ | </ | ||
+ | Enter a Value i.e.: | ||
- | < | + | Webmaster@INFORMDECISIONS.COM |
+ | |||
+ | |||
+ | |||
+ | Then we can use field EMAILADD to replace long name ‘Webmaster@INFORMDECISIONS’ | ||
+ | The Smart Router will check test value as conditional list, if found will replace test value by values which we have defined. | ||
+ | |||
+ | **Tests and Keyword descriptions: | ||
+ | < | ||
| | ||
Line and Attribute or | Line and Attribute or | ||
Line 347: | Line 383: | ||
| | ||
</ | </ | ||
- | |||
* **And/ | * **And/ | ||
Line 366: | Line 401: | ||
^ Comparand keyword ^ Meaning ^ | ^ Comparand keyword ^ Meaning ^ | ||
- | | ***USRPRF** | + | | ***BLANKS** |
+ | | ***USRPRF** | ||
| ***USRDTA** | Spool file user data | | | ***USRDTA** | Spool file user data | | ||
| ***OUTQUE** | Spool file outqueue | | | ***OUTQUE** | Spool file outqueue | | ||
Line 374: | Line 410: | ||
| ***JOBNAME** | Spool file job name | | | ***JOBNAME** | Spool file job name | | ||
| ***TOTALPG** | Spool file total pages | | | ***TOTALPG** | Spool file total pages | | ||
+ | |||
+ | 1. The processing priority: | ||
+ | |||
+ | * Map fields (with prefix ‘& | ||
+ | * Attributes of spool file (with prefix ‘*’) attributes: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | *FORM | ||
+ | *PGM | ||
+ | | ||
+ | | ||
+ | | ||
+ | * Name object: The first ten characters will be look up in list name objects | ||
+ | * Constant value | ||
+ | |||
+ | 2. Program will deal values above for both 2 fields: ‘Field’ and ‘Test value’. For example, we can define as below: | ||
+ | < | ||
+ | Field . . : ORLANDO@INFORMDECISIONS.COM | ||
+ | |||
+ | Test . . : *EQ *EQ, *LT, *LE, *GT, *GE, *NE, *IN | ||
+ | |||
+ | | ||
+ | |||
+ | Test value (& | ||
+ | |||
+ | & | ||
+ | </ | ||
+ | |||
+ | 3. Regarding test values: ‘Value, Value1 Value2…’ the program compare values as Constants | ||
+ | < | ||
+ | |||
+ | | ||
+ | |||
+ | |||
+ | |||
+ | Name: ODD1-5 | ||
+ | |||
+ | |||
+ | |||
+ | Value: | ||
+ | |||
+ | 1 3 5 | ||
+ | |||
+ | |||
+ | Testing Values | ||
+ | |||
+ | Field . . : & | ||
+ | |||
+ | Test . . : *EQ *EQ, *LT, *LE, *GT, *GE, *NE, *IN | ||
+ | |||
+ | |||
+ | |||
+ | Test value (& | ||
+ | |||
+ | ODD1-5 | ||
+ | </ | ||
+ | |||
+ | |||
+ | It similar to this case below: | ||
+ | < | ||
+ | Testing Values | ||
+ | |||
+ | |||
+ | |||
+ | Field . . : & | ||
+ | |||
+ | Test . . : *EQ *EQ, *LT, *LE, *GT, *GE, *NE, *IN | ||
+ | |||
+ | |||
+ | |||
+ | Test value (& | ||
+ | |||
+ | 1 3 5 | ||
+ | </ | ||
+ | |||
+ | ==== Insert Text ==== | ||
+ | Spool file text is entered via **option 8**. | ||
+ | |||
+ | < | ||
+ | iDocs SmartRouter | ||
+ | Insert Text into Spool File | ||
+ | | ||
+ | SR Engine Name/Desc. : EARNINGS1 | ||
+ | Application Name/Desc: EARNSRENG | ||
+ | Form App Reference . : EARNADD | ||
+ | Target Name/Desc . . : HANDOFF | ||
+ | | ||
+ | Source Spool Text: | ||
+ | Map Field : EMPLOYNO1 | ||
+ | From Page : Output Text To: Row 1 Column | ||
+ | Map Field : EMPLOYNO2 | ||
+ | From Page : Output Text To: Row 1 Column | ||
+ | Map Field : Or Constant | ||
+ | From Page : Output Text To: Row | ||
+ | Map Field : Or Constant | ||
+ | From Page : Output Text To: Row | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | </ | ||
+ | |||
+ | == F2=Conditionally Map == | ||
+ | |||
+ | **On iDocs 6.96 and older...** | ||
+ | Under the Insert Text function of a Smart Router Application, | ||
+ | |||
+ | **On IDocs 6.97 and newer...** | ||
+ | Under the Insert Text function of a Smart Router Application, | ||
+ | When you put the cursor on each of the Mapped Fields and select the **F2=Conditionally Map option**, you will see a window to apply your condition to the specific Mapped Field. | ||
+ | For example, for Mapped Field MAPONE, we can have a condition in which the Mapped Field is not equal (*NE) to - - - | ||
+ | - - - (five dashes) \\ | ||
+ | |||
+ | F2=Conditionally Map option on Mapped Field MAPONE displays the screen below: | ||
+ | < | ||
+ | iDocs SmartRouter | ||
+ | Insert Text into Spool File | ||
+ | | ||
+ | SR Engine Name/Desc. : EARNINGS1 | ||
+ | Application Name/Desc: EARNSRENG | ||
+ | Form App Reference . : EARNADD | ||
+ | ............................................................................... | ||
+ | : Conditionally Map Field: | ||
+ | : : | ||
+ | : Line# | ||
+ | : : | ||
+ | : 0001 | ||
+ | : 0002 : | ||
+ | : 0003 : | ||
+ | : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : | ||
+ | | ||
+ | </ | ||
+ | For the second Mapped Field MAPTWO, we can have a condition in which the Mapped Field is not equal (*NE) to *BLANK | ||
+ | < | ||
+ | iDocs SmartRouter | ||
+ | Insert Text into Spool File | ||
+ | | ||
+ | SR Engine Name/Desc. : EARNINGS1 | ||
+ | Application Name/Desc: EARNSRENG | ||
+ | Form App Reference . : EARNADD | ||
+ | ............................................................................... | ||
+ | : Conditionally Map Field: | ||
+ | : : | ||
+ | : Line# | ||
+ | : : | ||
+ | : 0001 | ||
+ | : 0002 : | ||
+ | : 0003 : | ||
+ | : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : : | ||
+ | : | ||
+ | | ||
+ | </ | ||
+ | |||
+ | **On IDocs 6.97 and newer...** \\ | ||
+ | **F4 Prompt** in the **Page**: field will specify where the inserted text will appear. | ||
+ | **Page:** field parameters on the Insert Text into Spool File screen are as follows: | ||
+ | |||
+ | * ** *FIRST** = Insert text on first page | ||
+ | * ** *LAST** = Insert text on last page | ||
+ | * ** *EXTB** = Spool page extra first page (at the beginning of spool page) | ||
+ | * ** *EXTE** = Spool page extra last page (at the end of spool page) | ||
+ | * ** *2NDLS** = Insert text on second to last page | ||
+ | * **(Blank)** = Leave blank to insert text into every spool page | ||
+ | * **(Specific page)** = Specify the page number to insert text | ||
===== Starting and Ending a SmartRouter™ Engine ===== | ===== Starting and Ending a SmartRouter™ Engine ===== |
pub/preprocessor.txt · Last modified: 2024/04/25 09:26 by kkramer