Solved

Use of "TRIM" in DDS Logical File declaration

Posted on 2008-10-01
2
922 Views
Last Modified: 2012-05-05
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?
0
Comment
Question by:volking
2 Comments
 
LVL 18

Accepted Solution

by:
daveslash earned 500 total points
ID: 22615628

Just in case you don't get what you're looking for, you may have more success with your question here:

http://www.experts-exchange.com/Programming/System/AS_-_400/

-- DaveSlash
0
 
LVL 5

Author Comment

by:volking
ID: 22615636
RATS!
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
 
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now