more than 80 character string in ezt



Unicenter CA-Easytrieve Plus Report Generator: CA's information retrieval and data management tool

more than 80 character string in ezt

Postby arya_starc » Wed Jun 08, 2016 3:29 pm

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
arya_starc
 
Posts: 136
Joined: Mon Sep 21, 2015 1:39 pm
Has thanked: 5 times
Been thanked: 0 time

Re: more than 80 character string in ezt

Postby Aki88 » Wed Jun 08, 2016 3:56 pm

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.
Aki88
 
Posts: 381
Joined: Tue Jan 28, 2014 1:52 pm
Has thanked: 33 times
Been thanked: 36 times

Re: more than 80 character string in ezt

Postby BillyBoyo » Thu Jun 09, 2016 12:55 am

+ 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.

These users thanked the author BillyBoyo for the post:
arya_starc (Thu Jun 09, 2016 10:59 am)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times


Return to CA-Easytrieve

 


  • Related topics
    Replies
    Views
    Last post