ASCII interface
This interface can be used by applications written in any programming language, including that do not accept binary fields, such as Oracle's Forms environment.
All parameters are passed in ASCII and can be of fixed or variable size.
Numeric fields are always passed with a fixed size and aligned to the right, with zeros to the left. In In particular, the field whose content is a negative value has a “-“ sign in the leftmost position of the number (e.g. -0001 for a 5-position field whose content is the value –1).
Those of variable length are constructed in such a way that the first character indicates the value chosen for be the delimiter of that field, that is, the field is delimited by the chosen character or its complement in the case of pairs “( )”, “[ ]”, “{ }” e “< >”.
Examples of valid constructions are: (1234), [1234], {1234}, <1234>, $1234$, %1234%, |1234|, etc.
NOT VALID examples are as follows: $12$34$, .1.234,56., etc.
The criterion for choosing the delimiter must be that it does not exist as a valid character in the field in question. question. When passing data from the application to CliSiTef, as these are always known, the application can define a default character and always use it in all data passes. Upon return, like any other character is valid (for example in a receipt), the above rule must be used when interpreting the result returned by CliSiTef since it will choose the character that best adapts to the answer that is being generated.
Finally, there is a special character that is used in texts sent to a printer. O "\" (backslash) indicates the end of a line and must be used by the application to instruct the printer to close the current line and position yourself on the next one.