Page 1 of 1

more than 80 character string in ezt

PostPosted: Wed Jun 08, 2016 3:29 pm
by arya_starc
I need to give a string in display which exceed the single line in ezt. suppose on string is dere is dere
example - SUBJECT: HELLO HOW ARE YOU: ERROR! DUPLICATE MAILING CODE IN OUT FILE
I needed that string in single line
I gave in ezt like below
eg:-

       DISPLAY 'SUBJECT: HELLO HOW ARE YOU: ERROR! DUPLICATE MAILING COD
 -             '
E IN OUR FILE'                                                      

This string i need to come in single line after executing my ezt.

Note:- upper method is not working in ezt

Re: more than 80 character string in ezt

PostPosted: Wed Jun 08, 2016 3:56 pm
by Aki88
Hope the below text from the Easytrieve Plus manual clears the doubt:

Continuations
The last non-blank character of a statement terminates the statement unless that
character is a - (hyphen) or a + (plus). The - indicates that the statement continues
at the start of the next statement area. The + indicates that the statement
continues with the first non-blank character in the next statement area. The
difference between - and + is important only when continuing words.
Continuation between words is the same for both. The following continued
statements produce identical results:

FIELD-NAME W 6 A +
VALUE 'ABCDEF'
-----------------------------
FIELD-NAME W 6 A -
VALUE 'ABC+
DEF'

To continue a statement defining DBCS data, you must delimit the DBCS data.
This means a shift-in code must precede the continuation character and a
shift-out code must precede the continuing DBCS data on the next record. The
following illustrates continuing a DBCS literal.

FIELD-NAME W 10 K +
VALUE '[DBDBDB]
[DBDB]'

The [ and ] indicate shift-out and shift-in codes.
---------------------------------------------------

FIELD-NAME W 10 K +
VALUE '?6DBDBDB+
?4DBDB'

The ? indicates a Header shift code followed by
byte count.
 


Edit: You need to add the closing single quote, followed by the continuation character '-' on the first text line.

Re: more than 80 character string in ezt

PostPosted: Thu Jun 09, 2016 12:55 am
by BillyBoyo
+ continuations are much easier.

DISPLAY "TEXT " +
        "MORE TEXT " +
        "EVEN MORE TEXT"


Even:

DISPLAY "TEXT " +
        some-descriptive-name +
        "MORE TEXT " +
        some-other-descriptive-name +
        "EVEN MORE TEXT"


DISPLAY  +
        "TEXT " +
        some-descriptive-name +
        "MORE TEXT " +
        some-other-descriptive-name +
        "EVEN MORE TEXT"


A line ends if it does not have a continuation. Else it is a continuation. Really simple. With + you can format however you like (so do it well). With -?, well, forget it, it's for the tedious.