"WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx> wrote on 05/09/2016 02:19:17 PM:
How would the following declaration look? (ugly but valid)
DCL VAR(&DS1) TYPE(*CHAR) LEN(1000)
DCL VAR(&DS2) TYPE(*CHAR) LEN(1000)
DCL VAR(&NOTSTORAGE) TYPE(*DEC) LEN(15 0)
DCL VAR(&FIELD1.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS1)
DCL VAR(&FIELD2.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS2)
DCL VAR(&FIELD1.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS1)
DCL VAR(&FIELD2.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS2)
DCL VAR(&FIELD1.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS1)
DCL VAR(&FIELD2.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS2)
I know what you're implying and I thought if that, too, but didn't
say anything. You're correct that it would look like this and not be very
helpful.
DCL VAR(&DS1) TYPE(*CHAR) LEN(1000)
DCL VAR(&DS2) TYPE(*CHAR) LEN(1000)
DCL VAR(&NOTSTORAGE) TYPE(*DEC) LEN(15 0)
DCL VAR(&FIELD1.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS1)
DCL VAR(&FIELD2.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS2)
DCL VAR(&FIELD1.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS1)
DCL VAR(&FIELD2.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS2)
DCL VAR(&FIELD1.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS1)
DCL VAR(&FIELD2.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS2)
However, he was thinking of this -- which would be helpful -- and
I know you know that, too. hehehe
DCL VAR(&DS1) TYPE(*CHAR) LEN(1000)
DCL VAR(&FIELD1.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS1)
DCL VAR(&FIELD1.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS1)
DCL VAR(&FIELD1.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS1)
DCL VAR(&DS2) TYPE(*CHAR) LEN(1000)
DCL VAR(&FIELD2.1) TYPE(*CHAR) STG(*DEFINED) +
LEN(512) DEFVAR(&DS2)
DCL VAR(&FIELD2.2) TYPE(*CHAR) STG(*DEFINED) +
LEN(150) DEFVAR(&DS2)
DCL VAR(&FIELD2.3) TYPE(*CHAR) STG(*DEFINED) +
LEN(10) DEFVAR(&DS2)
DCL VAR(&NOTSTORAGE) TYPE(*DEC) LEN(15 0)
Sincerely,
Dave Clark
int.ext: 91078
direct: (937) 531-6378
home: (937) 751-3300
Winsupply Group Services
3110 Kettering Boulevard
Dayton, Ohio 45439 USA
(937) 294-5331
*********************************************************************************************
This email message and any attachments is for use only by the named
addressee(s) and may contain confidential, privileged and/or proprietary
information. If you have received this message in error, please
immediately notify the sender and delete and destroy the message and all
copies. All unauthorized direct or indirect use or disclosure of this
message is strictly prohibited. No right to confidentiality or privilege
is waived or lost by any error in transmission.
*********************************************************************************************
As an Amazon Associate we earn from qualifying purchases.