volking
asked on
Use of "TRIM" in DDS Logical File declaration
When building a Logical File Definition using DDS ...
... SST is the SUBSTRING function
0009.00 A WHOOWNS I SST(TLTBLS 26 5)
That's great ... but ...
I need the WHOOWNS field value LEFT SET and LEFT TRIMMED
Because SST(TLTBLS 26 5) actually evaluates to " XYZ" and " A" and " ZA"
How?
... SST is the SUBSTRING function
0009.00 A WHOOWNS I SST(TLTBLS 26 5)
That's great ... but ...
I need the WHOOWNS field value LEFT SET and LEFT TRIMMED
Because SST(TLTBLS 26 5) actually evaluates to " XYZ" and " A" and " ZA"
How?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
DANG IT!
HOLY SMOKES!
A TRIM type function may NOT EXIST in DDS ... because, the documentation says these are the ONLY keywords and I've checked EVERY ONE for a TRIM type function ....
The following keywords are valid for both physical and logical files (except where noted):
ABSVAL
ALIAS
ALL (logical files only)
ALTSEQ
ALWNULL (physical files only)
CCSID (physical files only)
CHECK
CHKMSGID
CMP
COLHDG
COMP
CONCAT (logical files only)
DATFMT
DATSEP
DESCEND
DFT (physical files only)
DIGIT
DYNSLT (logical files only)
EDTCDE
EDTWRD
FCFO
FIFO
FLTPCN
FORMAT
LIFO
NOALTSEQ
RANGE
REF (physical files only)
REFFLD (physical files only)
REFSHIFT
RENAME (logical files only)
SIGNED
SST (logical files only)
TEXT
TIMFMT
TIMSEP
TRNTBL (logical files only)
UNIQUE
UNSIGNED
VALUES
VARLEN
ZONE
The following keywords are valid only for simple and multiple format logical files:
PFILE
REFACCPTH
The following keywords are valid only for join logical files:
JDFTVAL
JDUPSEQ
JFILE
JFLD
JOIN
JREF
When you use DDS to describe a source file (usually created without DDS, using the CRTSRCPF command) or when a logical file is based on a physical file to be used as a source file, you cannot use the following keywords:
ABSVAL
ALTSEQ
DESCEND
FCFO
FIFO
LIFO
NOALTSEQ
SIGNED
UNIQUE
VARLEN
ZONE